read last completed
- Tests API
The read last completed
method of the tests API returns a list of test files, which most recently finished and have a result. The files are grouped by the status their respective result had.
GET /api/tests/<session_token>/last_completed
Parameter | Desciption | Default | Example |
---|---|---|---|
count |
Number of files per status to return | 5 | count=5 |
status |
The status the files results must have. Comma separated list. Possible values: all , pass , fail and timeout |
all |
status=timeout,pass |
{
"pass": "Array<String>",
"fail": "Array<String>",
"timeout": "Array<String>"
}
Request:
GET /api/tests/7dafeec0-c351-11e9-84c5-3d1ede2e7d2e/last_completed?count=3&status=fail,timeout
Response:
{
"fail": [
"/apiTwo/test/four.html",
"/apiOne/test/twentyfour.html",
"/apiOne/test/nineteen.html"
],
"timeout": [
"/apiFive/test/eight.html",
"/apiThree/test/five.html",
"/apiThree/test/two.html"
]
}