Which Qate tests can I export to Playwright?
Export supported web actions and assertions with the Qate CLI. Run workflows with unsupported steps through Qate server execution.
Two examples of the export boundary
A browser test can fill a checkout form, click Submit and assert the confirmation URL with toHaveURL. Generate that test set and run the resulting spec in CI.
A saved test with a separate verification step cannot be exported. The CLI stops and identifies the unsupported step. Run the original test in Qate to preserve that check.
Watch the test workspace walkthroughInstallation
npm install -g @qate/cliConfiguration
Set your API credentials as environment variables:
export QATE_API_KEY=your_api_key_hereTest Sets (Parallel Execution)
Web test sets contain independent tests. Playwright workers control how many run at the same time.
qate generate (or generate:testset)
Generate Playwright test files from a test set. Creates an execution record for tracking and embeds a reporter that automatically reports results back to QATE AI when tests run.
# Generate Playwright tests (creates execution record + embedded reporter)
qate generate -n "Regression Tests" -o ./e2e
# Then run the generated tests (results auto-reported to QATE AI)
cd ./e2e && npm install
npx playwright install
npx playwright test
# Generate for cloud provider (BrowserStack)
qate generate -n "Regression Tests" -o ./e2e --provider browserstack
# Generate without tracking/reporting
qate generate -n "Regression Tests" -o ./e2e --no-trackingqate generate --smart
Let AI select tests for a pull request. The CLI sends the application and PR reference to Qate; the server retrieves the changes from your connected repository and selects relevant tests.
Which tests does Qate select for a pull request?
# Smart generate — AI selects tests based on PR changes
# PR number is auto-detected in CI environments (GitHub Actions, GitLab, Bitbucket, etc.)
qate generate --smart --app <applicationId> -o ./e2e
# Explicit PR number (when auto-detection isn't available)
qate generate --smart --app <applicationId> --pr 42 -o ./e2e
# Specify backend repository (default is frontend)
qate generate --smart --app <applicationId> --repo-type backend -o ./e2e
# Combine with cloud providers
qate generate --smart --app <applicationId> -o ./e2e --provider browserstackHow it works: The --smart flag asks Qate to select tests using repository changes, your code map and test definitions. This is an AI-selected subset, not a guarantee of complete regression coverage. If no tests are selected, no project is generated; skip the execution steps in that case.
Requirements: --app (application ID) is required. The application must have a connected repository and a completed discovery session (codemap). PR number is auto-detected from CI environment variables (GitHub Actions, GitLab CI, Bitbucket Pipelines, Azure DevOps, Jenkins, CircleCI) or can be set explicitly with --pr.
qate list (or list:testsets)
List available test sets
qate listqate export:testset
Export a test set as standalone Playwright test files. No tracking or reporting — just clean, runnable test code you can take anywhere.
# Export as Playwright tests
qate export:testset -n "Regression Tests" -o ./exported-tests
# Run the exported tests
cd ./exported-tests && npm install
npx playwright install
npx playwright testTest Sequences (Sequential Execution)
Generated web sequences run in order in one shared page and browser context. A failure stops the remaining tests. Run them on your computer or your own CI runner, including hosted CI such as GitHub Actions, with --provider local. Direct BrowserStack, Sauce Labs and LambdaTest integration is not currently supported for sequences.
Retries are disabled by default for web sequences. An explicit retry repeats the entire sequence in a new browser context, including earlier successful actions.
qate generate:sequence
Generate Playwright test files from a test sequence. Creates an execution record for tracking and embeds a reporter that automatically reports results back to QATE AI when tests run.
# Generate Playwright tests for a sequence (creates execution record + embedded reporter)
qate generate:sequence -n "User Onboarding Flow" -o ./e2e
# Then run the generated tests (results auto-reported to QATE AI)
cd ./e2e && npm install
npx playwright install
npx playwright test
# Generate without tracking/reporting
qate generate:sequence -n "User Onboarding Flow" -o ./e2e --no-trackingqate list:sequences
List available test sequences
qate list:sequencesqate export:sequence
Export a test sequence as standalone Playwright test files. No tracking or reporting — just clean, runnable test code you can take anywhere.
# Export as Playwright tests
qate export:sequence -n "User Onboarding Flow" -o ./exported-tests
# Run the exported tests
cd ./exported-tests && npm install
npx playwright install
npx playwright testStatus Commands
qate status
Check execution status (auto-detects type from ID prefix)
# Check status (auto-detects type from execution ID prefix)
qate status -e ci_507f1f77bcf86cd799439011_1703847600000_abc12345 # Test set execution
qate status -e seq_507f1f77bcf86cd799439011_1703847600000_def67890 # Test sequence execution
qate status -e gen_507f1f77bcf86cd799439011_1703847600000_ghi12345 # Generated Playwright tests
# JSON output
qate status -e ci_507f1f77bcf86cd799439011_1703847600000_abc12345 --jsonGenerated project and result delivery
Generated Output
The generate command creates a complete Playwright project with package.json, playwright.config.ts, and test files. Install dependencies and run with standard Playwright commands.
Automatic Result Tracking
How it works:
1. qate generate creates an execution record in QATE AI and generates a unique execution ID (e.g., gen_xxx_xxx)
2. The generated Playwright project includes an embedded qate-reporter configured with this execution ID
3. When you run the tests with npx playwright test, the reporter automatically sends pass/fail status, durations, and step-level details back to QATE AI
View results in your QATE AI dashboard or check status via CLI:
# Check execution status
qate status -e gen_507f1f77bcf86cd799439011_1703847600000_abc12345
# Generate without tracking/reporting (no execution record, no reporting)
qate generate -n "Tests" -o ./e2e --no-trackingNote: Use --no-tracking when you want to generate tests without creating an execution record. Tests will still run normally but results won't be reported to QATE AI.
Each run keeps its own results
With the matching CLI and server update, named test sets, sequences and smart PR selections for web and API tests use a saved copy of the selected tests. Generate a fresh project for each new tracked execution; retries and shards of that execution share its ID. Later edits to saved tests do not rewrite the recorded results.
If a result upload fails
Report recovery with qate upload-report requires @qate/cli 1.1.7 or later. Run qate --version to check which version is installed.
The updated CLI and generated reporter save a recovery file and print its path when delivery fails. Retry that upload without running the test actions again. Keep the file in private CI artifact storage until delivery is confirmed: it can contain test data, responses and screenshots.
# Use the file path printed by the CLI and the original API URL
qate upload-report ./e2e/.qate-reports/pending-00/report-HASH.json --url https://api.qate.aiA successful upload confirms that results were delivered, not that the tests passed. Use the API URL of the original run. Regenerate older projects after updating the CLI to include this reporter.
Device & Browser Selection
Choose a browser or a Playwright device profile, such as iPhone 14 or Pixel 7. Device profiles emulate browser settings; they do not run your test on a physical phone or prove native iOS or Android behavior.
Generate with Device/Browser
# Generate for a mobile device
qate generate -n "Mobile Tests" -o ./e2e --device "iPhone 14"
# Generate for Firefox browser
qate generate -n "Cross-Browser Tests" -o ./e2e --browser firefox
# Device + specific browser
qate generate -n "Mobile Tests" -o ./e2e --device "Pixel 7" --browser chromium
# Sequence with device emulation
qate generate:sequence -n "Mobile Checkout" -o ./e2e --device "iPhone 14"Supported Devices
All Playwright device names are supported, including: iPhone 6-15 Pro Max, iPad Mini/Pro, Pixel 2-7, Galaxy S8/S9+, and more. See the Playwright devices documentation for the full list.
Test Sets vs Test Sequences
| Feature | Test Set | Test Sequence |
|---|---|---|
| Execution | Parallel | Sequential (ordered) |
| Speed | Faster | Slower |
| State Sharing | Independent | Shared page, cookies and browser storage |
| Use Case | Regression testing | User flows, E2E journeys |
| Stop on Failure | No (runs all) | Stops after a failure |
Provider Configuration
Cloud providers require additional environment variables:
BrowserStack
export BROWSERSTACK_USERNAME=your_username
export BROWSERSTACK_ACCESS_KEY=your_access_keySauce Labs
export SAUCE_USERNAME=your_username
export SAUCE_ACCESS_KEY=your_access_keyLambdaTest
export LT_USERNAME=your_username
export LT_ACCESS_KEY=your_access_key