Skip to content

Tests Reference

The Tests tab checks response values with expressions and operators. Disabled rules and rules with an empty expression are not executed.

Expression

ExpressionValue
res.statusHTTP status code
res.responseTimeTotal request duration (ms)
res.bodyParsed value for JSON, otherwise a string
res.body.foo.barNested property in a JSON Body
res.headers.content-typeLowercase response header

Body paths are separated by dots (.).

text
res.body.data.user.id

Operator

OperatorEvaluation
equalsJSON-serialized values are equal
notEqualsJSON-serialized values are different
existsActual value is not undefined
containsString form of actual value contains the expected value
lessThanNumeric actual value is less than the expected value

Saved expected values are passed through JSON.parse when possible. For example, 200, true, and {"ok":true} are compared as a number, boolean, and object respectively, while ordinary text is compared as a string.

All free. Open source. AGPL-3.0-only.