Why Organization Matters
You’ve created your first few tests. They work great! But fast forward three months—you now have 50 tests. Six months later, 150 tests. How do you find the right test? How do you know which tests to run before a release? Which tests cover the checkout flow? Without a solid organization system, your test suite becomes chaotic. Tests get duplicated, important workflows go untested, and nobody knows what breaks when a test fails. Good organization from the start saves countless hours later. Think of it like organizing a library. You could pile all books in random stacks, but it would be impossible to find anything. Libraries use sections, categories, and clear labeling—your test suite deserves the same care.The Three Pillars of Test Organization
Autonoma gives you three powerful tools to organize tests:- Folders - Physical organization (like file cabinets)
- Naming Conventions - Clear identification (like book titles)
- Tags - Flexible grouping (like genres that cross cabinet boundaries)
Pillar 1: Folders - Physical Organization
What Are Folders?
Folders let you group related tests together. Think of them as drawers in a filing cabinet—each drawer contains tests about a specific part of your application.Folder Organization Strategies
The best folder structure depends on your team size and application complexity. Here are proven approaches:Strategy 1: Organize by Feature (Recommended for Most Teams)
Group tests by the feature they test:- Easy to find tests related to a feature
- Clear ownership (feature teams own their test folders)
- Scales well as you add features
Strategy 2: Organize by User Journey (Good for Flow-Heavy Apps)
Group tests by complete user journeys:- Tests reflect actual user experiences
- Easy to ensure critical paths are covered
- Great for onboarding and understanding user flows
Strategy 3: Organize by Team (Good for Large Organizations)
If you have multiple teams working on the same application:- Clear ownership and accountability
- Teams can work independently
- Easy to track team-specific test coverage
Folder Best Practices
1. Keep folder hierarchies shallow (2-3 levels max) Bad (too deep):- “Authentication” not “Auth”
- “Shopping Cart” not “Cart”
- “User Profile” not “Profile”
Pillar 2: Naming Conventions - Clear Identification
Why Test Names Matter
A test name is the first thing you see when it fails. A good name tells you immediately:- What broke
- Where to look for the problem
- How critical it is
The Anatomy of a Good Test Name
A well-named test follows this pattern:Checkout - Apply 20% discount code - Verify price updateLogin - Invalid password - Verify error messageShopping Cart - Add three items - Verify cart badge shows 3
Naming Patterns That Work
Pattern 1: Feature + Action + Verification
Pattern 2: User Goal-Based
Pattern 3: Error State Testing
Real-World Examples
Let’s see how naming makes a difference: Bad naming:Naming Best Practices
1. Be specific, not vague- “Login - Email and password - Successful login” not “Login test”
- “Checkout - Apply SAVE20 code - 20% discount applied” not “Discount code”
- “Add to Cart - Verify badge updates” not just “Add to Cart”
- “Delete account - Verify confirmation modal” not just “Delete account”
- “Registration - Valid email - Welcome email sent” not “Registration Test 1”
- “Login” not a mix of “Login”, “Sign in”, “Auth”
- “Shopping Cart” not a mix of “Cart”, “Basket”, “Shopping Bag”
- “Checkout - Guest user” not “Guest user checkout”
- “Profile - Update email” not “Update email in profile”
Pillar 3: Tags - Flexible Grouping
What Are Tags?
Tags are labels you attach to tests to group them logically across folder boundaries. A single test can have multiple tags. Think of tags like genres in a music library. A song exists in one album (folder), but it can be tagged as “rock”, ”90s”, “guitar-heavy” allowing you to create different playlists without moving the file.Common Tag Strategies
Critical Path Tags
Tag tests by criticality:smoke- Critical tests that must pass before any releaseregression- Comprehensive tests to run before major releasesoptional- Nice-to-have tests that can be skipped if time is short
Environment Tags
Tag tests by where they should run:staging- Tests safe to run in stagingproduction- Tests safe to run in production (read-only)local- Tests for local development
Feature Tags
Tag tests by feature or epic:authenticationpaymentsonboardingmobile-onlyweb-only
Tag Naming Best Practices
1. Use lowercase, kebab-casesmoke-testnotSmoke Testcritical-pathnotCRITICAL_PATH
smokenotsmoke-test-suite-critical-pathauthnotauthentication-and-authorization
smoke,regression,optional(criticality)web,ios,android(platform)staging,production(environment)- Feature-specific tags as needed
Tags vs. Folders: When to Use Each
Use folders when:- Tests are related to the same feature/area
- You want physical organization
- The relationship is permanent
- Tests span multiple features but share a characteristic
- You need flexible grouping
- The relationship might change
Checkout folder groups all checkout tests physically, but tags let you run “all smoke tests” across all features, or “all guest-flow tests” regardless of feature.
Understanding Test Types
As you organize tests, you’ll hear terms like “smoke test” and “regression test.” Here’s what they mean:Smoke Tests
Definition: Quick tests of critical functionality to ensure the application is basically working. Analogy: Like checking if your car starts, has gas, and the brakes work before a road trip. You’re not testing everything, just “is it safe to proceed?” Characteristics:- Fast (5-10 tests total, running in minutes)
- Cover only critical paths
- Run before every deployment
- Must pass before anything else
- User can log in
- Homepage loads
- User can add item to cart and checkout
- Payment processing works
- User can create new account
Regression Tests
Definition: Comprehensive tests to ensure new changes haven’t broken existing functionality. Analogy: Like a full car inspection before a long trip—checking engine, tires, lights, fluid levels, everything. Characteristics:- More comprehensive (might be all your tests)
- Takes longer to run
- Run before major releases
- Catches edge cases and less-common paths
- All smoke tests PLUS
- Error handling (invalid inputs, network errors)
- Edge cases (empty cart, special characters in names)
- Multiple user types (admin, guest, premium)
- Different browsers/devices
How to Tag Tests
Start with criticality tagging: Week 1: Create smoke tests- Tag 5-10 tests as
smoke - These cover absolute must-work scenarios
- Should run in under 5 minutes
- Tag comprehensive tests as
regression - Include smoke tests in regression (smoke ⊆ regression)
- Run before releases
- Add feature-specific tags as you build tests
- Use for focused test runs
Running Tests with Tags
One of the most powerful features of tags is running specific test groups:Via Autonoma UI
Schedule runs for specific tags:- Daily: Run
smoketests - Weekly: Run
regressiontests - On-demand: Run
checkouttests when working on that feature
Via CI/CD
Use tags to run different tests in different contexts:Scheduling Tests to Run Automatically
Once your tests are organized, you should run them automatically, not just manually.Recommended Schedule
Smoke tests → Run frequently- After every deployment
- Hourly in production (if read-only)
- On every pull request
- Before major releases
- Nightly
- Weekly
- When working on that feature
- Before merging feature branches
How to Schedule in Autonoma
- Go to your test or folder
- Click “Schedule”
- Choose frequency (hourly, daily, weekly)
- Select tag or folder to run
- Set up notifications (Slack, email)
Putting It All Together: A Complete Example
Let’s see how folders, names, and tags work together:- Folders group related tests logically
- Names describe exactly what each test does
- Tags let you run groups across folders:
smoke: 4 critical testsregression: All testserror-handling: All error scenario testspayments: All payment-related tests
Migration Strategy: Organizing Existing Tests
Already have tests but they’re disorganized? Here’s how to fix it:Phase 1: Audit (Week 1)
- List all existing tests
- Identify duplicates or outdated tests
- Delete or archive obsolete tests
Phase 2: Categorize (Week 1-2)
- Group tests by feature/area
- Create folder structure
- Move tests into folders
Phase 3: Rename (Week 2-3)
- Rename tests following naming conventions
- Make names descriptive and consistent
- Front-load feature names
Phase 4: Tag (Week 3-4)
- Tag critical tests as
smoke - Tag comprehensive tests as
regression - Add feature-specific tags
Phase 5: Schedule (Week 4)
- Schedule smoke tests to run daily
- Schedule regression tests to run weekly
- Set up notifications
Common Organization Mistakes to Avoid
Mistake 1: Everything in Root Folder
Problem: 100 tests with no folders Solution: Create feature-based folders immediatelyMistake 2: Too Many Folders
Problem: Folder for every single test Solution: Group related tests—aim for 5-15 tests per folderMistake 3: Inconsistent Naming
Problem: Mix of “Login”, “Sign In”, “Auth”, “Authentication” Solution: Pick one term and use it everywhereMistake 4: Tag Explosion
Problem: 47 different tags with no clear purpose Solution: Define 10-15 core tags, use them consistentlyMistake 5: No Smoke Tests Identified
Problem: Don’t know which tests are critical Solution: Tag your 5-10 most critical tests assmoke
Quick Reference: Organization Checklist
Use this checklist to ensure good organization: Folders:- Tests grouped logically by feature/journey
- Folder names are clear and consistent
- Folder hierarchy is shallow (2-3 levels max)
- 5-15 tests per folder (not too few, not too many)
- Test names describe feature + scenario + outcome
- Names are specific, not vague
- Consistent terminology throughout
- Important information front-loaded
- Smoke tests identified and tagged
- Regression tests tagged
- Feature/area tags applied
- 3-5 tags per test maximum
- Tag taxonomy documented
- Smoke tests scheduled to run frequently
- Regression tests scheduled regularly
- Notifications configured for failures
Key Takeaways
- Use folders for physical organization by feature or team
- Use descriptive names that explain what the test does
- Use tags for flexible grouping across folders
- Identify smoke tests - your critical path tests
- Schedule tests to run automatically - don’t rely on manual runs
- Keep it simple - don’t over-organize with too many folders or tags
- Be consistent - pick patterns and stick with them

