add_result
Adds a single test result to a TestRail run by case ID, with status, comment, defects, elapsed time, and version.
Instructions
Post a single test result by case_id (TestRail looks up the test inside the run).
status accepts a string ("passed" | "failed" | "blocked" | "retest" | "untested")
or a raw TestRail status_id (1..5 by default).
elapsed is a TestRail time string ("30s", "1m 30s", "1h 5m").
defects is a comma-separated list of bug-tracker IDs ("BUG-1, BUG-2").
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": {
"run_id": "<run_id>",
"case_id": "<case_id>",
"status": "<status>"
},
"name": "add_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| status | Yes | ||
| case_id | Yes | ||
| comment | No | ||
| defects | No | ||
| elapsed | No | ||
| version | No |