Test Plans
Organize related test cases into test plans and run them together. Perfect for regression testing, smoke tests, and scheduled test runs.
What are Test Plans?
Test Plans are collections of test cases that run together as a batch. Instead of running tests one by one, you can:
- Group related tests (e.g., “Login Flow”, “Checkout Tests”)
- Run all tests in the group with one click
- Schedule automatic runs (hourly, daily, weekly)
- Get aggregated results for the entire suite
Why Use Test Plans?
Without Test Plans
- Run tests manually, one at a time
- Hard to ensure all critical tests run
- Time-consuming to execute test suites
- Difficult to schedule regular testing
With Test Plans
- ✅ Run entire test suites with one click
- ✅ Ensure comprehensive coverage
- ✅ Schedule automatic runs
- ✅ Get suite-level pass/fail reports
- ✅ Integrate with CI/CD pipelines
Creating a Test Plan
- Go to “Test Plans” in your project sidebar
- Click “New Test Plan”
- Enter plan details:
- Name: Descriptive name (e.g., “Smoke Tests”, “Regression Suite”)
- Description: What this plan tests
- Tags: For organization
- Click “Create”
Adding Tests to Plans
Method 1: From Test Plan
- Open the Test Plan
- Click “Add Tests”
- Select tests from the list
- Click “Add Selected”
Method 2: From Test Case
- Open a Test Case
- Click “Add to Test Plan”
- Select which plan(s)
- Click “Add”
Method 3: Bulk Selection
- Go to Test Cases page
- Check boxes next to tests
- Click “Add to Test Plan”
- Select plan
- Click “Add”
Tip: A test case can be in multiple test plans. Use this to create overlapping suites like “Smoke Tests” and “Critical Tests”.
Organizing Test Plans
Common Test Plan Types
Smoke Tests
- Quick sanity checks
- Run before every deployment
- 5-10 critical tests
- Execute in 2-5 minutes
Regression Tests
- Comprehensive coverage
- Run before releases
- All critical + important tests
- May take 30-60 minutes
Feature-Specific Plans
- Tests for one feature
- “Login & Auth”, “Shopping Cart”, “Search”
- Run when that feature changes
Environment-Specific Plans
- “Production Smoke Tests”
- “Staging Regression”
- Run on specific environments
Priority-Based Plans
- “Critical Tests” - P0 priority
- “High Priority Tests” - P1 priority
- Run based on importance
Running Test Plans
Manual Execution
- Go to Test Plans
- Click on a plan
- Click “Run Test Plan”
- All tests execute in parallel (based on your plan limits)
- View aggregated results
Scheduled Execution
Set up automatic runs:
- Open Test Plan
- Click “Schedule”
- Choose frequency:
- Hourly
- Daily (specify time)
- Weekly (specify days and time)
- Custom cron expression
- Select time zone
- Click “Save Schedule”
Example schedules:
- “Every day at 2 AM” - Nightly regression
- “Every Monday at 9 AM” - Weekly full suite
- “Every hour” - Continuous monitoring
- “Weekdays at 6 PM” - End of business day checks
Pro Tip: Schedule smoke tests to run after each deployment by integrating with your CI/CD pipeline.
Viewing Results
Plan-Level Results
After a test plan runs, view:
Summary:
- Total tests: 25
- Passed: 23 (92%)
- Failed: 2 (8%)
- Duration: 12 minutes
Status:
- ✅ Passed - All tests passed
- ❌ Failed - One or more tests failed
- ⚠️ Partial - Some tests couldn’t complete
Test Breakdown:
- List of all tests with individual status
- Click any test to see detailed results
- Filter by pass/fail status
History
View past executions:
- All previous runs
- Pass rate trends
- Duration trends
- Compare runs
Test Execution Order
Tests in a plan run:
In Parallel:
- Multiple tests execute simultaneously
- Based on your concurrent execution limit
- Faster completion
Order Options:
- Alphabetical (default) - By test name
- Priority - Critical tests first
- Custom - Manual ordering
- Random - Catch order-dependent bugs
Change order:
- Open Test Plan
- Click “Reorder Tests”
- Drag and drop
- Click “Save Order”
Managing Test Plans
Editing Plans
- Open Test Plan
- Click “Edit”
- Update name, description, or tags
- Click “Save Changes”
Duplicating Plans
Create a copy of a plan:
- Open Test Plan
- Click “Duplicate”
- Modify as needed
- Save as new plan
Archiving Plans
Archive unused plans:
- Open Test Plan
- Click “Archive”
- Archived plans don’t appear in main list
- Can be restored later
Deleting Plans
Warning: Deleting a test plan doesn’t delete the test cases, only the grouping. Execution history for the plan is also deleted.
Best Practices
1. Start with Smoke Tests Create a quick smoke test plan first (5-10 tests, <5 min runtime)
2. Keep Plans Focused Each plan should have a clear purpose and reasonable execution time
3. Use Descriptive Names “Regression - Checkout Flow” is better than “Test Plan 1”
4. Balance Speed vs Coverage Smoke tests should be fast, regression can be thorough
5. Schedule Appropriately Don’t over-schedule - run tests when results matter
6. Review Failures Promptly Scheduled runs are useless if no one looks at results
CI/CD Integration
Trigger test plans from your pipeline:
Via Webhooks
- Set up webhook in your CI/CD tool
- Call BugBrain API to run test plan
- Wait for results
- Fail build if tests fail
Via Schedule
- Schedule test plan after deployment time
- Get notifications in Slack/Jira
- Team responds to failures
Learn about webhook integration →
Notifications
Get notified when plans complete:
Configure notifications:
- Open Test Plan
- Click “Notifications”
- Enable/disable notification types:
- On failure (recommended)
- On completion (all results)
- On first failure (stop after first fail)
- Choose notification channels:
- Slack
- Jira
- Teams
Analytics
Track test plan metrics:
Pass Rate Trends:
- Historical pass rate
- Identify degrading quality
- See improvement over time
Execution Duration:
- How long plans take
- Identify slow tests
- Optimize for speed
Failure Patterns:
- Which tests fail most
- When failures occur
- Common failure reasons
Advanced Features
Test Plan Templates
Create reusable templates:
- Create a well-organized plan
- Save as template
- Use template for new projects
- Customize as needed
Conditional Execution
Run only certain tests based on:
- Changed files (via CI/CD)
- Specific tags
- Environment variables
- Previous test results
Parallel Strategies
Configure how tests run:
- Max parallel: Limit concurrent tests
- Timeout per test: Individual timeouts
- Fail fast: Stop on first failure
- Retry failed: Auto-retry failures
Quota Limits
Test plan execution counts against quotas:
| Plan | Concurrent Plans | Scheduled Plans |
|---|---|---|
| Starter | 1 | 2 |
| Growth | 3 | 10 |
| Pro | Unlimited | Unlimited |
Troubleshooting
Plan won’t run?
- Check concurrent execution limits
- Verify all tests are active (not archived)
- Ensure no tests are currently running
- Check quota limits
Tests skipped in plan?
- Verify tests are active
- Check if tests were deleted
- Ensure tests aren’t in draft status
Scheduled plan didn’t run?
- Verify schedule is enabled
- Check quota limits
- Review execution history for errors
- Ensure payment method is valid