Get test attempts
Get a test’s attempts in a run, with the Copy-for-AI prompt. Every attempt of one test in one run, oldest first, each with its errors, code frame and a ready-made prompt for an assistant that has the repository open (null for an attempt without a real failure). Cheap.
GET
/api/v1/projects/{projectId}/runs/{runId}/tests/{testName}Parameters
| Parameter | Description |
|---|---|
| A project id from GET /projects. | |
| A run id from GET /projects/{projectId}/runs - or any shard’s id of a sharded run. | |
| 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. |
Responses
200400401403404429500