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

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

mirabr I'm New Here Jul 05, 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

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 Jul 12, 2021

Hi Rogério,

 

Thanks for the reply, the problem has been resolved.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Atlympic Event: Jira Service Managemnt

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

102 views 0 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