Use Case Diagram (UCD)
This article is a definition of terms for Use Case Diagram (UCD) – including exam questions, core components, and tags.
In a Nutshell
A Use Case Diagram models from a user’s perspective which objectives actors achieve with a system and which use cases the system offers. It is an important artifact of requirements analysis.
Compact Technical Description
A UCD shows:
- Actors (roles/external systems) outside the system boundary
- System boundary (scope)
- Use cases (goal-oriented application scenarios)
Relations:
- include: mandatory reuse (always required)
- extend: optional extension under condition
- Generalization: specialization of actors/use cases
UCD describes the what, not the how. Details belong in textual use case descriptions (triggers, pre-/postconditions, main/alternative scenarios) and in sequence/activity diagrams.
For security, misuse cases can be used.
Exam-Relevant Key Points
- Goal level, no technical UI clicks
- Actors are roles outside the system boundary
- include vs extend (IHK frequently tests this)
- Derive requirements, acceptance criteria, and tests from UCD
- Misuse cases for threats
- Diagram + text description versioning/approval
Core Components
- Primary/secondary actors
- System boundary
- Use case (ellipse)
- Association actor ↔ use case
- include
- extend
- Generalization
- External systems
- Misuse case
- Traceability (use case → test)
Practical Example (Web Shop)
Actors: Customer, Payment Provider, Admin
Use Cases: Register, Sign In, Search Product, Shopping Cart, Pay
Pay: include Start Payment Process
Pay: extend Apply Discount (if voucher)
Misuse: Unauthorized Access → Countermeasure 2FA
Advantages and Disadvantages
Advantages
- Very good stakeholder communication
- Clear system boundaries
- Good basis for requirements and test derivation
Disadvantages
- No detailed process logic
- Risk of overload
- Text descriptions are additionally required
Typical Exam Questions (with Short Answers)
- What is a UCD used for? Functional scope from user perspective + system boundary.
- include vs extend? include = always required, extend = optional under condition.
- What belongs in the textual use case description? Triggers, pre-/postconditions, scenarios, acceptance criteria.
- How do you derive tests? Each scenario variant yields at least one test case.
Free Response
In the FIAE exam, “UCD” almost always means the Use Case Diagram (not User-Centered Design). Therefore, pay attention to correct notation, clear objective names, and the derivation of requirements and tests.
Learning Strategy
- Sketch UCD for web shop.
- Describe use cases textually (pre-/postconditions).
- Practice include/extend.
- Create traceability table use case → test case.
Most Important Sources
- https://www.omg.org/spec/UML
- https://de.wikipedia.org/wiki/Anwendungsfalldiagramm
- https://alistair.cockburn.us/knowledgebase/writing-effective-use-cases/