Use Multistep Checks to run complex end-to-end workflows with Playwright that span multiple endpoints. The examples below show how to configure Multistep Checks for different testing scenarios.
Prerequisites
Before creating Multistep Checks, ensure you have:
An initialized Checkly CLI project
Public endpoints you want to monitor
Runtime 2023.09 or later (Multistep Checks require newer runtimes)
For additional setup information, see CLI overview.
Copy
Ask AI
import { MultiStepCheck } from "checkly/constructs"import * as path from "path"new MultiStepCheck("multistep-check-1", { name: "Multistep Check #1", locations: ["us-east-1", "eu-west-1"], code: { entrypoint: path.join(__dirname, "multi-step.spec.ts"), },})
The ID of the runtime to use for executing the multistep check. Required to be 2023.09 or later for multistep check support.Usage:
Copy
Ask AI
new MultiStepCheck("my-multistep", { name: 'My Multistep Check', runtimeId: "2025.04" // Use latest runtime for best performance /* More options... */})
Multistep checks require runtime 2023.09 or later. Earlier runtimes do not support multistep functionality.
How often the multistep check should run. Use the Frequency enum to set the check interval.Usage:
Copy
Ask AI
import { Frequency } from 'checkly/constructs'new MultiStepCheck("my-multistep", { name: "My Multistep Check", frequency: Frequency.EVERY_15M, /* More options... */})
Array of public location codes where the multistep check should run. Multiple locations provide geographic coverage and user experience insights.Usage:
Copy
Ask AI
new MultiStepCheck("global-check", { name: "Global Multistep Check", locations: ["us-east-1", "eu-west-1", "ap-southeast-1"] /* More options... */})
Examples:
Global User Experience
Regional Focus
Copy
Ask AI
// Worldwide API testingnew MultiStepCheck("global-journey", { name: "Global API Journey", locations: [ "us-east-1", // N. Virginia "us-west-1", // N. California "eu-west-1", // Ireland "ap-southeast-1", // Singapore "ap-northeast-1" // Tokyo ], /* More options... */})
Use cases: Global API monitoring, regional API testing, geographic compliance validation.
Multistep checks are only supported on runtime 2023.09 or later. Make sure to specify a compatible runtimeId in your check configuration.