Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

[Xray] How to link Test Environment and Test Plan to the Test Execution during automated import

Trevor Bennett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 24, 2020

Context:
Currently our project is using the /api/v1/import/execution/robot/multipart endpoint to import a robot output.xml report generated at the end of out test execution. 

Within Jira itself, I have already created the Test Set, Test Plan and Test Environments I want to use. What I would like to do is have this import process automatically link these all together and allow me to set the environment in one go. From what I could find on the creation process of the execution, these field aren't available until after the ticket is created. 

 

Next, I watched the console output of manually editing these fields and noticed they hit endpoints like /api/internal/TestExec/#####/testEnvironments so i decided to mimic the payload and used the same jwt i used during the upload to see if I could hit this endpoint and change those values but I always get a "Authentication request has expired. Try reloading the page."

 

Question:
Is it possible to set these values during the test execution creation by adding something into the test_exec_info.json file supplied within the "-F info=@test_exec_info.json" step of the upload?

1 answer

1 accepted

1 vote
Answer accepted
José Domingues _Xray_
Atlassian Partner
April 6, 2020

Hi Trevor,

Yes, this information should be part of the Test Execution info file.

Please see more information here: https://confluence.xpand-it.com/display/XRAYCLOUD/Import+Execution+Results+-+REST#ImportExecutionResultsREST-RobotFrameworkXMLresultsMultipart

Best Regards, 

Team Xray

Trevor Bennett
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 6, 2020

This worked perfectly, thank you.

Not sure how i missed that but able to set those is a life saver!

Suggest an answer

Log in or Sign up to answer