Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Importing cucumber feature files via XRAY endpoint

unnikrishnanpr September 24, 2025

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.

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Tuncay Senturk _Snapbytes_
Community Champion
September 24, 2025

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-12
Feature: …

2. verify that Test issue link type exists

unnikrishnanpr September 24, 2025

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.

Tuncay Senturk _Snapbytes_
Community Champion
September 24, 2025

No they are not same.

Ensure the link type is as the belowXray link type so:

  • Name: Test
  • Outward: tests
  • Inward: is tested by

Then confirm the Story is a “Requirement” in Xray . You will see Issue Type Mapping in Xray Project settings.

unnikrishnanpr September 24, 2025

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.

IMG_2853.jpeg

unnikrishnanpr September 28, 2025

Does this mean i cant use the api since it looks for “Test” not anything else. Can i do any configuration change to make this work.

TAGS
AUG Leaders

Atlassian Community Events