Skip to main content
All training videos

1. SolidPing JavaScript checks: script a login flow and monitor it

Documentation

Some failures only show up when you act like a user: a login form that rejects valid credentials, a dashboard that loads empty, a checkout that returns an error after the cart. A plain HTTP check cannot see those.

In this video you create a JavaScript check in SolidPing. The script runs in a sandboxed engine, loads a login page, signs in with a test account, and asserts what the dashboard shows. You will see how to store the password as an encrypted secret, how to try the script with Run now, and how a failing step is reported in the result.

JavaScript checks run once per period in every region, open incidents like any other check, and notify your channels.

Steps

  1. Create a JavaScript check​

    Create a JavaScript check

    Open Checks, click New Check and choose the JavaScript type. SolidPing runs the script on every period, from every region.

  2. Read the default template​

    Read the default template

    The script runs in a sandboxed, synchronous JavaScript engine: no fetch, no promises. You call helpers instead and finish with a return that says up or down.

  3. Script the login flow​

    Script the login flow

    The script loads the login page, posts the test account credentials and checks that the response contains the projects list. If a step fails, it returns down with a message naming that step.

  4. Store the password as a secret​

    Store the password as a secret

    Click Add secret and store the password there, never in the script. Secrets are stored encrypted and the script reads them by name.

  5. Try it with Run now​

    Try it with Run now

    Click Run now. The result shows the status, the duration and the output of each step, so you can fix the script before the first real run.

  6. Save the check​

    Save the check

    Save. The check now behaves like any other: it has a history, opens incidents and notifies your channels.

Next: SolidPing AI engine: describe a check in plain words →