When you are trying to export a Cucumber Test into a Feature File via UI and if every time there is a similar error showing:  


This situation is because, the Xray Issue Type Test is mapped as Requirement. Please check if you don’t have the Test Coverage on the Test as well (this is wrong!) 

 

To rectify this, go to:  

Administration >> Manage Apps >> Xray >>Issue Type Mapping 

Once there, remove the Issue Type Test from the Requirement mapping. After this step is done go back to the Test and after refreshing the page, perform the same step inside the Test -> Export to Cucumber and check if this time the Feature File is correctly exported. 

 

Remember that: Xray Issues must not be mapped as Requirements. They are only testing artifacts, and we cannot guarantee the correct functioning of Xray if they are not used as intended.