Get test
GET /tests/:id
Retrieve test by unique test ID
Path Parameters
- id string required
A unique test ID
Example: 5e9602e7a39e5a46428b457f
- 200
Test response
- application/json
- Schema
- Example (from schema)
Schema
- id string
Check id
- enabled boolean
Default value:
true
- areaId
Area ID
- name string
Name of check
- url string
URL of check
- notice string
Check notice
- type string
Possible values: [
homepage
,simple
,favicon
,robots
] - run string
Possible values: [
completed
,running
] - flags string[]
Test flags e.g.
configured
status object
status stringfailures string[]rules object[]
Array [type stringPossible values: [
text html status header location title meta-description meta-og:title meta-og:description meta-og:image meta-og:image meta-og:image meta-og:type meta-og:url meta-og:site_name meta-og:locale meta-og:updated_time meta-og:logo meta-article:modified_time meta-article:published_time meta-article:publisher meta-article:section meta-article:tag meta-twitter:title meta-twitter:image meta-twitter:image meta-twitter:description meta-twitter:card meta-twitter:site meta-twitter:creator meta-itemprop:name meta-itemprop:author meta-itemprop:description meta-itemprop:image
]Default value:
text
Type of check
op stringPossible values: [
eq
,sub
,!sub
,match
,!match
,xpath
]Operators can be:
eq
is equal to,sub
contains,!sub
does not contains,match
for exact match,!match
for does not match andxpath
for Xpath checks.val stringValue that will be used for check
origin stringOriginal of the check
templateId stringOptional parameter if check use a Template
order integerOrder of the check
]response object
status stringhttpStatus stringbaseUrl stringcontentType stringhttpHeader stringprocessTime numbersize numberSize of response in case of check error
redirects string[]List of redirections
timing undefined[]
Array [metrics stringvalue integer]- templateId string
Template ID if any
- templateVars string[]
Template variables if any
options object
2 booleanDefault value:
false
Allow HTTP/1 requests only
6 booleanDefault value:
false
Allow only IPv6 request
g booleanDefault value:
false
Do not accept gzip encoding
l booleanDefault value:
false
Do not follow redirects
w stringExtra HTTP headers separated
{
"id": "50a9f73014db3ae812000234",
"enabled": true,
"areaId": "55ae166c25b395537a8b6030",
"name": "Homepage",
"url": "https://testomato.com",
"notice": "",
"type": "simple",
"run": "completed",
"flags": [
"configured"
],
"status": {
"status": "ok",
"failures": [
"string"
],
"rules": [
{
"type": "text",
"op": "sub",
"val": 123456,
"origin": "check",
"templateId": "string",
"order": 0
}
],
"response": {
"status": 200,
"httpStatus": 200,
"baseUrl": "https://testomato.com",
"contentType": "text/html",
"httpHeader": ":status: 200\r\nserver: nginx\r\ndate: Mon, 10 Oct 2022 15:04:05 GMT\r\ncontent-type: text/html;",
"processTime": 0.037,
"size": false,
"redirects": [
"string"
],
"timing": [
{
"metrics": "DNS Lookup",
"value": 1
}
]
}
},
"templateId": "",
"templateVars": [],
"options": {
"2": false,
"6": false,
"g": false,
"l": false,
"w": "string"
}
}