Use Cases
Use Cases
“Cookfood” is “functional.”
Vs
How well it cooks, or how fast, or how easily is not.
Why?
Question 1
What is a Use Case?
Sequences of actions
Performed by system of interest
Observable result of value to a particular actor
Question 2
Benefits – Requirements Management
Questions 3,4
Benefits – Development Life Cycle
Eat food
Buy food
Parent Child
4. Outline Use Cases
What is a pre-condition?
What is a post-condition?
Questions 5,6
Use Case Template
A. Name
B. Brief description
C. Actors
D. Basic flow
E. Alternate flows
F. Pre-conditions
G. Post-conditions
H. Other stakeholders
I. System/sub-system
J. Special requirements
Microwave Example
Cook Food
User
Cook Food Use Case – Slide 1 of 4
D. Basic flow:
1. User opens door and places food in unit
2. User enters time for cooking
3. User tells microwave to start
4. Unit cooks food
5. Unit indicates it is done
Cook Food Use Case – Slide 3 of 4
Question 8
Cook Food Use Case – Slide 4 of 4
F. Pre-conditions
◦ Unit is plugged in
◦ Unit is in ready state
G. Post-conditions
◦ Food is cooked or user cancelled operation
H. Special requirements
◦ Unit should indicate remaining time to finish while
cooking
◦ Default power setting should be "high"
How do the use case and the storyboard fit?
How do you know you have collected enough use
cases?
Extending Use Cases
Question 7
Microwave Extension
Cook Food
<<extend>>
Cook Food
<<include>>
D. Basic flow:
1. User opens door and places food in unit
2. User performs Set Timer use case
3. User pushes start button
4. Unit cooks food
5. Unit beeps
RFC 2119 Just Google for this, to see what it is!
Will,
Shall, Must
Should
May
Is there a difference?
In Class Discussions – we’ll discuss these…