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

update a xray execution run, status and comments

 i am trying to use the Api to update the status and the comments of a execution run using xray 1.0 api, 

this is what i am doing:

data = {"status": "FAIL", "comment": "blabla"}
url = "https://my_site.net/rest/raven/1.0/api/testrun/33632"
req = requests.put(url, auth=(user, password), json=data)

that gives error 405,  pasting the URL in the browser I get the json with all the information from that run. so i know that ID does exists.

 

i am doing something wrong? i try to pass the data as string, just sending the status,  instead json=data, did data=data etc...      thanks guys

 

So what i ended up doing is doing 2 api calls, one to the status, and another to the comments:

url = "https://my_site.net/rest/raven/1.0/api/testrun/33632/status?status=FAIL"

req = requests.put(url, auth=(user, password))

url_comment = "https://my_site.net/rest/raven/1.0/api/testrun/33632/comment"

response = requests.put(url_comment , auth=(user, password), data="raw string for the comment")

 

1 answer

Hi @Demiank100 , 

Concerning the situation you're having, you'll need to provide more information so I recommend you reach out Xray support and the team will be glad to help you out.

 

Best Regards, 

Sérgio Freire, Solution Architect and Testing Advocate @Xray

Personal blog on testing, Agile and software development: https://sergiofreire.com

Follow me on Twitter: https://twitter.com/darktelecom

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍂📹 Apptoberfest demo contest roundup: vote for your favorite demos!

Hi Community! The submissions are in (and listed below) for the 🍻🍂Apptoberfest🍂🍻 Demo Competition and it’s time for you to place your votes for the best: Analytics & reporting app demo ...

182 views 5 14
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