nMon1 Help
DE Sign in Sign up for free
Help Notifications

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: URL loads a page. request: a request with method, url, headers and form, json or body.
  • expect_status (e.g. 200 or "200-299"), expect_text, expect_no_text, expect_url (contains) and expect_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: 1000 waits (ms). Give a step its own label with name:.
  • Browser only: fill: { selector: "#email", value: … }, click: "button[type=submit]", press: { selector, key: Enter }, select, check, wait_for: selector and extract with selector.

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.

Didn't find an answer? Open a support ticket