Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,654
Community Members
 
Community Events
176
Community Groups

XRAY: Export only failed cucumber tests from XRAY Test Execution

Is there an out of box feature available to export the failed test cases from an Xray TestExecution. This option seems to be available in XRAY Server via the user interface.

 

There is an API available to export all the test cases in XRAY Test Execution.

/rest/raven/1.0/export/test?keys="TESTEXEC-1"

ref: https://docs.getxray.app/display/XRAY/Exporting+Cucumber+Tests+-+REST

 

Is there an option available to pass the status as a parameter to the existing API's?

Server Jira v8.13.13

Please let me know if more details are needed.

 

1 answer

1 accepted

0 votes
Answer accepted

Hi @Praveen Dharman 

It could be possible since that API allows you to use a filter. And you can create a filter using this JQL function testExecutionTests to return a list of Tests based on Test Execution and also on other arguments such as the Test Run Status.

Check all the Xray enhanced functions here: https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi Rogerio,

Thank you for the answers!

We explored this option of using a filter to export only the failed test cases. It is possible to Export only the failed test cases.

One challenge is that the link/tag of the XRAY Test Execution is missing in the exported feature files.

Due to this reason,  it is NOT possible to import the results back to the same test execution.

One option is to export all the test cases from the test execution to file system. Use a 3rd party to delete the unnecessary(Passed/blocked) test cases.

Other option is to use a 3rd party to add a tag for the Test Execution Id.

Is there any straight forward/out of the box feature to export the failed test cases from Test Execution. This feature is especially needed to re-run the failed test cases.

Hi @Praveen Dharman 

Using the above JQL function, you can use the second argument to filter also the TestRunStatus:

P2 - Test Run Status list separated by "|"(pipe) (Optional)

https://docs.getxray.app/display/XRAY/Enhanced+querying+with+JQL

So it should be possible to list the failed Tests for given Test Executions.

Please contact Xray Support (http://Xraysupport.getXray.app) if you need further help.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Hi @Rogério Paiva - Xray Xporter ,

Thanks for the feedback! We already used this option from your previous answer.

Many thanks for the support.

Have a nice day!

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events