Skip to content
Javier Romero edited this page Jan 17, 2017 · 5 revisions

Then Steps in Cukes-REST

Then Step Description Sample
a failure is expected Description Sample
header "<string>" contains "<string>" Description Sample
header "<string>" does not contain "<string>" Description Sample
header "<string>" ends with pattern "<string>" Description Sample
header "<string>" equal to "<string>" Description Sample
header "<string>" is empty Description Sample
header "<string>" is not empty Description Sample
header "<string>" not equal to "<string>" Description Sample
it fails with "<string>" Description Sample
let variable "<string>" equal to header "<string>" value Description Sample
let variable "<string>" equal to property "<string>" value Description Sample
response body does not contain "<string>" Description Sample
response body not equal to "<string>" Description Sample
response contains "<string>" Description Sample
response contains an array "<string>" of size "<string>" Description Sample
response contains properties from file "<string>" Description Sample
response contains properties from json: ... Description Sample
response contains property "<string>" containing phrase "<string>" Description Sample
response contains property "<string>" matching pattern "<string>" Description Sample
response contains property "<string>" not matching pattern "<string>" Description Sample
response contains property "<string>" of type "<string>" Description Sample
response contains property "<string>" with value: ... Description Sample
response contains property "<string>" with value "<string>" Description Sample
response contains property "<string>" with value other than "<string>" Description Sample
response does not contain property "<string>" Description Sample
response equals to "<string>" Description Sample
response is empty Description Sample
response is not empty Description Sample
status code is <number> Description Sample
status code is not <number> Description Sample
Clone this wiki locally