create_test_runs
Create up to 50 test runs in a single bulk request with validation against project enumerations and templates.
Instructions
Create 1-50 test runs in one project in a single bulk request.
id is required per item (Polarion REST does not auto-generate one). type/status are validated against the project's testing enumerations and template_id against existing templates (list_test_runs(templates=True)) — unknown ids raise ValueError. custom_fields keys are validated against a sample of existing runs; enum-typed custom values are not (test runs have no options API). Atomic: one bad item rejects the whole batch; an id-count mismatch raises — re-query list_test_runs before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Test runs to create in one request (1-50). | |
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| project_id | Yes | Polarion project ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| dry_run | Yes | ||
| test_run_ids | No | ||
| payload_preview | No |