Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to update xray test execution tests status with server API?

mirabr
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!
July 5, 2021

I created a test execution,  inside of it i place 3 tests,What I need to is update the test execution to each test and make upload of evidences to each test. 

I'm trying use the documentation of API: https://docs.getxray.app/display/XRAY/v2.0#/  

I'm doing the steps: 

1. GET /testrun to obtain the ID of each test

2. Once I have the ID I will PUT / testrun / {id} to update the status of each test and insert the evidence.

However, the problem is that when I try to do the GET requisition inserting the testExecIssueKey and the testIssueKey an error occurs 'TypeError: Failed to fetch'. 

The base URI: https://sandbox.xpand-it.com/rest/raven/2.0/api/testrun

params: ?testExecIssueKey=E2ETESTING-37&testIssueKey=E2ETESTING-32

 If you can help me with this situation. 

1 answer

1 accepted

1 vote
Answer accepted
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.
July 7, 2021

Hi @mirabr 

It is supposed to work, I have tested it like this (below) and it worked:

curl -H "Content-Type: application/json" -X GET -u <username>:<password> "https://sandbox.xpand-it.com/rest/raven/2.0/api/testrun/?testExecIssueKey=E2ETESTING-37&testIssueKey=E2ETESTING-32"

Please follow a similar approach.

Thank you.

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

mirabr
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!
July 12, 2021

Hi Rogério,

 

Thanks for the reply, the problem has been resolved.

Like Stefan Salzl likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events