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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,505
Community Members
 
Community Events
176
Community Groups

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

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

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]

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

Atlassian Community Events