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

Create of Xray test execution using Xray Api

Hello Team,

I am trying to create test execution and then to that test execution i am associating test via xray post api. this script is working fine from script console. but when i am trying to add this as post script function on my transition. Then the Test Execution issue is created but i am unable to associate it to Tests. it gives me 404 error. but if i try to associate test to it within seconds it runs succesfully.

 

Folllowed Xray Rest Api Post fucntions

 

Thanks

1 answer

1 accepted

Hi @DR 

The error "404 Not Found" is typically generated when the URL provided reaches a broken or dead link. The post function runs on the server-side, so I would suggest the first test the URL on a command line on the server where Jira is running. If you are running Linux, you can use the command wget.

Another option could be that if in the script the URL is built (concatenating string values), it might not be building the URL correctly when running in the post function due to some code issue, and so the URL executed it not the correct one (but a broken one).

I hope this helps.

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

@Rogério Paiva - Xray Xporter 

Thanks for your help. Yes you are right the issue were not identified by the rest. So, I split the test exec creation and association in two different transition and it worked.

Regards,
DR

Suggest an answer

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

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

410 views 2 15
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