Bulk Export Test Runs
bulk_export_test_runsExports multiple test runs with test cases and latest results in one call, using filters to narrow large project exports.
Instructions
Exports test runs of a project together with their test cases and the latest result of each case, in one call.
One call can return several runs, where get_test_run_results needs a call per run and per page. Always narrow the export with filter_ids or the other filters when test cases are included: a project's runs with all their cases run to tens of megabytes. A response over the MCP size limit is replaced by an error saying how large it was and how to narrow it.
Run fields and the response envelope ({count, rows, meta}) are passed through as the API sends them, keys in the API's own capitalisation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | page number to fetch, 100 runs per page. Default is 1. | |
| filter_ids | No | a test run ID, or a list of them, to export only those runs. These are the run IDs (UUIDs) the API returns, not the R-numbered keys: a key matches no run. | |
| filter_status | No | to filter test runs by their status. Two supported values 'active' or 'archived' | |
| trim_response | No | if True (default), each nested test case is reduced to ID, Key, Name, Suite, Section, Assigned To, Result Status, Result Created At, Result Created By and Result Issue Ids. The full case also carries its steps, expected results, preconditions and the latest result's comments, about 2 KB per case. Set it to False when those are genuinely needed, and narrow the export to a few runs. | |
| filter_project | Yes | ID of the project whose test runs are exported | |
| filter_assigned_to | No | id of the user to whom test runs are assigned | |
| filter_completion_status | No | to filter test runs by completion. Two supported values 'completed' or 'incomplete' | |
| filter_exclude_test_cases | No | if True, rows carry the runs without their test cases, a few hundred bytes each. The API has been seen to return every matching run on the first page in this mode. Default is False. |