Read the scenario below, then fill in every field of the test case template. Click Get AI feedback to have the Testing Guru review your work, or Compare with sample to see a model answer.
Learning: Test Case Writing
🎯 Scenario — Pōhutukawa Events
You are testing the search feature on Pōhutukawa Events, an NZ event ticketing website. The search box is on the homepage and should let users find events by keyword (event name, city, or venue).
Your task: Write one complete test case for searching the keyword Wellington on the homepage. Assume the site is at https://events.pohutukawa.co.nz and that at least three Wellington events exist in the database.
✏ Test Case Template
Fill in all five fields. Be specific — someone who has never visited the site should be able to run this test and know exactly what "pass" looks like.
✅ Sample Answer
| ID | TC-SEARCH-001 |
|---|---|
| Title | Search for "Wellington" returns relevant events with correct result layout |
| Preconditions | 1. User is on the Pōhutukawa Events homepage (https://events.pohutukawa.co.nz). 2. At least 3 Wellington events exist in the database (e.g., "Wellington Jazz Festival", "Te Papa Night Tour", "Cable Car Comedy"). 3. User is not logged in. |
| Steps | 1. Navigate to https://events.pohutukawa.co.nz 2. Click the search input field at the top of the page. 3. Type "Wellington". 4. Press Enter (or click the magnifying-glass Search button). |
| Expected Result | 1. The browser navigates to /search?q=Wellington. 2. The results page displays at least 3 events containing "Wellington" in the title, venue, or city fields. 3. Each result card shows: event name, date (formatted as "DD MMM YYYY"), venue name, and a blue "Book Now" button. 4. A result count banner reads "Showing X results for 'Wellington'". 5. No error messages, empty states, or loading spinners remain visible after 3 seconds. |
Key differences from a weak answer: Specific URLs, exact data values, timeout expectation, layout details, and a result-count check. Your answer does not need to match word-for-word, but it should be this specific.
💡 What the AI will look for
- Atomic: Does the test case check only one thing?
- Repeatable: Could a stranger follow these steps and get the same result?
- Specific expected result: Does it describe exactly what the user sees, or is it vague (“works”, “passes”)?
- Preconditions: Are the setup details clear (test data, account, page)?
- Steps: Are they numbered, ordered, and include exact inputs?