Matchers
Matchers can be used to match values against a pre-defined set of rules
INFO
The syntax is inspired by MongoDB's Comparison Query Operators
Example: Time to first byte to be lower or equal 500ms
yaml
steps:
- name: GET Request
http:
url: https://example.com
method: GET
check:
performance:
firstByte:
- lte: 500Example: Chaining matchers
yaml
steps:
- name: GET Request
http:
url: https://example.com
method: GET
check:
performance:
firstByte:
- lte: 500
- gte: 100Available Matchers
Comparison operators
eq- Equal (===)ne- Not equal (!==)gt- Greater than (>)gte- Greater than or equal (>=)lt- Lower than (<)lte- Lower than or equal (<=)in- Includesnin- Not includesmatch- Regex pattern
Boolean operators
isNumber- Is NumberisString- Is StringisBoolean- Is BooleanisNull- Is NullisDefined- Is DefinedisObject- Is ObjectisArray- Is Array