Export cucumber test cases from Xray based on test case status

Dear Xray team

we have requirement in our project team that only the test case with status "ready for automation" should be exported to the repository and start the test case implementation. 

is there any way to set this status as a parameters in the export method and only export the test case with a certain status?

We have a manual workaround to add test case with status "ready for automation" into a test set/test execution. is there a better automated way to do this?

 

Thanks a lot

Kind regards

Shuqi 

1 answer

Hi Shuqi Jiang,

 

Xray allows you to export Cucumber scenarios (i.e. generate related .feature files) based on either issue keys or a filter id with those issue keys.

These keys must reference issues with the Xray issues types Test, Test Set, Test Execution or Test Plan or any issue type mapped to the Requirement issue type.

A mix of these issue types is supported. In the same export call, you can include keys from each of the above issue types.

Thus, if you want to run just some Test issues (i.e. the ones with workflow status "ready for automation"), you have to use as input the issue keys (or filter containing them) of the Test issues that you want. You can also use a Test Set or a Test Execution or Test Plan as input, as long as they only have the Test issues you want (thus you have to prepare them beforehand).

If you want to export the Cucumber tests based on the requirements, then you'll have to do a "trick": create a filter that returns all the Tests associated with the requirements you want and then filter out the relevant Tests.

 

issuetype = 'Test' and key in requirementTests('Requirements saved filter') and status = 'ready for automation'

 

Best regards,

Xpand Add-ons Team

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

118 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you