add_result
Add 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.
Input Schema
TableJSON 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 |