2 / 10 · Book 11 · Anatomy of a Test Case · drill: interview Q&A← prev⊞ allnext →Get the book →
1.8Exercises — Chapter 1
Beginner: Write 3 test cases for a "Forgot Password" feature using the Given/When/Then format. Include at least one positive and one negative case.
Intermediate: Write 5 test cases for an e-commerce product search feature. Cover: successful search, empty results, special characters in query, very long query, and search with filters applied.
Advanced: You are handed a one-page feature spec for a "User Invitation" system (admin invites users by email, invited users receive a link, link expires in 48 hours, invited users set their password). Write a complete test suite of 10-15 test cases covering positive, negative, and edge cases.