Skip to content
Tests

Get test history

Get a test’s history across runs. One test in every run of a period, newest first: final status, duration, attempts and time spent on retries. Every run is listed; source decides which are counted. Moderate.

GET/api/v1/projects/{projectId}/tests/{testName}

Parameters

ParameterDescription
projectIdstring · pathrequired
A project id from GET /projects.
testNamestring · pathrequired
The full test name as Squally stores it (Playwright’s title path). URL-encode it, including “/” as %2F. A name used in several spec files needs ?filePath=.
filePathstring
The spec file of the test, as stored (e.g. tests/checkout.spec.ts); an empty value means a test with no file. Needed only when the name exists in several files - the 400 ambiguous_test answer lists them.
days7 | 14 | 30 | 90 · default 30
The period, in days, ending now. Must not exceed the plan’s retention (Standard 60, Pro 90 days); a longer period is refused with 400 invalid_period rather than answered with less data.
sourceci | local | all · default all
Which runs count, by where they ran: all - every run (the default since 1.0.0-beta.18; ci before); ci - runs a shard reported a CI provider for; local - runs no shard did. The response’s population names the one counted.

Responses

200400401403404429500