How I can get the test run Id from XRAY execution

Sumit Tyagi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2025

I have created the XRAY Test execution and inside this I have added the test cases. 
Now I have marked the test cases failed or pass according to the validation results. 

Now I want to know the test run Id of the test cases inside the test execution, so that I can upload the screenshot to it

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Humashankar VJ
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.
February 23, 2025

Hi @Sumit Tyagi 

You can give a try with the Xray REST API, you'll need to have the Test Execution Key, such as XT-1234.

  • Once you have this key, you can make the following API call to fetch the test runs.
  • Simply use the GET request "GET /rest/raven/1.0/api/testrun?testExecKey=XT-1234", replacing XT-1234 with your actual Test Execution issue key.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events