Set the result for a given test case in a test run
setTestResultSets the result for a given test case in a test run and adds the test case to the test run if it was not part of the test run yet
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"testRunId": "<testRunId>",
"testCaseId": "<testCaseId>",
"testResult": "<testResult>"
},
"name": "setTestResult"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | Project ID (number or string), project key or part of the project name | |
| testRunId | Yes | The id of the test run | |
| testCaseId | Yes | The id of the test case in the test run to add/update the status for | |
| testResult | Yes | The result of the test case. The builtin values 'passed', 'failed', 'blocked', 'skipped' and 'notrun' are case-insensitive, so 'passed' and 'PASSED' are the same. A project can also define extra result statuses - listProjects reports those under the 'result_status' field, and they must be spelled exactly as reported. Use 'notrun' if you only want to add the test case to the run without assigning a result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes |