Test Suites Best Practices & Use Cases

Organizing Test Suites

  1. Logical Grouping: Group test cases by feature, module, or functionality
  2. Clear Naming: Use descriptive names that indicate the suite’s purpose
  3. Documentation: Use descriptions to explain what the suite covers
  4. Reusability: Create suites that can be reused across multiple test runs

Using Manual Selection

  1. Specific Tests: Use manual selection for fixed sets of test cases
  2. Critical Paths: Manually select critical test cases that must always run
  3. Regression Sets: Create manual suites for regression testing
  4. Smoke Tests: Manually select quick smoke test cases

Using Filters

  1. Dynamic Inclusion: Use filters when test cases change frequently
  2. Status-Based: Filter by status to include only active test cases
  3. Priority-Based: Filter by priority to include high-priority tests
  4. Tag-Based: Use tags to create flexible test groupings
  5. Folder-Based: Filter by folder to include entire test areas

Hybrid Approach

  1. Combine Methods: Use both manual selection and filters for flexibility
  2. Critical + Dynamic: Manually select critical tests, use filters for others
  3. Base + Extensions: Create a base suite with filters, manually add specific cases
  4. Maintenance: Regularly review and update filters to ensure accuracy

Use Cases

Feature Testing

  1. Create a test suite for a specific feature
  2. Use filters to include all test cases related to the feature
  3. Manually add critical test cases that must always run
  4. Use the suite in test runs to validate the feature

Regression Testing

  1. Create a regression test suite
  2. Manually select stable, critical test cases
  3. Use filters to include test cases by priority or status
  4. Run the suite regularly to catch regressions

Smoke Testing

  1. Create a smoke test suite
  2. Manually select quick, high-priority test cases
  3. Keep the suite small for fast execution
  4. Use the suite for quick validation after deployments

Environment-Specific Testing

  1. Create test suites for different environments
  2. Use filters to include test cases tagged for specific environments
  3. Manually add environment-specific test cases
  4. Run appropriate suites for each environment

Test Case Organization

  1. Create test suites by test case type (manual, automated)
  2. Use filters to separate different test types
  3. Organize suites by testing phase (unit, integration, system)
  4. Create suites for different test priorities

Tips for Effective Test Suite Management

Organization

  • Use consistent naming conventions for test suites
  • Group related suites together conceptually
  • Keep suite descriptions up to date
  • Document the purpose of each suite

Maintenance

  • Regularly review filter criteria to ensure accuracy
  • Update manual test case selections as needed
  • Remove obsolete test suites
  • Keep suite sizes manageable

Performance

  • Avoid creating suites with too many test cases
  • Use filters efficiently to avoid performance issues
  • Consider splitting large suites into smaller ones
  • Monitor suite composition regularly

Common Pitfalls to Avoid

  1. Overly Complex Filters: Keep filter criteria simple and maintainable
  2. Too Many Manual Cases: Use filters when possible to reduce maintenance
  3. Outdated Filters: Regularly review and update filter criteria
  4. Unclear Naming: Use descriptive names that indicate purpose
  5. No Documentation: Always include descriptions explaining suite purpose

Next Steps

  • Learn about Test Cases to create tests for your suites
  • Explore Test Runs to execute test suites
  • Check out Releases to group test suites into releases
  • Review Repository to manage your test case library

Was this page helpful?