I tried to import a cucumber feature file by using the curl command mentioned in the documentation https://docs.getxray.app/space/XRAYCLOUD/44577091/Importing+Cucumber+Tests+-+REST+v2
Running the command returned a message saying {"error":"Issue create failed! - No issue link type with name 'Test' found."}. The feature file used has a “@PrjKey-123” tag added above the feature. This key is the key of a user story to which the xray tests should be linked to. Also, when this tag was removed and executed, the xray tests are created and returned a success message. But the tests were not linked.
Is there any changes that I need to make so that the tests are lined to a user story.
Hi @unnikrishnanpr
If you place a Jira issue key as a tag before the "Feature:" line (e.g. @PROJ-123), Xray will try to create a “Tests” link from that requirement to the Test being imported. However, if your Jira doesn’t have that issue link type (“Tests” / “is tested by”), the import fails.
1. keep the tag at Feature level
@PROJ-12Feature: …
2. verify that Test issue link type exists
Hi,
Thanks for the reply. I have placed the issue key of a user story above the feature line and verified that both “is tested by” and “Tests” are present. But still i am getting the same error. Also, the error message says, “Test”, not “Tests”. Are they the same.
No they are not same.
Ensure the link type is as the belowXray link type so:
Then confirm the Story is a “Requirement” in Xray . You will see Issue Type Mapping in Xray Project settings.
Hi, My test coverage section looks like below. I could see “Xray Test” for Issue Links relation section, but not “Test”. Am i in the correct section.
It looks like you're new here. Sign in or register to get started.