testrail_add_result_for_case
Add a test result for a specific case in a test run by providing run ID, case ID, and status. Track pass/fail outcomes with optional comments, defects, and elapsed time.
Instructions
Add a test result for a case in a specific test run
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_id": "<status_id>"
},
"name": "testrail_add_result_for_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The ID of the test run | |
| case_id | Yes | The ID of the test case | |
| comment | No | Optional comment | |
| defects | No | Optional defects/bugs | |
| elapsed | No | Optional elapsed time | |
| version | No | Optional version tested | |
| status_id | Yes | Status ID (1=Passed, 2=Blocked, 3=Untested, 4=Retest, 5=Failed) | |
| assignedto_id | No | Optional user ID to assign |