Repository navigation
1.0.4
Add Timeout phrase:
Timeout
Used to test your code when a third party API is currently slow and timeout.
Example:
Given the request "GET" "/sso/users/1" will timeout
When I send a "GET" request on "/users/1"
Then ... (test that your API don't falls on timeout also)
Given the request "GET" "/users" will timeoutPayload sent to mockserver endpoint PUT /expectation:
{
"httpRequest": {
"method": "GET",
"path": "/users"
},
"httpResponse": {
"delay": {
"timeUnit": "SECONDS",
"value": 600
}
}
}