XRay Import Execution Results - Add defects to a manual step using json?

Mario Santa Ana Uribe May 29, 2019

I was following the steps in this page https://confluence.xpand-it.com/display/public/XRAY/Import+Execution+Results to upload a test execution result, and I've managed to get nearly everything we use working, except for Defects. How can I add an existing defect to a manual test step?

 

I tried "defects" : ["EXAMPLE-101"] , but it didn't work. Is it even possible? I didn't see it in the schema.

2 answers

0 votes
Raj July 11, 2021

Hello Mario,

I was just wondering if you're able to solve the defects problem you're facing above? Can you please as well?

Thanks and appreciate your help!

Regards, Raj

0 votes
Inês Silva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 5, 2019

Hi Mario,

To import Test Step results, please see more info in our documentation. Here we have some examples that could help you: https://confluence.xpand-it.com/display/public/XRAY/Test+Step+Results+-+REST

All about our REST API: https://confluence.xpand-it.com/display/public/XRAY/REST+API

Best regards,
Xray Team

Raj July 11, 2021

Hello XRay Team,

I'm facing the same challenge in my project. We're not using API's and currently the team is doing testing outside xRay and we would like to import the results into xRay from the other system manually.

Can you please guide us in the right direction? I have referred to all the documentation but there is nothing that tells how to import  Actual results, defects and attachments. May be the JSON format to import the actual results, defects and attachments would help us here..

All the documentation says how to import comments and status ( and few other fields)

Appreciate your quick help. Thanks

Regards, Raj

Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 20, 2021

Hi @Raj 

In Xray you have two ways to add defects:

  1. Manually through the user interface
  2. Automatically through the REST API

If you upload the report manually, it will be necessary to manually set the defect since the reports don't support defect keys.

If you are uploading the report automatically, you can use the REST API after the upload to add the defect.

Any additional questions, please get in touch with Xray Support (http://xraysupport.xpand-it.com) we would gladly assist you.

Thank you.

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

Suggest an answer

Log in or Sign up to answer