v1

latestSwagger 2.02026-08-06114111152.5 KB
Insights

Test cases

Groups your test runs by test name and returns per-test statistics: total runs, success/failure/unknown counts, pass rate, a flaky flag (both passes and failures seen), and average duration in seconds. Sort by total (default), pass_rate, failure, flaky or avg_duration. Paginated with offset/count.

get/v1/insights/test-cases

Query parameters

startstring

Period start. ISO-8601 (2026-06-01 or 2026-06-01T00:00:00Z) or a UNIX timestamp. Defaults to 30 days before end.

endstring

Period end. ISO-8601 or a UNIX timestamp. Defaults to now.

time_rangestring

Relative window as a shorthand for start: 24h, 7d, 4w (units h/d/w). Ignored when start is given.

status'all' | 'success' | 'failure' | 'unknown'

Filter by test status. One of all (default), success, failure, unknown.

browserinteger[]

Filter by test environment (browser/OS/device) IDs, comma-separated. Discover IDs via /v1/insights/filters.

buildinteger[]

Filter by build IDs, comma-separated.

group_idsinteger[]

Filter by group ("My Groups") IDs, comma-separated.

teaminteger[]

Filter by team member user IDs (who ran the test), comma-separated.

namestring

Filter to an exact test name.

sort'total' | 'pass_rate' | 'failure' | 'flaky' | 'avg_duration'

Sort field.

sort_order'asc' | 'desc'

Sort direction.

offsetinteger

Skip this many test cases.

countinteger

Number of test cases to return (max 500).

Response

Test cases