Skip to main content
GET
/
api
/
v2
/
test-cases
/
{id}
Get a test case
curl --request GET \
  --url https://api.empirical.run/api/v2/test-cases/{id} \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "test_case": {
      "id": "<string>",
      "name": "<string>",
      "file_path": "<string>",
      "suites": [
        "<string>"
      ],
      "playwright_project": "<string>",
      "tags": [
        "<string>"
      ],
      "created_at": "<string>",
      "updated_at": "<string>",
      "first_seen_commit_sha": "<string>",
      "last_seen_commit_sha": "<string>",
      "dependencies": {
        "playwright_serial": {
          "group_id": "<string>",
          "title_path": [
            "<string>"
          ],
          "file_path": "<string>",
          "playwright_project": "<string>",
          "dependency_order": 123,
          "group_size": 123,
          "depends_on": [
            "<string>"
          ]
        }
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Playwright test ID (pw_test_id), the 41-character hash identifying the test case.

Minimum string length: 1

Response

The test case.

data
object
required

Response payload.