test-runs
Get the resolved test plan (with setup/act/verify kinds) for a test run
Return the ordered plan steps that this run was queued against, with QUA-2144 [setup|act|verify] kind tags surfaced as a structured field.
Variables (e.g. `{{username}}`) are already resolved — the strings here
are exactly what the agent saw. Pairs with `GET /v1/test-runs/{id}/steps`:
that endpoint says *what the agent did*, this one says *what it was
supposed to do and how each step was categorized*.
**Path Parameters:**
- `test_run_id`: The unique identifier of the test run
**Returns:**
- Ordered array of plan step objects (`step_number`, `kind`, `description`).
- Empty array if no plan is recoverable (e.g. legacy runs with neither
`resolved_steps` nor a pinned test_case_version).
**Authorization:**
- Only returns plans for test runs belonging to your organization.
get/v1/test-runs/{test_run_id}/plan
Request
- Base URLhttps://api.qualgent.ai
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
test_run_idstring required
Headers
x-api-keystring
Response
Successfully retrieved test run plan
Example response
[
{
"step_number": 1,
"kind": "setup",
"description": "Open the app"
}
]Changes
No recorded changes to this operation across all 3 revisions of this API.