add_result
Record test outcomes in TestRail by submitting pass/fail status with optional comments, elapsed time, and defect tracking for test case management.
Instructions
Add a test result
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": {
"test_id": "<test_id>",
"status_id": "<status_id>"
},
"name": "add_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| test_id | Yes | Test ID | |
| status_id | Yes | Status ID (1=Passed, 5=Failed, etc.) | |
| comment | No | Comment (optional) | |
| elapsed | No | Time elapsed (optional) | |
| defects | No | Defect IDs (optional) |