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.
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-12
Feature: …
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.