Use Cases and Scenarios
A use case is a business analysis technique for describing how an actor, such as a customer or another system, interacts with a solution to reach a goal. A use case covers the main success scenario and the alternative and failure paths; a scenario is one concrete path through a use case.
Quick facts
- Type
- Modelling technique (activity flow, user-solution interaction)
- Origin
- Ivar Jacobson (1987 OOPSLA paper; 1992 book); goal-based written use cases by Alistair Cockburn (2001)
- Used when
- You need to describe how users and systems interact to reach a goal, including what goes wrong
- Variants
- Brief, casual and fully dressed use cases; use case diagrams; Use-Case 2.0 slices
- Related techniques
- User stories, sequence diagrams, process modelling, acceptance criteria
- Reference
- BABOK® Guide v3, §10.47 (Use Cases and Scenarios)
- Exam relevance
- Not named in the ECBA™ blueprint; relevant to CCBA®/CBAP® (Requirements Analysis and Design Definition)
At a glance
- Identify actors and their goals — who uses the solution, and to achieve what
- Name each use case as a goal — verb plus object: Apply for permit
- Write the main success scenario — numbered steps, actor and system alternating
- Add extensions — what can differ or fail at each step
- Add pre- and postconditions — what must hold before, what is true after
- Walk scenarios with stakeholders — real cases through each path
What is a use case?
A use case describes a goal an actor wants to reach with a solution, and the interaction between the actor and the solution that reaches it. Actors are roles, not people: a resident, a claims handler, or another system. The primary actor starts the use case to pursue a goal; secondary or supporting actors, such as a payment provider, help the solution deliver it.
A use case is more than its happy path. It contains:
- a main success scenario: the most common path to the goal, as numbered steps;
- extensions (alternative and exception flows): what can differ or go wrong at each step, and how the solution responds;
- preconditions and postconditions: what must be true before the use case starts and what holds true when it ends.
A scenario is one concrete path through a use case, such as "resident applies with valid proof of address and pays by card". Scenarios are useful for walk-throughs and test cases.
Use cases are therefore a way of describing behavior as goals reached through interactions, including everything that can go wrong on the way.
How do you write a use case step by step?
At Harbourside Council, a business analyst writes the use case "Apply for a resident parking permit" for a new online service:
- Actors and goal. Primary actor: resident. Goal: hold a valid permit. Supporting actors: the address register and the payment provider.
- Precondition: the resident has an online account.
- Main success scenario, in five numbered steps: (1) the resident selects the permit type and the vehicle; (2) the system checks the address against the register and confirms eligibility; (3) the resident uploads proof of vehicle ownership; (4) the system calculates the fee and takes payment; (5) the system issues the permit and sends a confirmation.
- Extensions: 2a, the address is outside a permit zone: the system explains why and ends the use case. 4a, payment is declined: the resident may retry or save the application.
- Postcondition: a paid permit is active, or the application is saved unpaid.
Each step is written in business language, with no buttons or screens, so the use case stays valid whatever the interface looks like.
A use case written this way captures both the normal flow and the failure handling that is often missed in requirements.
What is a use case diagram?
A use case diagram, defined in UML, is a one-page overview: actors as stick figures, use cases as ovals inside a system boundary, and lines showing which actor takes part in which use case. It answers "who uses the solution for what?", which makes it useful for scope discussions.
Two relationships appear on many diagrams:
- include: a use case always uses another, such as "Take payment" included in several use cases;
- extend: a use case optionally adds behavior to another under a condition.
The diagram says nothing about the steps; the value of use cases is in the written text. Elaborate webs of include and extend relationships tend to confuse readers and are best kept to a minimum.
A use case diagram is a map of the use cases, not a replacement for writing them.
How detailed should a use case be?
Cockburn's approach distinguishes both the goal level and the format of a use case.
Goal levels range from summary goals (a whole business objective, such as "Manage parking permits") through user goals (what one actor does in one sitting, such as "Apply for a permit") down to subfunctions (a step reused by several use cases). User-goal use cases are usually the most useful for requirements.
Formats range from:
- brief: a few sentences, enough for early scoping and estimation;
- casual: a few paragraphs covering the main path and key variations;
- fully dressed: numbered steps, extensions, pre- and postconditions and other fields.
Fully dressed use cases fit complex or regulated behavior; brief ones fit early or adaptive work. Use-Case 2.0, published in 2011 by Ivar Jacobson, Ian Spence and Kurt Bittner, splits use cases into slices that can be delivered incrementally.
Choosing the level and format by purpose keeps use cases from becoming either too thin to be useful or too heavy to maintain.
What are the limitations of use cases?
Use cases have strengths few techniques match: they keep the user's goal in view, they systematically ask what can go wrong at each step, and their scenarios translate directly into test cases. Their limits are well known:
- Effort. Fully dressed use cases take time to write and maintain, which fits poorly with rapidly changing scope.
- Interface creep. Writers slip into describing screens and buttons, which turns requirements into designs.
- Functional focus. Use cases describe behavior; quality attributes such as performance or security need other techniques.
- Diagram over substance. Teams sometimes produce a use case diagram and stop, leaving the behavior undescribed.
- Not for everything. Batch processes, reports and data-heavy requirements are often clearer in other models.
Use cases are most effective for interaction-heavy functionality where alternative and failure paths matter.
Use cases vs. user stories: what is the difference?
| Use cases | User stories | |
|---|---|---|
| Format | Structured text: actor, goal, steps, extensions, conditions | Short statement of who wants what and why, plus acceptance criteria |
| Granularity | A whole goal, with all its paths | A small, independently deliverable slice of value |
| Alternative paths | Built in, as extensions | Usually separate stories or acceptance criteria |
| Typical context | Predictive or hybrid work, complex interactions | Adaptive work, backlogs |
| Main strength | Completeness of behavior, including failures | Conversation, flexibility, incremental delivery |
Use cases describe a complete goal with all its paths; user stories describe small slices of value for incremental delivery. Many teams use a use case to understand the whole and user stories to deliver it.
FAQ
What is a use case in business analysis?
A use case describes how an actor, such as a customer or another system, interacts with a solution to achieve a goal. It includes the main success scenario, the alternative and failure paths, and the conditions before and after. Business analysts use use cases to describe functional behavior from the user's point of view.
What is the difference between a use case and a scenario?
A use case covers all the ways an actor can pursue one goal, successful or not. A scenario is one specific path through that use case, such as the main success path or the path where payment is declined. Scenarios are often used for walk-throughs and test cases.
What is an actor in a use case?
An actor is a role that interacts with the solution: a type of person, an organization or another system. The primary actor starts the use case to reach a goal, while supporting actors, such as a payment provider, provide a service the solution needs along the way.
What is the difference between include and extend in a use case diagram?
An include relationship means one use case always uses another, such as several use cases that all include taking a payment. An extend relationship means a use case optionally adds behavior to another under a specific condition. Both should be used sparingly to keep diagrams readable.
Are use cases still used in agile teams?
Yes, though often in lighter forms. Some teams write brief use cases to understand a goal and its failure paths, then split them into user stories for the backlog. Use-Case 2.0 formalizes this idea by slicing use cases into increments that can be delivered one at a time.
Sources
- Jacobson, I., Christerson, M., Jonsson, P. & Övergaard, G. (1992). Object-Oriented Software Engineering: A Use Case Driven Approach. ACM Press / Addison-Wesley.
- Cockburn, A. (2001). Writing Effective Use Cases. Addison-Wesley.
- Jacobson, I., Spence, I. & Bittner, K. (2011). Use-Case 2.0: The Guide to Succeeding with Use Cases. Ivar Jacobson International (e-book).
- IIBA® (2015). A Guide to the Business Analysis Body of Knowledge® (BABOK® Guide) v3, §10.47 Use Cases and Scenarios.
- Last reviewed