Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Xray 2024 S6, Xray 2024 S7
-
Description
Duplicate Issue History Entries When Adding Same Test to Test Set via REST API.
Steps to Reproduce:
- Create a Test Set.
- Associate a Test to the Test Set using the REST API endpoint: /rest/raven/1.0/api/testset/{testSetKey}/test.
- Confirm that the Test is successfully associated with the Test Set.
- Check the Issue History to ensure a new entry was added.
- Attempt to associate the same Test to the Test Set again using the same REST API endpoint.
- Observe that another entry appears in the Issue History.
Expected Behavior:
If a Test is already associated with a Test Set, the operation to add the Test again should be discarded to prevent duplicate entries in the Issue History.
The expected behavior should be consistent with the User Interface, which displays the message:
Test with key <ISSUE_KEY> is already associated with this Test Set.