Debian Codegraph @

testing/web-platform/tests/tools/wave/docs/rest-api/tests-api/read-next.md

raw
1 # `read next` - [Tests API](../README.md#tests-api)
2
3 The `read next` method of the tests API returns the next test of a test session, that is due to be executed. If the sessions status is not `RUNNING` it returns a static page containing information about the session and its current status.
4
5 ## HTTP Request
6
7 `GET /api/tests/<session_token>/next`
8
9 ## Response Payload
10
11 ```json
12 {
13 "next_test": "String"
14 }
15 ```
16
17 ## Example
18
19 **Request:**
20
21 `GET /api/tests/d6667670-c350-11e9-b504-4ac471cdd99d/next`
22
23 **Response:**
24
25 ```json
26 {
27 "next_test": "http://web-platform.test:8000/apiOne/test/one.html?&token=d6667670-c350-11e9-b504-4ac471cdd99d&timeout=60000"
28 }
29 ```