Type - gorskip/testing-framework GitHub Wiki
It's a part of Expected configuration
Type determines what method will be used to verify fields of excepted object
Consists of:
- status
- body
- headers
each value can be "EQAUL" or "CONTAIN" and:
- withOrder
determines if order in response body will be verified
If Type is not set default is used, see Example
Example
"expected":
{
"status": 200,
"body": {
"id": 1,
"message": "First stupid insight",
"author": "gorskip",
"tags": [
{
"name": "Animals",
"id": 3
}
]
},
"headers": {
"Content-Type": "application/json;charset=UTF-8"
},
"type": {
"status": "EQUAL",
"body": "CONTAIN",
"headers": "CONTAIN",
"withOrder": true
}
}