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