Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
None
-
None
Description
Xray is looking up for Test Status instead for Step Status when updating the Step Results.
Before reproducing this problem make sure you have the following config in your Jira.
At Xray Manage Test Statuses page, insert 3 custom Test Statuses, by this order:
Status Name | Position in list |
---|---|
SKIPPED | 6 |
EVALUATING | 7 |
ACCEPTABLE | 8 |
In total, you should have 8 Test Statuses (5 defaults + 3 customs).
At Xray Manage Test Step Status page add 1 custom Step Status:
Status Name | Position in list |
---|---|
ACCEPTABLE | 5 |
In total, you should have 5 Test Step Statuses (4 defaults + 1 custom).
How to reproduce the error:
- Create a Manual Test with 4 steps
- Create a Test Run for the Test: Execute In > New Test Execution
- Import the below-attached execution JSON report to the endpoint /import/execution
- Open the updated Test Run and you will find the below error at the Step Results
JSON Report file:
"testExecutionKey": "<TEST_EXEC_ISSUE_KEY>", "tests": [ { "testKey": "<TEST_ISSUE_KEY>", "status": "TODO", "steps": [ { "status": "TODO" }, { "status": "TODO" }, { "status": "TODO" }, { "status": "ACCEPTABLE" } ] } ] }