Worksheet · Write a test case

Grad ⏱ ~15 min ✏ Writing exercise

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.

A unique code. Format: TC-[FEATURE]-### (e.g., TC-SEARCH-001)
One sentence describing what is being tested.
What must be true before you start? (data, account, page, state)
Numbered, specific actions. Include exact data to enter.
Exactly what should happen. Describe what the user sees, not just "it works".

✅ Sample Answer

IDTC-SEARCH-001
TitleSearch for "Wellington" returns relevant events with correct result layout
Preconditions1. 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.
Steps1. 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 Result1. 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

Progress saved