Add TestRail Result
add_resultAdd test results, comments, or assign tests in TestRail to track testing progress and outcomes.
Instructions
Adds a new test result, comment, or assigns a test.
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 | The ID of the test to which the result should be added | |
| status_id | Yes | The ID of the test status (1=Passed, 2=Blocked, 4=Retest, 5=Failed) | |
| comment | No | The comment or description for the test result | |
| version | No | The version or build against which the test was executed | |
| elapsed | No | The time it took to execute the test (e.g., "30s" or "1m 45s") | |
| defects | No | A comma-separated list of defects to link to the test result | |
| assignedto_id | No | The ID of a user to whom the test should be assigned | |
| custom_step_results | No | Array of step results for structured testing | |
| custom | No | Custom fields with custom_ prefix |