latestOpenAPI 3.0.32026-08-227451,2751.8 MB

d0fc0114da66

Report

Retrieve unified test quality metrics for a workspace

Returns multiple quality dimensions for tests in a workspace over a specified time range. V1 includes flake rate and breakage rate. Flakiness is calculated by grouping test runs by execution context and identifying groups with mixed outcomes. Breakage rate measures how often a test transitions from passing to failing between consecutive runs.

The summary statistics reflect ALL matching tests in the workspace, while the tests array is paginated. Use the cursor parameter to fetch additional pages.

get/workspaces/{workspace_id}/reports/testQuality

Path parameters

workspace_idstring required

The workspace ID

Query parameters

start_timeinteger required

Start of the query time range in epoch milliseconds

end_timeinteger required

End of the query time range in epoch milliseconds

application_idstring

Optional application ID to filter by

plan_idstring

Optional plan ID to filter by

environment_idstring

Optional environment ID to filter by

test_idstring

Optional test ID (invariant ID) to filter by

test_type'api' | 'browser' | 'performance' | 'mobile'

Type of test

Optional test type to filter by

browserstring

Optional browser to filter by

execution_source'mabl_cloud' | 'external' | 'mabl_local' | 'mabl_agent'

Where the test lives

Optional execution source to filter by

plan_labelsstring[]

Plan labels to filter by

sort_by_stabilityboolean

When true, orders the tests array by stability (least stable first) instead of the default quality-score ordering. Summary statistics are unaffected.

min_plan_runsinteger

Minimum number of plan runs required for a test to be included (default 5)

limitinteger

Maximum number of tests to return (default 100)

cursorstring

Pagination cursor from a previous response

Response

Unified test quality metrics for the specified time range

workspace_idstring

ID of the workspace

interval_startinteger

Starting time of the reporting window in epoch milliseconds

interval_endinteger

Ending time of the reporting window in epoch milliseconds

cursorstring

Cursor for fetching the next page of results. Null if no more results.