---
title: "List the tests of a device session"
method: GET
path: "/sessions/{sessionId}/tests"
tags: ["Test Results"]
---

# List the tests of a device session

`GET /sessions/{sessionId}/tests`

## Request

- Base URL: `https://api.us-west-1.saucelabs.com/rdc/v2`
- URL: `https://api.us-west-1.saucelabs.com/rdc/v2/sessions/{sessionId}/tests`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/docs/sessions/:sessionId/tests/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns every test created on the session, oldest first.

Every entry also carries two links: `self` points at the test on the jobs API (where the pass/fail result
lives), and `uiViewUrl` opens the test details page in the Sauce Labs UI.

## Path parameters

- `sessionId` string, required

## Response `200`

OK

- Tests
  - `tests` Test[]
    - `jobId` string: The Sauce Labs job id of the test.
    - `startTime` string, date-time: When the test was started.
    - `endTime` string, date-time: When the test was ended. Absent while the test is still running.
    - `links` object
      - `self` string, uri: The test on the jobs API, where the pass/fail result lives.
      - `uiViewUrl` string, uri: The test details page in the Sauce Labs UI.

## Other responses

- `401`: Not Authorized
- `404`: Not Found

---

[API](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference.md) - [All operations](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/saucelabs/apis/real-device-access-api-reference/revisions/f845a4b66e37?raw)
