List batch results
Lists the results of all the tests (sessions) in a batch.
Request
GET /batches/{batchId}?[start=<start-date>][&end=<end-date>][&statsOnly=true/false][&steps=true/false]
Parameters
| Name | Type | In | Description |
|---|---|---|---|
| batchId | string | path | The Batch's ID or Pointer ID. |
| start | date | query | Optional The beginning date and time for the search range. |
| end | date | query | Optional The end date and time for the search range. |
| steps | bool | query | Optional If true will return data of all individual steps. |
| statsOnly | bool | query | Optional If true will only return the statistics summary, without the results list. |
The start and end dates are optional with the following logic:
- If both are absent, all tests in the batch are returned.
- If both are specified, all tests in the inclusive range are returned.
- If only “start” is specified, all tests since the given start date are returned (inclusive).
- If only “end” is specified, all tests until the given end date are returned (inclusive).
You can think of it as if all tests in the batch are collected, then filtered by the start date if present, then filtered again by the end date if present.
Response example
The response includes batchUrl at the top level and sessionUrl on each test. These are direct links into the Test Manager UI, intended for use by automation and integrations that previously had to construct these URLs themselves.
{
"batchUrl": "https://eyes.applitools.com/app/test-results/00000251724201037774",
"statistics": {
"id":"00000251724201037774",
"pointerId": "<my_batch_ID>",
"passed": 76,
"failed":9,
"unresolved":6,
"new":38,
"aborted":1,
"empty":2,
"total":132
},
"tests": [
{
"testId": "00000251724201037633",
"testName": "some test name",
"sessionUrl": "https://eyes.applitools.com/app/test-results/00000251724201037774/00000251724201037633?accountId=<accountId>",
"branchName": "default",
"runBy": "user@example.com",
"assignedTo": "user@example.com",
"startTime": "2023-06-15T13:45:30.0000000+00:00",
"env": {
"device": "desktop",
"os": "windows",
"app": "chrome",
"viewport": {
"width": 1200,
"height": 900
}
},
"status": "passed",
"properties": [
{
"name": "some name",
"value": "some value"
}, ...
],
"accessibilityStatus": {
"guidelines": "WCAG_2_0",
"level": "AA",
"status": "Failed",
"violations": 0
},
"steps": [
{
"name": "",
"isMatching": false,
"remarks": [
{
"title": "Remark 1",
"discussionId": "de63c4b7-079e-4e90-94da-b8b12c81495b"
}, ...
],
"issues": [
{
"failTests": true,
"snoozeUntil": "2022-11-30T15:19:29.0000000+02:00",
"title": "Issue 1",
"discussionId": "dbb17a0d-37fe-4176-9de8-a616872a1ec2"
}, ...
],
"accessibilitySettings": {
"guidelines": "WCAG_2_0",
"level": "AAA"
}
}
]
}, ...
]
}
cURL example
curl -H "X-Eyes-Api-Key: <your-api-key>" -X GET "https://eyes.applitools.com/api/v1/batches/<my_batch_ID>"