4.3Body
Type: body. Checks: the text of the response. obsrvly reads the first 1 MiB only. On a browser monitor, it is the text you can see on the page at the end of the script.
Operators: usually contains. Also eq, neq and matches. Use gt and lt only when the whole body is a number. On a browser monitor, gt and lt always fail.
| Type | Operator | Value | What it means |
|---|---|---|---|
body | contains | "status":"ok" | The health response says ok. |
body | matches | version: [0-9]+ | The page shows a version number. |
body | lt | 1000 | A body that is only a number, such as a queue length, stays under 1000. |
When it fails: assertion body contains "Welcome" failed. The message shows your expected value, cut to 40 characters. On a browser monitor, you may also see assertion body: the page text could not be read with a reason.