Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 899 Bytes

File metadata and controls

33 lines (24 loc) · 899 Bytes

assert

Use assert when a failed comparison must stop the test flow. Syntax, operators, and report options are identical to check — only the failure behavior differs.

Step On failure
check Log and report; continue
assert Log and report; stop execution
expect on call/http Soft (continue)
require on call/http Hard (stop) — same map as expect

Examples

- assert: ${doLogin.status} == 200
- assert: ${profile.token} != omit

Object form (same fields as check):

- assert:
    actual: ${doLogin.status}
    expected: 200
    operator: "=="
    title: Login status

Operators, omit handling, output paths, and report configuration: check.


See also: check · call · run