Home › Blog › Testing & QA
Testing & QA

How to Write Good Test Cases: A Practical Guide with a Free Template

Short answer

A good test case has an ID, a clear title, preconditions, numbered steps, test data and an expected result that anyone can verify. Keep each case focused on one behaviour, cover the happy path plus key negative and edge cases, and reuse cases every release. A consistent template makes bugs easier to reproduce and testing easier to hand over.

AWI Digital Team 2026-10-06⏱ 3 min read

The template

FieldExample
IDTC-LOGIN-003
TitleLogin fails with wrong password
PriorityHigh
PreconditionsUser account exists; user is logged out
Test dataEmail: test@example.com; Password: wrong123
Steps1. Open the login page. 2. Enter email and wrong password. 3. Press Log in.
Expected resultAn error message ‘Incorrect email or password’ appears; the user stays on the login page; no session is created.
Actual result / statusFilled in at execution: Pass / Fail

Writing rules

  • One behaviour per test case
  • Steps that anyone on the team can follow
  • Expected results that are specific and observable
  • Include test data, not ‘valid email’
  • Keep titles searchable: feature, condition, result

What to cover for each feature

  1. Happy path: the normal successful flow.
  2. Negative cases: invalid, missing or forbidden input.
  3. Boundary values: minimum, maximum, empty, very long.
  4. Permissions: who can and cannot do this.
  5. Interruptions: network loss, double-click, back button.
  6. Cross-device: key browsers and phone sizes.

Example: checkout set

  • Successful card payment
  • Declined card message and retry
  • Coupon applied and removed
  • Out-of-stock item at checkout
  • Double-click on ‘Pay’ does not charge twice
  • Receipt email received

Get your app tested QA from $20/h

Tell us your app, platforms and release date. We scope the hours and quote.

Frequently asked questions

How many test cases do I need?

Enough to cover the risks of each feature; start with critical journeys and grow as the product grows.

Should test cases be automated?

Automate stable, repeated ones; keep new and exploratory cases manual. See manual vs automation testing.

Can you write test cases for my product?

Yes. Test design is part of our QA service.

Get a free quote in 24 hours

Tell us what you need. We reply with scope, timeline and a fixed price.

Keep reading