Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
Xray Cloud - 4.005.001
-
None
-
XRAYCLOUD 2024 Sprint 5
-
Description
Description
When importing JUnit results via the standard endpoint (/api/v2/import/execution/), if we encounter a Generic test with an identical definition to the test provided in the XML, we're not currently performing a verification. This results in the creation of a new test instead.
If we pass the Issue_key as a property this will have the normal behavior of adding the passed test key to the created test execution.
Pre-conditions
- Have an API Key setup;
- Have a JUnit XML Results file
How to reproduce
1) Send a POST request to the Junit endpoint with the XML file in the body https://xray.cloud.getxray.app/api/v2/import/execution/junit?projectKey=PROJECTKEY
2) Send the same POST request with the same XML file
Actual result/Attachments
The first request will create a test based on the XML definition, along with a new test execution, and subsequently link the created test to it.
The second request will produce another new test, also with the same definition, along with a new test execution, and link the newly created test to it.
Expected result
The first request creates a new test with the provided definition and includes it in the execution. Subsequently, the second request generates a new execution and includes the test created in the first request.