Glossary
Use case
A use case is a short account of how someone, called the actor, uses a system to get one thing done. It gives the main path first, then everything that can go differently or wrong along the way, and that second part is why it’s worth writing.
Twelve pages, signed off, never read
A requirements template has landed in your inbox with “Use case” at the top of every section, and you can already feel the twelve-page document it wants to become. Alistair Cockburn, who wrote the book most people learned use cases from, saw that coming twenty years ago: “Long and unreadable use cases just get signed off.”1 Nobody argues with a document nobody has read.
His own definition is plainer than the templates suggest: “a prose description of a system’s behavior when interacting with the outside world.”1 And he’s blunt about where the worth lies. Not in the main path, which everyone in the planning meeting can already picture, but in the alternatives: the slot that’s taken, the card that’s declined, the form that arrives half filled in.1 The most expensive mistakes he saw were too much detail, especially screens and buttons, which bury those alternatives under things that will change next sprint anyway.1
The four steps everyone pictures, and the two places it can go differently
Booking an appointment at an invented clinic takes four steps when everything goes right. The patient who arrives with no mobile number is the one the system meets on a real Tuesday, and step 4a is where it finds out whether anyone thought of her.
- 1. Selects the patientThe front-desk lead starts the booking
- 2. Sees the free slotsThe system shows what’s open2a. None free: offer the waiting list
- 3. Picks a slotShe chooses a time
- 4. Booking confirmedThe system texts the patient4a. No mobile: print a reminder card
As the source reports it.Worked out from the source’s figures.Drawn to show the pattern, not measured.After Alistair Cockburn, “Use Cases, Ten Years Later”, 2002. The clinic is invented.https://www.dsc.ufcg.edu.br/~garcia/cursos/ger_processos/seminarios/Crystal/Use%20Cases,%20Ten%20Years%20Later.htm
Born in a telephone exchange
Use cases started in the least glamorous place imaginable: Ericsson’s AXE telephone switching system, where in 1967 a young engineer called Ivar Jacobson began writing down “usage scenarios”, how a call or a fault would actually play out from outside the machine.1 The name came later, in the mid-1980s, translated from the Swedish användningsfall, roughly “case of use”.1
Jacobson took the idea to an object-oriented programming conference in 1987, and a 1992 book built a whole way of making software around it.2 For a decade use cases were how serious teams wrote requirements. Then agile arrived with index cards, and use cases started to look heavy. Jacobson adapted them for small, iterative teams as Use-Case 2.0 in 2011,2 and the Scrum Primer had already shrugged at the rivalry: backlog items “can be expressed as user stories, use cases, or any other requirements approach that the group finds useful.”2
Not the same thing as a user story
Martin Fowler put the difference in one pair of sentences. “Use cases organize requirements to form a narrative of how users relate to and use a system,” while stories “break requirements into chunks for planning purposes.”3 A use case is the whole goal told as a story; a user story is a slice of work you can finish this week. You’ll often want both, and the comparison of the two says when each earns its place.
To write one somebody reads: a handful of short steps, each something the actor does or the system does back, with no screens in them. Then go down the list and ask of every step, “and what if not?” That question is the use case.
One more thing makes them sharper. If the actor in every use case is “the user”, every one of them is vaguer than it needs to be. Name the front-desk lead, the locum, the patient booking from a bus, and the alternatives start writing themselves. Write those roles down first in the free persona creator, with what each needs to be able to do.
Sources
- Alistair Cockburn, “Use Cases, Ten Years Later”, STQE magazine, March/April 2002 (hosted copy)https://www.dsc.ufcg.edu.br/~garcia/cursos/ger_processos/seminarios/Crystal/Use%20Cases,%20Ten%20Years%20Later.htmThe definition, the value in the alternatives, the common mistakes, Ericsson in 1967 and användningsfall.
- “Use case”, Wikipediahttps://en.wikipedia.org/wiki/Use_caseThe OOPSLA paper (1987), the 1992 book, Cockburn’s book, Use-Case 2.0 (2011) and the Scrum Primer quote.
- Martin Fowler, “UseCasesAndStories”, martinfowler.com, 18 August 2003https://martinfowler.com/bliki/UseCasesAndStories.htmlUse cases as a narrative, and stories as chunks for planning.