Advanced Agile Testing study guide
Test Smells and Anti-Patterns in Agile Testing
Test Smells are symptoms of poor design or implementation in automated test code that make the suite brittle, slow, or hard to maintain. Anti-patterns are common but ineffective recurring solutions to testing problems.
Practical example
Common Test Smells: Sleepy Tests: Using hardcoded Thread.sleep() instead of dynamic waits. Obscure Tests: Tests that are hundreds of lines long, making it impossible to understand what is being verified. Duplication: Repeating the exact same UI setup logic in every single script.
Exam scenario and common trap
Question: An automated test fails occasionally because the database takes too long to respond. The QA engineer adds a 5-second hardcoded pause to fix it. What is this called? The Trap: "Implementing a robust synchronization strategy." The Correct Answer: This is a Test Smell (Hardcoded Sleep Anti-pattern). It slows down the CI/CD pipeline and remains flaky if the database takes 6 seconds.
Related syllabus sections cover this topic. Reference sections: 5.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.