12 Use Case Document
12 Use Case Document
• Phases
• Object-Oriented Analysis: understand the
domain
• Define an object-based model of it
• Object-Oriented Design: Define an
implementation
• Design the solution
• Object-Oriented Programming: Build it
Object Oriented Analysis
Description:
Actors:
1.A player who makes the prediction
2.A player who gets the other option
3.Coin
4.Coin game
Example-1 Coin Flip
Trigger: A player at random offers a prediction.
Preconditions:
1. Two players are available
2. A coin available
Basic Flow ("Sunny Day Scenario"):
3.A player at random is picked to predict the coin flip.
4.A player picked offers the prediction for the coin flip.
5.The coin is flipped and the result is provided.
6.A winner and loser is picked.
7.Offer to try it again.
Example-1 Coin Flip
Alternates: no
Exceptions: no failure condition.
Post conditions: one player wins and other loses
Stakeholders: Nil
Example-2: Car Rental Application
Use Case Name: Release a Vehicle (to a Customer)
Description:
A customer arrives to acquire the vehicle and
depart for desired destination. The vehicle
reservation contract is signed and the vehicle is
released to the customer.
• Actors
• Person who generates support request by clicking
button
• Customer Support Representative
• Preconditions:
• The person who generates the request needs to have
an active internet connection
• The website needs to be accessible by the customer
• The support agent needs to have an active internet
connection
• Basic Flow
1.The customer visits the support website
2.The customer clicks the “generate support ticket
button”
3.The customer is taken to a page where they are told
that support will be present shortly.
4. The ticket is sent to the support department
5. A customer support representative takes hold of the
ticket
6. The customer support representative is sent to the
same page as the user where there is a chat box
7. The customer support representative provides the
help and support to the customer
8. The customer closes the chat window
9. The customer support representative closes the
support ticket and enters information about the
session.
10.The use case ends
• Alternates:
• The customer asks to be contacted over the phone
• The customer might request someone come to their
home to help them with the product
• Exception:
• The customer loses their internet connection
between the chat. They are then shown an error
message.
• The customer service representative accidentally
closes the chat window, ending the support session.
The customer is informed that another
representative will be with them shortly.
• Level:
• Customer complaints
• General Feedback
• Stakeholders:
• The Customer Support Department – The whole
department’s purpose is to ensure customer satisfaction.
• The Sales Department – If the customer is unable to get
their problem fixed they might want to return the
product, which will be a loss for the sales department.
Things to remember