QuickStart Guide
Here’s how to get from zero to deployed checks in 5 minutes.Before you begin
What you need:- A checkly account
- A repository using Playwright for E2E tests and a Playwright configuration file.
Steps
1. Install the Checkly CLI
terminal
2. [Optional] If you’re using TypeScript
If you’re using TypeScript, install the dev dependenciesjiti
and typescript
. These help the CLI bundle your typescript config and test files correctly.
terminal
3. Use pw-test
to test in Checkly
Run your Playwright test suite using pw-test
.
pw-test
accepts both Checkly and Playwright command line arguments using the following syntax:
npx checkly pwtest --checky-flag -- --playwright-flag
. Use --
to seperate Checkly and Playwright flags.
The CLI command will then return a link to results, traces and more details:
4. Convert tests to checks with pw-test
:
Using pw-test
with the --create-check
flag will create a checkly.config.ts
file if it doesn’t exist, and will add the new check. Afterwards, you can tweak the monitoring configuration for your check.
For example:
checkly.config.ts
file and make sure to tweak locations and schedule as needed.
5. Deploy your Playwright Check Suites
Once you are ready to start monitoring your applications with these checks, deploy your Playwright Check Suite into global monitoring withnpx checkly deploy
.
terminal
6. Set up Alerts
Configure alert channels and alert groups to get notified when checks fail. You can receive alerts via email, Slack, webhooks, and more. To set up alerts:- Go to the Checkly dashboard.
- Navigate to Alert Channels to create a new channel.
- Assign channels to your project or individual checks.