-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
Describe the bug
When creating a test run under an existing test plan using add_plan_entry, the newly created test run has all test cases selected instead of the values assigned to the "case_ids" property in the body.
To Reproduce
Steps to reproduce the behavior:
curl --location 'https://ctssoftware.testrail.io/index.php?/api/v2/add_plan_entry/314=null' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic REDACTED' \
--header 'Cookie: tr_session=ae91f9e1-8198-4329-b7b1-0b6ceccf0486' \
--data '{
"suite_id": 9,
"assignedto_id": 4,
"include_all": true,
"name": "Tester 1 Test Run 9/9/2025",
"runs": [
{
"include_all": false,
"case_ids": [131838,131845,131890,13920,2904,2915,5211,5238]
}
]
}'
Expected behavior
The new test run will have only 8 test cases assigned to it.
Desktop (please complete the following information):
- Postman
Additional context
When I make a similar call with the add_run endpoint and use the same "case_ids" property value, the new test run is correctly selecting 8 test cases.
curl --location 'https://ctssoftware.testrail.io/index.php?/api/v2/add_run/2=null' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic REDACTED' \
--header 'Cookie: tr_session=ae91f9e1-8198-4329-b7b1-0b6ceccf0486' \
--data '{
"suite_id": 9,
"assignedto_id": 4,
"include_all": false,
"name": "Tester 1 Test Run 9/9/2025",
"case_ids": [131838,131845,131890,13920,2904,2915,5211,5238]
}'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels