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

Get Test result for a batch of TestIDs using REST API

daniel m February 13, 2021

 I used XRAY rest API 

https://sandbox.xpand-it.com/rest/raven/2.0/api/testrun?testExecIssueKey=12&testIssueKey=34

and it seems I can only use it with testExecIssueKey=12&testIssueKey=34 combination to get for a single test ID , what I want is get data dump for multiple test cases.

like when I request I can pass 

strat from this issue ID =0 ( with issue type TEST) to maxResult of 500

 

getting this error

 

b'{"error":"Test Execution key and Test issue key are required."}

 

all I need is - Test key , Test Execution Key , Status 

your advice.

 

 

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Rogério Paiva - Xray Xporter
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.
March 24, 2021

Hi @daniel m 

Yes, that REST API only returns one Test Run ID since there is only one Test Run for each pair of Test Execution <-> Test.

However, there is another REST API that returns all Test Runs of a Test case.

The REST API is described here:

https://docs.getxray.app/display/XRAY/Tests+-+REST#TestsREST-ExportingTestRuns

If you need further help, please contact the Xray Support (http://xraysupport.xpand-it.com) so that we can request additional information and investigate further.

Kind regards,
Rogério Paiva [Xray Support Team]

TAGS
AUG Leaders

Atlassian Community Events