set_test_result
Updates selected fields of a test result via JSON Patch while leaving other fields unchanged; use statusCode to change result status and operations for extra RFC 6902 patches.
Instructions
Change selected fields of a test result (JSON Patch) without touching the others. To change the result status use statusCode (patching outcome is ignored by TestIT). Raw RFC 6902 operations can be added via "operations".
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": {
"id": "<id>"
},
"name": "set_test_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Test result UUID. | |
| trace | No | Stack trace. | |
| comment | No | ||
| message | No | Failure/info message. | |
| operations | No | Extra JSON Patch operations [{op, path, value}]. | |
| statusCode | No | Status code, e.g. PASSED, FAILED, BLOCKED, SKIPPED (full list incl. custom: list_test_statuses). | |
| durationInMs | No |