Details
-
Bug
-
Status: Closed
-
Medium
-
Resolution: Not a Problem
-
None
-
None
-
XRAYCLOUD 2024 Sprint 5
-
Description
Defects linked to the Tests in a Test Execution gets removed when we update the status via REST API.
Steps to reproduce:
- Consider a test in a Test Execution.
- Link a Defect to the Test of the corresponding Test Execution
- Use Xray JSON results REST API to import Execution results and update the Test Status. API used:
/api/v2/import/execution
- JSON used:Â
{ "testExecutionKey": "<TE-KEY>", "tests": [ { "status": "PASSED", //modify the status from pass to fail or vice versa or even if we keep the same status "testKey": "<Test-Key>" } ] }
Expected Result: The status of the test in the test execution should change without removing the linked defect.
Actual Result: The status of the test in the test execution changes, but, the linked Defect is also removed.