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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get Test result for a batch of TestIDs using REST API

Edited

 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

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]

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in DevOps

GitHub Script with GitHub Actions Automating Workflows

Hello folks, This is a series of articles where I explain GitHub Script with GitHub Actions and how you can automate publishing data on Atlassian & GitHub Platform based on the results of Workf...

135 views 1 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you