Skip to main content
This page is under construction. More content coming soon!

Why Organization Matters

A well-organized test suite is:
  • Easy to navigate: Find tests quickly
  • Maintainable: Clear structure makes updates simple
  • Scalable: Grows cleanly as product expands
  • Collaborative: Team can work efficiently
Poor organization leads to duplicate tests, missed coverage, and wasted time.

Organization Methods

OneTest provides multiple ways to organize tests:

Folders

Hierarchical structure for logical grouping

Tags

Flexible labels for categorization

Custom Fields

Product-specific metadata

Folder Structure Strategies

Organize by Product Features

Recommended for most teams.
Pros:
  • Mirrors product structure
  • Easy for new team members
  • Scales well
Cons:
  • May need reorganization after refactoring

Effective Tagging Strategy

Tags provide cross-cutting categorization:
Purpose: Indicate criticality
  • p0 or critical: Must pass before release
  • p1 or high: Important, impacts core functionality
  • p2 or medium: Standard functionality
  • p3 or low: Nice to have
  • p4 or trivial: Optional
Purpose: Categorize by testing approach
  • smoke: Critical path verification
  • regression: Full suite before release
  • sanity: Quick verification
  • exploratory: Ad-hoc testing
  • security: Security-focused tests
  • performance: Load/stress tests
  • accessibility: A11y tests
Purpose: Identify target platform
  • web: Web application tests
  • mobile: Mobile-specific
  • ios: iOS app
  • android: Android app
  • api: API/backend tests
  • desktop: Desktop application
Purpose: Link to features/components
  • auth, login, signup
  • cart, checkout, payment
  • search, filter, sort
  • profile, settings
  • notifications, email
Purpose: Track when tests were added
  • sprint-24: Tests for sprint 24
  • v2.1.0: Tests for version 2.1.0
  • q1-2024: Tests added in Q1
Purpose: Track test lifecycle
  • draft: Work in progress
  • ready-for-review: Needs review
  • approved: Ready to use
  • automated: Has automation
  • flaky: Inconsistent results
  • deprecated: Being phased out
Many of these have built-in status fields. Use tags only if you need custom statuses.

Naming Conventions

Clear, Descriptive Titles

Format: Verify [action] [condition] [expected result]

✅ Good Examples

  • Verify user can login with valid credentials
  • Verify error message displays for invalid email format
  • Verify shopping cart updates when quantity is changed
  • Verify checkout completes successfully with credit card

❌ Bad Examples

  • Login test ← Too vague
  • Test #47 ← No context
  • Check if it works ← What is “it”?
  • User does something and sees a thing ← Too generic
Tips:
  • Start with action verb: “Verify”, “Validate”, “Confirm”
  • Include condition being tested
  • Be specific about expected outcome
  • Keep under 80 characters if possible

Maintenance Best Practices

1

Regular Audits

Review test suite quarterly:
  • Remove obsolete tests
  • Update outdated tests
  • Consolidate duplicates
  • Fix organizational issues
2

Ownership

Assign test ownership:
  • Feature teams own their feature tests
  • QA owns smoke/regression suites
  • Individuals own exploratory tests
Use custom fields to track ownership: owned_by: "payments-team"
3

Documentation

Document your structure:
  • Create folder descriptions
  • Define tag meanings
  • Maintain test suite README
  • Train new team members
4

Automation

Automate organization tasks:
  • Auto-tag based on folder location
  • Bulk move tests between folders
  • Generate coverage reports
  • Alert on orphaned tests

Common Anti-Patterns

Avoid these common mistakes:
Problem: Deeply nested folders (>5 levels)
Solution: Flatten structure, use tags for additional categorization
Problem: Some tests organized one way, others differentlySolution: Choose a strategy and stick to it. Migrate existing tests.
Problem: Too many tags (>10 per test)Solution: Use only meaningful tags. Remove redundant ones.
Problem: All tests in root folderSolution: Start organizing today! Create basic folders.

What’s Next?

Team Collaboration

Work together effectively

OQL Examples

Find tests with queries

Best Practices

General testing best practices

Test Management

Back to test management