Assertions

Assertions define what a correct result looks like. After Spark runs the execution, it checks each assertion against the actual response. All of them must pass for the test to pass.

Every assertion is evaluated, even if an earlier one fails. This means you see all problems at once rather than fixing them one at a time. No more whack-a-mole debugging.
assertions:
  - statusCode:
      equals: 200

Which assertions can I use?

It depends on the executor type:

AssertionHTTPCLIWhat it checks
statusCodeyesHTTP response status code
jsonPathyesValues inside JSON response body
exitCodeyesCommand exit code
stdoutyesStandard output content
stderryesStandard error content
snapshotyesyesCompare against a saved reference file