Why Xray is not pulling comments, actuals and evidence when creating bug

T Parham February 17, 2021

We are running Xray test executions and creating bugs on the failure, however comments, actuals and evidence adde to the test during the run do not show up in the bug item in jira when creating the defect from the execution. Does anyone know how to resolve?

2 answers

1 accepted

0 votes
Answer accepted
Mac S
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.
February 17, 2021

Hi @T Parham ,

If I understood you correctly, you are trying to create a 'defect' from execution page of Xray. By default, Xray only takes your test step details to create a new bug. It's by design and Xray is not picking up comment, actual result or evidence as of now.

In such cases, you might think of raising support request to them.

Hope it will help.

Regards.

0 votes
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.
March 25, 2021

Hi @T Parham 

We have already a couple of suggestion in backlog to improve Xray:

https://jira.xpand-it.com/browse/XRAYCLOUD-1911

https://jira.xpand-it.com/browse/XRAYCLOUD-3183

Please contact the Xray Support (http://xraysupport.xpand-it.com) we would like to know more about your use case and help.

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

Zaid Momin November 29, 2021

Hi @Rogério Paiva - Xray Xporter ,

I'm facing the same issue (comments are not added to the tests) when a Test Execution, that has tests, is created on the fly using API.

API

https://xray.cloud.xpand-it.com/api/v1/import/execution/

Example

{
"tests": [
{
"testKey": "TK-0001",
"status": "FAILED",
"comment": "Error: expected 400 \"Bad Request\", got 200 \"OK\". Along with some json string."
}
],
"info": {
"summary": "Automated TestExecution for release V1.2",
"description": "This execution is automatically created when importing execution results from an external source"
}
}

It creates the execution and test's status is updated but the comment is not picked-up. 

Could you please help me know if that's a known issue. If not, then how could I make sure comment is updated as well.

 

Thanks,

Zaid 

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.
December 6, 2021

Hi @Zaid Momin 

The comment is added to the Test Run and can be viewed in the Execution Details screen:

aaa.pngaab.png

And the Test Run only exists if you have two issues, the Test case, and the Test Execution.

So to alter the information in a Test Run, it is necessary to have both keys (The test key and the Test Execution key).

The example you have shown above does not have a Test Execution key, so Xray cannot find the correct Test Run to modify its comment.

Any additional questions, please get in touch with Xray Support (http://Xraysupport.getXray.app); we would gladly assist you.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Like Zaid Momin likes this
Zaid Momin December 18, 2021

Thanks @Rogério Paiva - Xray Xporter for the valuable inputs. This helped me. 

Suggest an answer

Log in or Sign up to answer