assert Action
Syntax
<assert>
[
[ "$status", 200, "status is 200" ]
]
</assert>Examples
<assert>
[
[ "$foo", "bar", "…" ],
[ "$request/headers/authorization", null, "No Authorization header is set" ],
[ "$response", "OK" ],
[ "json-parse($response)/user", "alice" ],
[ "$status", 201, "got 201 - created" ],
[ "true()", true, "for sure!" ]
]
</assert>Compare Flags
See also
Last updated