Cloud Execution
Learn how to run your Bugster SDK tests in the cloud for scalable and efficient testing
Introduction
Cloud execution allows you to run your Bugster SDK tests on scalable, managed infrastructure. This approach offers several advantages, including parallel execution, diverse browser and device testing, and reduced local resource usage. This guide will walk you through setting up and utilizing Bugster’s cloud execution capabilities.
Prerequisites
Before you begin, ensure you have:
- A Bugster SDK account with cloud execution privileges
- Your tests uploaded to the Bugster dashboard
- Bugster CLI installed (
npm install -g @bugster/cli
)
Understanding Cloud Execution
Bugster’s cloud execution platform provides:
- Scalable infrastructure for running tests in parallel
- A wide range of browsers and devices for comprehensive testing
- Isolated environments for consistent test results
- Automatic video recording and screenshot capture
Configuring Cloud Execution
-
Log in to Bugster CLI
If you haven’t already, authenticate with Bugster:
-
Configure Your Project
Create or update your
bugster.config.js
:
Running Tests in the Cloud
-
Execute All Tests
-
Run Specific Tests or Suites
-
Specify Browsers or Devices
Monitoring Cloud Execution
-
Real-time Console Output
The CLI will provide real-time updates on test progress.
-
Bugster Dashboard
Log in to the Bugster Dashboard to view detailed execution status, including:
- Test progress and results
- Resource utilization
- Video recordings and screenshots
-
Email Notifications
Configure email alerts for test completion or failures in your account settings.
Analyzing Cloud Test Results
-
Accessing Results
After execution, access detailed results:
-
Downloading Artifacts
Download videos, screenshots, and logs:
-
Comparing Across Environments
Use the dashboard to compare cloud results with local or CI executions.
Best Practices for Cloud Execution
-
Optimize for Parallelization: Structure your tests to run independently for maximum parallel execution.
-
Use Cloud-Specific Configurations: Leverage cloud-only capabilities in your test configurations.
-
Manage Test Data: Use Bugster’s data management features for consistent test data across environments.
-
Regular Maintenance: Periodically review and update your cloud execution settings to ensure optimal performance.
-
Cost Management: Monitor usage and adjust parallelization to balance speed and cost.
Advanced Cloud Execution Features
1. Custom Execution Environments
Define custom Docker images for specific test requirements:
2. Geolocation Testing
Specify geographic locations for your tests:
3. Network Condition Simulation
Simulate various network conditions:
4. Scheduled Executions
Set up recurring cloud executions:
Troubleshooting Cloud Execution
-
Tests Failing in Cloud but Passing Locally
- Check for environment-specific configurations
- Verify that all required dependencies are included in the cloud environment
-
Slow Execution Times
- Increase parallelization
- Review test structure for unnecessary waits or long-running operations
-
Resource Limits Reached
- Adjust concurrency settings
- Contact support to increase account limits if needed
-
Network-Related Failures
- Check if your application is accessible from cloud environments
- Verify any required VPN or firewall configurations
Security and Compliance
Bugster’s cloud execution platform is designed with security in mind:
- All data is encrypted in transit and at rest
- Isolated execution environments for each run
- Compliance with SOC 2 and GDPR regulations
- Option for dedicated cloud instances for enhanced security
Cost Management
Monitor and control cloud execution costs:
- Set budget alerts in your account settings
- Use the
--dry-run
flag to estimate execution costs: - Optimize test suites to reduce unnecessary executions
Integrating Cloud Execution with CI/CD
-
Use Bugster’s CI/CD integrations to trigger cloud executions:
-
Incorporate cloud test results into your deployment decision process
Next Steps
Now that you’re familiar with cloud execution, consider exploring:
- CI/CD Integration for a fully automated testing pipeline
- Advanced Test Analytics to gain deeper insights from your cloud test results
- Cross-Browser Testing Strategies to leverage the full potential of cloud execution
If you encounter any issues or have questions about cloud execution, don’t hesitate to contact our support team or visit our community forums.