Export cucumber test cases from Xray based on test case status

Shuqi Jiang September 18, 2017

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

0 votes
José Domingues [Xray]
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
February 14, 2018

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
TAGS
AUG Leaders

Atlassian Community Events