What Is the Swarm?
Instead of manually creating tests one by one, Swarm:- Intelligently crawls your application like a human would
- Discovers user flows and features automatically
- Generates test cases with complete step definitions
- Creates assertions for expected behaviors
- Proposes a comprehensive test suite for your review
Starting a Swarm Run
Add guidance (optional but recommended)
Focus Area - Describe what to test
- “Focus on checkout and payment flows”
- “Test admin dashboard features”
- “Don’t delete any data”
- “Avoid logout button”
Configure authentication
Option 1: Credentials
- Provide login email and password
- The Swarm logs in automatically
- Select a saved logged-in browser profile
- More reliable for complex auth
Monitoring Progress
Once started, Swarm runs autonomously. You’ll see: Status - Running, Completed, or Failed Progress Indicators:- Number of tests generated
- Pages explored
- Time elapsed
- Current exploration paths
Swarm runs can take 10 minutes to several hours depending on application complexity and configuration.
Reviewing Generated Tests
Once complete, Swarm creates a new test suite with all generated tests marked as “Proposed”.Review each test
Click individual tests to see:
- Test name describing the flow
- Complete list of test steps
- Assertions and expected outcomes
Accept or reject with feedback
For each test:
- ✅ Accept if it tests important behavior
- ❌ Reject if it’s redundant, trivial, or incorrect
Best Practices
Start with focus areas
Start with focus areas
Don’t try to test everything at once. Start focused:First run: “Test user authentication and profile management”
Second run: “Test checkout and payment flows”
Third run: “Test admin dashboard features”This gives you control and makes review manageable.
Second run: “Test checkout and payment flows”
Third run: “Test admin dashboard features”This gives you control and makes review manageable.
Provide clear guidelines
Provide clear guidelines
Tell the Swarm what to avoid:
- Destructive actions (delete, cancel)
- External integrations
- Premium features (if testing free tier)
- Known broken features
Use browser profiles for complex auth
Use browser profiles for complex auth
If your app has:
- SSO/OAuth
- 2FA
- Custom auth flows
- Session complexity
Review everything before accepting
Review everything before accepting
Batch review tests by category:
- Accept obviously good tests (critical paths)
- Review edge cases carefully
- Reject redundant or trivial tests
- Edit tests that are almost right
Run accepted tests immediately
Run accepted tests immediately
After accepting tests:
- Run them individually first
- Fix any that fail
- Add to schedules once stable
Troubleshooting
Swarm generated no tests
Swarm generated no tests
Possible causes:
- Authentication failed
- Starting URL inaccessible
- Application requires specific setup
- Verify credentials work manually
- Check starting URL is correct
- Use browser profile for complex auth
- Add focus area description
Tests are low quality
Tests are low quality
Possible causes:
- Insufficient guidance
- Branching factor too high (exploring too randomly)
- Application has confusing UX
- Add detailed focus area description
- Provide guidelines for what to avoid
- Include documentation URLs
- Lower branching factor for more focused exploration
Swarm taking too long
Swarm taking too long
Possible causes:
- Target test count too high
- Branching factor too high
- Application is very large
- Lower target test count
- Reduce branching factor
- Add specific focus area (don’t test everything)
- Increase max concurrency for parallel exploration
Swarm got stuck
Swarm got stuck
Possible causes:
- Infinite loop in application
- Modal or popup blocking navigation
- Session expired during exploration
- Add guidelines to avoid problem areas
- Use browser profile with longer session
- Manually test the path Swarm was exploring
- Report issue to support with run ID
When to Use the Swarm
Perfect For
- Initial test coverage generation
- Discovering features in complex apps
- Regression testing after refactors
- Testing areas you don’t fully understand
- Exploring competitor apps (if accessible)
Not Ideal For
- Simple, well-understood flows (faster to create manually)
- Highly dynamic SPAs with heavy client-side logic
- Apps requiring complex multi-step setup
- Critical paths needing exact specifications