Set Test Run Lock
set_test_run_lockLocks or unlocks a test run to make it read-only, preventing new results or test case edits. Use it to seal a completed run automatically in workflows.
Instructions
Locks or unlocks a test run.
A locked test run is read-only: results can no longer be recorded against it and its test cases can no longer be edited. Locking is otherwise a manual action in the Tuskr UI, so this tool is what lets an automated workflow seal a run once execution is complete.
The endpoint accepts one test run per call, so locking several runs takes one call each. Tuskr rate-limits every plan at 10 requests/second.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lock | Yes | True to lock the test run, False to unlock it | |
| test_run | Yes | ID or name of the test run to lock or unlock |