latestOpenAPI 3.0.32026-08-227451,2751.8 MB

d0fc0114da66

Report

Retrieve test flakiness metrics for a workspace

Returns flakiness metrics for tests in a workspace over a specified time range. Flakiness is calculated by grouping test runs by execution context (plan_run_id, browser, mobile device/OS, scenario), then identifying groups with mixed outcomes (both passes and fails within the same execution context).

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/testFlakiness

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 for single-test flakiness lookup

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

Test flakiness 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.