Get test metrics
One test’s metrics over the period: the fields of its /tests row, flat, beside the same period. A test with results but no run of the source in the period answers zeros and null rates rather than 404. Cheap: the list’s queries, narrowed to one test; prefer it to /tests when the question is about one test.
GET
/api/v1/projects/{projectId}/tests/{testName}/metricsParameters
| Parameter | Description |
|---|---|
| A project id from GET /projects. | |
| 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=. | |
| 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. | |
| 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. | |
| Only runs on this branch, the name exactly. Every branch when absent. | |
| 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