Assertions

Check that the response matches what you expect. All assertions must pass for the test to pass.

Assertions Overview

How assertions work, available types by executor, and evaluation order.

statusCode

Check the HTTP response status code.

jsonPath

Check values inside JSON response bodies.

exitCode

Check the command exit code for CLI tests.

stdout / stderr

Check standard output and standard error content.

snapshot

Compare results against a saved reference file.