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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

XRAY REST API: Create execution with all tests assosiated to Test Plan Edited

Hi,

 

I know how to create test execution with assosiated test Plan using RestApi, but i dont know how to assign all tests from that test plan to test execution. Is there a way to do that?

It doesn't mather if this is done while creating or later.

 

Thanks

Kamil

2 answers

Hi Kamil, 

You can explore our support documents regarding this matter:
https://confluence.xpand-it.com/display/public/XRAY/Test+Executions+-+REST  to learn about the procedure of adding Tests to a Test  Execution - this should be used together with the Test Plan REST 
https://confluence.xpand-it.com/display/public/XRAY/Test+Plans+-+REST ; first, getting a list of the Tests from the desired Test plan and then using those Test keys to add them all to the execution. 

Hope this clarifies your question.

Best regards,

Team Xray

Hi,

I have found solution already.

 

Thanks! 

Hi, please can you tell us how create test execution associated to a test plan with jira api rest. I made researchs on the internet but I didn't found the information.

thank you!

Hi @Faten Ben Ameur

This will have to be made in separate requests.

First: Create the Test Execution issue, using the Rest API from Jira.
Second: To associate or remove a Test Execution from a Test Plan, you need to send a JSON with a list of the Test Execution keys; using the REST API for Test Plans.

Best Regards,

 

Sérgio. 

________

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

Hi @Sergio Freire

Thank you so much for your response.

Here, I tried another solution. I installed the plugin xray connecter for bamboo to import output.xml file and it Will automatically create a test execution and regroups all excuted test cases. 

Now the problem that I'm facing is that I'm always having error 401 unauthorized. I think I didn't have access to import data to Jira maybe ! 

 

Best regards, 

Faten

Hi @Faten Ben Ameur ,

maybe your Jira credentials are not correct or maybe you don't have permission to create issues on the destination project.

If you need further assistance, I advise you to reach out to Xray support team so they can help you out.

Regards,

Sérgio

Like Faten BEN AMEUR likes this

Suggest an answer

Log in or Sign up to answer
TAGS

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