Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

Using include_all, false and specifying testcases with add_plan_entry


#1

Creating a test plan with 1 test run using add_plan_entry didn’t require a runs array as specified
{
“suite_id”: 1,
“assignedto_id”: 1, // Default assignee
"include_all": true, // Default selection
"config_ids": [1, 2, 4, 5, 6],
“runs”: [
{
“include_all”: false, // Override selection
"case_ids": [1, 2, 3],
“config_ids”: [2, 5]
}
]
}
using this method caused testrail to ignore any information given in the runs array

in your API documentation you don’t give an example for creating a plan with one test run. You then say "The top-level assignedto_id, include_all and case_ids fields specify the default assignee and test case selection for all test runs." but in fact you don’t have case_ids in the top level in your example

in our case we just plugged in the following which got it to work for 1 test run
{
“suite_id”: 1,
“assignedto_id”: 1, // Default assignee
"include_all": true, // Default selection
"config_ids": [1, 2, 4, 5, 6],
“include_all”: false, // Override selection
"case_ids": [1, 2, 3],
“config_ids”: [2, 5]
}

is there any reason why maybe I missed this in the API documentation? or why possibly a single run in an array is not being fed in properly?

A thread we found with a similar issue add_plan_entry creates run with all tests