Overview
Stably Cloud provides scalable infrastructure for running your Playwright tests with high parallelism, AI-powered features, and comprehensive reporting. Your tests run in the cloud while using your existingplaywright.config.ts configuration.
Prerequisites
1
Deploy Your Tests
Before running tests in the cloud, ensure your latest test code is deployed:
If you’re using the web editor, publish your changes instead. The deployment happens automatically.
2
Get API Key
Obtain your API key from the settings page for API and CI integrations.
Running Tests in the Cloud
After deploying your tests, you can trigger cloud execution using several methods:- Stably CLI
- REST API
- GitHub Action
- Scheduled Runs
Using the Command Line
The simplest way to run tests in the cloud:CLI Options
CLI Options
--project: Specify which Playwright projects to run (can be used multiple times)--grep: Filter tests by pattern--env: Set environment for variable overrides--workers: Control parallelism (cloud supports up to 100 workers)--retries: Set retry attempts for failed tests
Running Specific Test Groups
If you’ve organized your tests using Playwright projects, you can run specific groups in the cloud:Cloud Execution Features
High Parallelism
Run up to 100 workers in parallel for faster test execution. Contact us if you need more.
AI Auto-Heal
Tests automatically adapt to minor UI changes, reducing maintenance burden.
Smart Reporting
Get detailed insights with screenshots, traces, and AI-powered failure analysis.
Environment Management
Easily switch between environments and manage test data variables.
Monitoring Test Runs
After triggering a test run, you can monitor progress:1
View Real-Time Progress
Navigate to your Stably dashboard to see:
- Real-time test execution status
- Pass/fail rates
- Test duration and performance metrics
2
Review Results
Once tests complete, access:
- Detailed test reports with screenshots
- Trace files for debugging failures
- AI-generated failure analysis
- Historical trends and analytics
3
Receive Notifications
Get alerts via:
- Email notifications
- Slack messages
- GitHub PR comments
Best Practices
Deploy Before Running
Deploy Before Running
Always run
npx stably deploy after making test changes to ensure the cloud runs the latest version.Use Project Organization
Use Project Organization
Organize tests into logical projects (smoke, regression, critical) for flexible execution strategies.
Leverage High Parallelism
Leverage High Parallelism
Take advantage of cloud workers by ensuring your tests are independent and can run in parallel.
Configure Retries
Configure Retries
Set appropriate retry counts for different test types. Critical tests might need fewer retries, while flaky tests might need more.
Monitor Resource Usage
Monitor Resource Usage
Track your test execution time and optimize slow tests to reduce costs and improve feedback time.
Troubleshooting
Tests Not Running Latest Code
Tests Not Running Latest Code
Problem: Cloud tests are running outdated test codeSolution: Run
npx stably deploy to deploy the latest changesAPI Authentication Errors
API Authentication Errors
Problem: Getting 401 or 403 errors when using the APISolution: Verify your API key is correct and has proper permissions. Get a new key from the settings page.
Project Not Found
Project Not Found
Problem: Error saying specified project doesn’t existSolution: Ensure the project name matches exactly what’s defined in your
playwright.config.tsHigh Execution Time
High Execution Time
Problem: Tests are taking longer than expectedSolution:
- Increase worker count for better parallelism
- Check if tests have dependencies preventing parallel execution
- Review individual test timeouts