To create and manage environment variables and secrets, including inheritance and where to set them, see the Environment Variables documentation.
Built-in variables in Playwright Check Suites
Checkly sets the following environment variables on every Playwright Check Suite run:| Variable | Description |
|---|---|
CHECKLY | Checkly sets this to 1 for every Playwright Check Suite run. Use it to distinguish Checkly runs from local runs. |
CHECKLY_RUN_SOURCE | Identifies what triggered the check run. Use it to adjust test behavior for schedules, manual triggers, deployments, or CLI runs. See CHECKLY_RUN_SOURCE values. |
CI | Checkly sets this to 1 for CLI runs (npx checkly test or npx checkly trigger) and checks started by deployments. |
ACCOUNT_ID | The UUID of the Checkly account. |
CHECK_NAME | The name of the check. |
CHECKLY_CHECK_ID | The UUID of the check. |
CHECKLY_REGION | The region where Checkly ran the check. |
CHECKLY_RUN_SOURCE values
| Value | Description |
|---|---|
CLI_DEPLOY | The first run after npx checkly deploy. |
DEPLOYMENT | A CI/CD deployment started the run. |
GROUP_RUN_ALL | The “Run all checks” action on the group’s edit screen started the run. |
SCHEDULE_NOW | The “Schedule now” action in the web app started the run. |
SCHEDULER | The regular check schedule started the run. |
TEST_NO_RECORD | npx checkly test started the run. |
TEST_RECORD | npx checkly test --record or npx checkly pw-test started the run. |
TRIGGER_API | The API started the run. |
TRIGGER_NO_RECORD | npx checkly trigger started the run. |
TRIGGER_RECORD | npx checkly trigger --record started the run. |
Use built-in variables
Use Checkly’s built-in environment variables to tune test behavior for different run contexts.Adjust behavior based on trigger type
Use different timeouts for scheduled runs and manual triggers:Configure Playwright by environment
Use the built-inCHECKLY environment variable in your playwright.config.ts to use different settings for Checkly runs and local development.
playwright.config.ts
Playwright Check Suites record traces for successful and failed runs. Checkly uses these traces to show dedicated Network and Browser console sections, so you can compare requests, logs, and errors when you troubleshoot.
maxFailures: stop early during monitoring runs, for example after the first failure.timeout: give tests more or less time in Checkly than during local development.expect.timeout: tune assertion timeouts for production or staging environments.retries: override Checkly’s default retry count if your suite needs a different policy.