Use case testing
A use case tells how a person reaches a goal, step by step. Test the usual route first. Then test each detour, such as an error or an option.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a holiday itinerary. A good itinerary has the main plan: train at nine, hotel by noon, dinner at eight. A good one also has the detours. What if the train is cancelled? What if the hotel is full? Real trips are made of both, and a traveller who has only the main plan is stuck at the first problem.
Daily List is a to-do list app. Lily wants to share her shopping list with a friend. Tom, the tester, writes down the steps she follows. That written story, from the goal to the end, is a . The usual successful route is the . A different route, such as an error or a choice, is an alternative flow.
Tom tests the main flow first, because it is what most people do. Then he tests each . One of them is the path where the friend has no account yet. People meet that detour all the time.
The picture has a limit. A traveller can improvise at a cancelled train. Software does only what it was built to do, so each detour has to be tried on purpose.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
PLAIN WORDS · 3 in this section
- itinerary
- a plan of a trip, step by step
- detours
- different routes taken to reach the same place
- detour
- a different route taken to reach the same place
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Testing a means walking the usual route and then each detour, because real people meet both.
- Find the goal and the main flow
- List the detours at each step
- Write a test for each flow with data and a result
- Ask what the list is missing
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The main plan of the trip | The main flow |
| The train is cancelled | An alternative flow such as an error |
| The hotel offers a different room | An alternative flow that is an option |
| Checking every plan in the itinerary | One test for each flow |
| A detour nobody wrote down | A missing flow, a gap in the use case |
WHERE THIS PICTURE STOPS
- A traveller can improvise at a cancelled train. Software only does what it was built to do.
- An itinerary is made by one person. A use case is made by a team and changes during the work.
- A traveller knows the goal without being told. A tester has to be given the goal and the steps.
HOOK
Main plan first, then every detour.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Say four words: goal, , detours, gaps. At each step of the main flow, ask what could go wrong there.
| In the trick | What it stands for |
|---|---|
| Goal | the written story from the goal to the end |
| Main flow | the usual successful route |
| Detours | an alternative flow such as an error or a choice |
| Gaps | a missing flow in the use case |
TELL A FRIEND
An itinerary needs a main plan and the detours. A needs a and the alternative flows.
OFTEN MIXED UP WITH Writing test conditions and test cases. Test conditions and cases show how to turn a rule into a test. testing gives you the routes, and each route then becomes a test.
PRACTISE AND KEEP
Sources for this topic — 2 sources
- Market practice
Unified Modeling Language (UML) 2.5.1 specification page ↗ — Object Management Group · UML 2.5.1, the clauses on use cases and actors: an actor is a role played by a person or system that deals with the subject (search excerpt, page not opened)
Official public catalogue/PDF retrieved and the cited sections read. UML 2.5.1 December 2017; §§7.5,9.5.3,11.5,14,15,17 and18 opened/read6 November 2026, including prior actor review. Original educational paraphrase; no source artwork copied.
- Market practice
ISTQB Advanced Level Test Analyst Syllabus ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), version checked against the document's own front matter, read in full text: section 3.2.3 (TA-3.2.3, K3) scenario-based testing. A use case has one main scenario, extensions that still reach the goal, and exceptions that do not. Scenarios are the coverage items; with no loops each scenario can have its own test case, and simple loop coverage is used when loops exist. Version 4.0 replaced the separate use case testing objective of earlier editions with this one
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CTAL-TA v4.0 GA, 2 May 2025), version checked against the document's own front matter. The page at this URL was not opened. Licence terms were not read, so put it in your own words and do not quote it.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.