Multi-step checks (login, cart, forms)
A multi-step check tests a whole flow instead of a single page, e.g. open the login page, sign in and check that "My account" appears. Add the steps in the website under Multi-step check as YAML or JSON. Check tells you at once whether the format is right.
- goto: https://shop.example.com/login
- extract: { name: token, regex: 'name="_token" value="([^"]+)"' }
- request:
url: /login
form: { email: monitor@example.com, password: secret, _token: "{{token}}" }
- expect_status: 200
- expect_text: My account
- expect_url: /account
Actions (names as in Playwright):
goto: URLloads a page.request: a request withmethod,url,headersandform,jsonorbody.expect_status(e.g.200or"200-299"),expect_text,expect_no_text,expect_url(contains) andexpect_json: { path: $.status, equals: ok }.extract: { name: x, regex: … | json: $.token }stores a value that you use in later steps as{{x}}.{{timestamp}}is the current time.wait: 1000waits (ms). Give a step its own label withname:.- Browser only:
fill: { selector: "#email", value: … },click: "button[type=submit]",press: { selector, key: Enter },select,check,wait_for: selectorandextractwithselector.
Flows without browser actions are checked by the nMon server itself, with cookies across all steps. Flows with browser actions run in a real Chromium on a browser probe. Set it up under Settings > Measurement points with one command (Debian/Ubuntu). This also works for pages that load their content with JavaScript.
When a step fails, the website shows which step and why. The browser probe also adds a screenshot. The alert API check failed is created automatically when you save. Passwords are stored in the database, so use a test account.