Test Execution status to Done using REST API

ALOK KULKARNI November 24, 2020

Hi

We have integrated Jenkins and Xray for test execution using Jenkins-Xray plugin.

After importing results in Xray, ‘Test Execution’ status is shown as 'TO-DO'. But as per our requirement we need to change it to 'Done' while importing results in Xray via Jenkins. We are using JSON contents to create 'Test Execution’ for additional details.

Could you please let us know which field should we use in JSON content?

Please feel free to suggest alternate solution.

Thanks,
Alok Kulkarni

1 answer

0 votes
Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 2, 2021

Hi @ALOK KULKARNI ,

this cannot be done through the provided JSON file. You can do it indirectly, by configuring Xray to make this transition for you.

Please check this group of settings, namely these ones (you need to check with your Jira admin):

 

In progress Test Execution workflow status

Choose what workflow status the test execution will transition to when a test run is executed.

Resolved Test Execution workflow status

Choose what workflow status the test execution will transition to when all the test runs are in a final status.

Resolution for Resolved Test Execution

Choose what resolution will be applied to the test execution. This option is only available if the Resolved Test Execution workflow status is not none. The resolution is only changed for status of type done.

 

 

Regards,

Sergio

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events