Add Test Run Results
add_test_run_resultsRecord test results for one or multiple test cases in a Tuskr test run using a single bulk request, applying the same status and optional comments, assignee, time, fields, or attachments.
Instructions
Records a result against one or more test cases in a test run.
Tuskr exposes a single bulk endpoint for results, so one call applies the same status to every test case listed. Pass a single test case to record one result, or a list to record many in one request. Always prefer one call with a list over repeated single calls: Tuskr rate-limits every plan at 10 requests/second.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | result status key, e.g. 'PASSED', 'FAILED', 'RETEST'. Status keys are configured per tenant, so use the keys defined in your own Tuskr account. | |
| comments | No | free-text comment stored on every result created by this call | |
| test_run | Yes | ID, key or name of the test run. Keys and names are matched across the whole tenant, not within one project. If several projects have a run with the same key or name (for example 'R-1'), Tuskr rejects the call with 'Multiple test runs found' and records nothing. Pass the run's UUID to avoid the ambiguity; list_test_runs returns it for a given project. | |
| test_cases | Yes | a single test case ID, key or name, or a list of them. The status is applied to every test case listed. | |
| assigned_to | No | ID, name or email of the user. If present, the test cases in this test run will be assigned to this user. | |
| attachments | No | up to 2 local file paths (5 MB each), such as screenshots or logs. Tuskr attaches every file to the result record of EVERY test case in this call; there is no per-case attachment, so record cases that need different evidence in separate calls. Requires the server to run on the machine that holds the files and TUSKR_ATTACHMENT_DIR to be set; relative paths resolve against that directory and files outside it are rejected. | |
| custom_fields | No | JSON object mapping custom field keys to their values | |
| time_spent_in_minutes | No | execution time recorded against every result |