Update Test Run
update_test_runModify an existing test run by adding or removing test cases and switching between ALL and SPECIFIC case selection; use the full case ID list to replace the run's current selection.
Instructions
Adds test cases to an existing test run and removes test cases from it.
This is how to change which cases a run contains after it was created. It also switches a run between ALL and SPECIFIC case selection. Do not use add_test_run_results to add a case: recording a result for a case that is not in the run returns an empty list and stores nothing. Do not use copy_test_run either, which resets every result.
To add a case: read the run's current case IDs with get_test_run_results (the testCase.id of each row), append the new case's ID (the id of a list_test_cases row), and send the full list as test_cases.
To remove a case: send the run's current case IDs without that case. A case that already has a result in this run cannot be removed. Tuskr then answers HTTP 400 "Cannot remove test case because it already has results: ", and this tool returns that text as is.
test_cases is the complete selection, not a delta: it replaces the current one, so any case left out is removed. Cases that stay in the selection keep the results already recorded for them, also across a switch to ALL and back.
Switching from SPECIFIC to ALL takes no test_cases. Switching from ALL to SPECIFIC needs test_cases to include every case that already has a result in the run.
Every identifier here is a UUID, unlike create_test_run: keys and names are not accepted for the run, the project or the cases. The tool never sends the run's description, deadline or assignee, and a description stays unchanged. On success Tuskr returns the updated run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | new name for the run. Leave unset to keep the current name. | |
| project | No | ID (UUID) of the project the run belongs to. Leave unset to keep the run in its current project. | |
| test_run | Yes | ID (UUID) of the test run to update. list_test_runs returns it. | |
| test_cases | No | for 'SPECIFIC', the IDs (UUIDs) of every case the run should hold afterwards: a single ID or a list of them. | |
| test_case_inclusion_type | Yes | 'ALL' or 'SPECIFIC' (case-insensitive). With 'ALL' the run holds every case in the project and test_cases must be omitted. With 'SPECIFIC' test_cases is required. |