Create or update test run
qase_run_upsertCreate or update a test run as the container for results, scoped to a plan, milestone, environment, or case list before recording.
Instructions
Create or update a test run — the container results are recorded into, so open it before qase_result_record. Scope it to a milestone, environment, plan or case list. To build one from a suite or plan use qase_regression_run; for a finished CI job use qase_ci_report, which opens, records and closes in one call. Cost: one API call, about 0.5s.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Run ID — if provided, this is an update (note: Qase API has limited run update support) | |
| code | Yes | Project code, e.g. DEMO | |
| tags | No | Tag names, e.g. ["nightly", "smoke"] | |
| cases | No | Case IDs to include | |
| title | Yes | Run title | |
| plan_id | No | Test plan to base run on | |
| end_time | No | RFC3339 end time | |
| start_time | No | RFC3339 start time | |
| description | No | What this run covers | |
| is_autotest | No | True when the run is produced by automation rather than a person | |
| custom_field | No | Custom fields by ID, e.g. { "12": "value" } | |
| milestone_id | No | ID of the milestone the run belongs to | |
| environment_id | No | ID of the environment the run executes against |