Get scenario runs for a test run with filtering
| Parameter | Type | Required | Description |
|---|---|---|---|
test_run_id | string | Yes | UUID of the parent test run |
status | string | No | Filter by status: pending, running, completed, failed, error |
passed | boolean | No | Filter by pass/fail: true or false |
limit | number | No | Max results (default: 50, max: 100) |
offset | number | No | Pagination offset (default: 0) |
| Field | Type | Description |
|---|---|---|
scenario_runs | array | List of scenario run objects |
total | number | Total matching scenario runs |
limit | number | Limit used |
offset | number | Offset used |
| Field | Type | Description |
|---|---|---|
id | string | Scenario run UUID |
test_run_id | string | Parent test run UUID |
scenario_id | string | Scenario template UUID |
scenario_name | string | Name of the scenario |
status | string | Current status |
passed | boolean | Whether the scenario passed (null if not graded) |
grade_summary | string | Brief grading summary |
duration_ms | number | Execution time in milliseconds |
error_message | string | Error details (if status is error) |
created_at | string | ISO-8601 creation timestamp |
completed_at | string | ISO-8601 completion timestamp |
| Code | Description |
|---|---|
MISSING_REQUIRED_FIELD | test_run_id parameter is required |
NOT_FOUND | Test run not found or doesn’t belong to your organization |
INVALID_FIELD_VALUE | Invalid status value |