IMPORTANT! The information on this page is unverified and unsupported. Always double-check the accuracy of the solutions provided. Evaluate and test the impact on any environments!
Swagger - "Mandatory Test Cases value is missing" Error When Creating Test Run
Description
When sending a REST API request to create a test run from test cases through the POST /v3/trackers/{testRunTrackerId}/testruns endpoint with a body similar to the below,
{
"testCaseIds": [
{
"id": 1111,
"name": "test1",
"type": "TrackerItemReference"
},
{
"id": 2222,
"name": "test2",
"type": "TrackerItemReference"
}
]
}
the server returns the following HTTP 500 error message, although, the test cases exist and are visible for the user sending the request:
"resourceUri": "/trackers/12345/testruns",
"message": "Mandatory Test Cases value is missing"
Observed on
- codebeamer 21.09-LTS (EMMA)
Solution
Ensure the Test Cases field on Test Runs tracker has Edit permissions for the project role sending the REST API request.
In the below example, "Mandatory Test Cases value is missing" error is returned for a Developer role, but not for a Project Admin:
In case the field permissions need to be changed, set or merge the below JSON in the Application Configuration:
"testManagement": {
"disableEditingBuiltInFieldsName" : false
}
The default value of this property is set to true, as changing the Test framework default fields on built-in fields is generally not recommended.
For any other Support options, questions, or inputs, visit: https://intland.com/technical-support/.