Guide · updated 19 November 2026
Test case template
A test case is one check: what the user does, step by step, and what they should see. Here are the columns every test case needs, a blank row to start from, and a filled-in template you can copy or download.
Ask a developer who has just finished building something to go back and write test cases for it, and you will usually get a long pause. It takes discipline to look again at what you built and list every way it could go wrong, and not everybody knows how to do it. Most small teams don't have a professional tester either. So the test cases never get written, and the app ships with whatever someone caught by clicking around. A template takes most of the effort out of it: you only have to fill in the rows.
The columns every test case needs
- ID: a short section code and a number, such as
NOTE-03. It never changes, so a bug report can point at it. - Journey: what the user is trying to do, in their words. “Delete a note”, not “DELETE /notes/:id”.
- Preconditions: what must be true before the first step: an account, a role, some saved data, no network.
- Steps: numbered, one action each, so someone who has never seen the app can follow them.
- Expected result: what the user should see. Specific enough that two people would agree on pass or fail. “It works” is not an expected result.
- One result column per platform: web, Android and iOS. A case can pass on web and fail on iOS, and a single Status column hides that. Write
N/Awhere a case doesn't apply.
Columns you can add if you need them: priority, test data (the exact email, card or file to use) and who tested it. Columns you can skip: “actual result” (if it failed, that goes in the bug report) and long descriptions that repeat the journey.
Write the cases for the wrong paths too
Most test cases check that the app works when people do exactly what the builder expected. The bugs are usually somewhere else: a form saved with an empty field, Save tapped twice, a delete cancelled halfway, a note written with no network, someone opening another account's page by its link. The template below has at least one of these in every section. When you fill in your own, ask of each journey: what if the user does it twice, does it wrong, or does it offline?
The template
The first row shows what goes in each column. The rest is a worked example for a notes app on web, Android and iOS. Copy it, or download it, and replace the rows with your own journeys.
# Test case template — notes app ## How to fill in a row (HOW) | ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS | |---|---|---|---|---|---|---|---| | HOW-00 | What the user is trying to do, in their words | What must be true before step 1: account, role, data, network | 1. One action. 2. One action. 3. One action. | What the user should see, specific enough that two people agree on pass or fail | Pass / Fail / N/A | | | ## Create and edit notes (NOTE) | ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS | |---|---|---|---|---|---|---|---| | NOTE-01 | Create a note | Signed in, no notes yet | 1. Tap New note. 2. Type a title and a line of text. 3. Tap Save. | The note is first in the list with its title and today's date. | | | | | NOTE-02 | Save with an empty title | Signed in | 1. Tap New note. 2. Leave the title empty and type some text. 3. Tap Save. | The note saves as "Untitled", or a message asks for a title. It is never lost. | | | | | NOTE-03 | Save tapped twice | Signed in, a new note typed | 1. Tap Save twice quickly. | One note is saved, not two. | | | | | NOTE-04 | Edit a note | A saved note | 1. Open it. 2. Change the text. 3. Go back to the list. | The list shows the new text and an updated time. | | | | | NOTE-05 | Very long text | Signed in | 1. Paste 20,000 characters into a note. 2. Save. 3. Open it again. | All the text is there and the screen still scrolls smoothly. | | | | ## Delete and restore (DEL) | ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS | |---|---|---|---|---|---|---|---| | DEL-01 | Delete a note | A saved note | 1. Open it. 2. Tap Delete. 3. Confirm. | The note is gone from the list and a message offers Undo. | | | | | DEL-02 | Undo a delete | A note just deleted | 1. Tap Undo. | The note is back in the same place with its text unchanged. | | | | | DEL-03 | Cancel the delete | A saved note | 1. Tap Delete. 2. Tap Cancel. | Nothing is deleted. | | | | ## Offline and sync (SYNC) | ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS | |---|---|---|---|---|---|---|---| | SYNC-01 | Write a note offline | Signed in, airplane mode on | 1. Create a note. 2. Turn the network back on. | The note is kept and appears on the other device within a minute. | N/A | | | | SYNC-02 | Edit the same note on two devices | Signed in on web and phone | 1. Edit the note on the phone. 2. Edit it on web before it syncs. | Neither edit is silently lost: both are kept, or the app asks which to keep. | | | | ## Access (ACC) | ID | Journey | Preconditions | Steps | Expected result | WEB | AND | IOS | |---|---|---|---|---|---|---|---| | ACC-01 | Another account cannot open my note | Two accounts, a note owned by the first | 1. Sign in as the second account. 2. Open the first account's note by its link. | Access is refused and none of the note is shown. | | N/A | N/A |
Or take the file: Markdown·CSV·Excel·no email, no sign-up.
More examples to borrow from
For ready-made cases on the screens most apps share, see test cases for a login page and test cases for checkout and payment. For more on writing each step and expected result, read how to write test cases and the test case examples. When the cases are grouped into a release, that is a test plan.
Let AI fill in the rows
If you build with Claude Code, Cursor or Codex, the AI can read every screen and write these cases for you. AI builds and builds and misses some parts; given an inventory in this format, it can switch to testing. Give it the columns above and ask for one case per journey, including the wrong paths. The QA skill for Claude Code does this from the code, route by route.
Run the cases without a second spreadsheet
Test cases in a spreadsheet go stale once testing starts: results in one tab, bugs in a tracker, and no record of which fix was checked again. Import this template into qarunbook and every case gets a result per platform, issues are raised against the case they came from, and a fixed bug goes back for a retest instead of straight to passed. Free for one app, no card.