Professional Documents
Culture Documents
Case Study Car Rental System
Case Study Car Rental System
Version 1.0
Author:
Major Revision Date:
Version: 0.1
Table of Contents
Table of Contents.....................................................................................................................................................2
Document Version Control...................................................................................................................................4
Privacy Information..............................................................................................................................................4
Document Revision History.....................................................................................................................................4
Status........................................................................................................................................................................ 4
Approved By............................................................................................................................................................4
Objective..................................................................................................................................................................5
Use Case Brief..........................................................................................................................................................5
1.0 Use Case Model...........................................................................................................................................6
1.1 Use Case List..........................................................................................................................................6
1.2 Actor List................................................................................................................................................6
1.3 Use Case Relation Diagram....................................................................................................................7
1.4 Use Case Glossary...................................................................................................................................8
2.0 Use Cases..................................................................................................................................................10
2.1 Create Customer....................................................................................................................................10
2.2.3 Alternate Scenarios...........................................................................................................................11
2.2.4 Exception Scenarios..........................................................................................................................11
2.2.5 Business Rules\Constraints....................................................................................................................11
2.2 Create Car.............................................................................................................................................12
2.2.3 Alternate Scenarios...........................................................................................................................12
Exception Scenarios.......................................................................................................................................12
2.2.5 Business Rules\Constraints....................................................................................................................12
2.3 Book Car...............................................................................................................................................13
2.2.3 Alternate Scenarios...........................................................................................................................13
2.2.5 Exception Scenarios..........................................................................................................................14
2.2.6 Business Rules\Constraints....................................................................................................................14
2.4 Pick Up Car...........................................................................................................................................15
2.2.3 Alternate Scenarios...........................................................................................................................15
2.2.6 Exception Scenarios..........................................................................................................................15
2.2.5 Business Rules\Constraints....................................................................................................................16
Document Version Control
It is the reader's responsibility to ensure they have the latest version of this document. Questions should be directed to the
preparer of this document above, or the project manager.
Privacy Information
This document may contain information of a sensitive nature. This information should not be given to persons other than
those who are involved in the project or who will become involved during the lifecycle.
Status
Status Open In Process Ready for Pending Approved
Review Approval
Approved By
Department Name Date Comments
Product Management
Release
Development
Objective
(1) Start with a use case diagram giving an overview on the system, its boundaries and its main
functionality
(2) Develop Use case, Use case relationship Diagram, Activity Diagram
The rental service provider (RSP) creates/selects the Car category information in the system like Car
Category, Car ID, Model, Make, Color, etc.
The rental service provider selects the booking details like Customer ID, Car category, Car ID, Booking
start date, Booking end date and saves booking information. The rental start day is greater than equal to
current day and less then equal to 30 days from the today’s date
The customer picks up a car from the rental service provider (RSP). The provider issues a car to the
customer whom booking is available in the system. The system changes the booking status as a current
booking and booked car is marked as unavailable in the system
The customer returns the car to the provider. The provider changes the booking status as closed; the car
marked as available in the system. The rental system allows early return or late return facility to the
customer. (Early return before the end booking date or Late return after the end booking date)
The customer may requests a cancellation of a booking. The provider changes the booking status as
closed; no car will be picked up for this booking.
1.0 Use Case Model
1.1 Use Case List
Name Description
2.1 Create Customer The use case describes the ability of the user to create a new customer
2.2 Create Car The use case describes the ability of the user to create a new car.
2.3 Book Car The use case describes the ability of the user to enter a car rental booking.
2.4 Cancel Booking The use case describes the ability of the user to the booking is marked as closed; no car will
Request be picked up for this booking.
2.5 Pick Up Car The use case describes the ability of the user to deliver a car for a car rental.
2.6 Return Car The use case describes the ability of the user to return a car for a car rental.
Summary-level goal Involves multiple user goals. They show the context in
which the user goals operate. They show life-cycle
sequencing of related goals. They provide a table of
contents for the lower-level use cases.
User-level goal Goal that is of the greatest interest. It is the goal the
primary actor has in trying to get work done or the one
the user has in using the system.
Sub function-level goal Goals that is required to carry out user goals. Include
them only as you have to – they are needed on occasion
for readability or because many other goals use them.
For example, Find and Save, As are sub function-level
goals.
2.0 Use Cases
2.1 Create Customer
Description The use case describes the ability of the user to create a new customer.
Secondary Actor(s)
Precondition(s) 1. The user is logged into the car rental system.
2. The real world customer to be recorded is currently not existed in the system.
Minimal Guarantee System sends an error message when the user cannot be created a new customer.
Success Guarantee Display message to the user that the new customer is successfully created. The (RSP) user selects
the customer information while booking the car.
Trigger User creates a new customer.
Frequency On demand
Reference
Activity Diagram
2.1.2 Main Success Scenario
Action Response
1. The user selects the customer module in the The system displays various options under customer module for
System. the user to select.
2. The user selects the option to view Customer. The system displays the list of customers (if some customer
have already been defined in the system).
3. The user selects the option to create new The system gives the user the option to create a new customer
customer and displays the fields for defining the customer.
4. The user specifies the CustomerID, Name,
and Contact Details etc.<A1> <A2>
5. The user selects to save the details. The system validates and saves the details in the customer
information
A2. The user enters more than Forty Five Characters in Customer Name description
Next
Action Response
Action
The user attempts to enter more than Forty Five The system does not allow the user to enter more 5
Characters in the Customer Name description. than Forty Five Characters.
Secondary Actor(s)
Precondition(s) 1. The user is logged into the car rental system.
2. The car to be recorded is currently not existed in the system.
Minimal Guarantee System sends an error message when the user cannot be created a new car. The (RSP) user selects
the car information while booking.
Success Guarantee Display message to the user that the new Car is successfully created.
Trigger User creates a new car.
Frequency On demand
Reference
Action Response
1. The user selects the customer module in The system displays various options under customer module for the user to
the system. select.
2. The user selects the option to view car. The system displays the list of cars (if some car have already been defined
in the system).
3. The user selects the option to create new The system gives the user the option to create a new car and displays the
car fields for defining the car.
4. The user specifies the Category, CarID,
Name, Model, Details etc.<A1> <A2>
5. The user selects to save the details. The system validates and saves the details in the car information
A2. The user enters more than Forty Five Characters in Car Name description
Next
Action Response
Action
The user attempts to enter more than Forty The system does not allow the user to enter more than Forty 5
Five Characters in the Car Name description. Five Characters.
Exception Scenarios
E1. The user selects the option to cancel the Create Car option
Action Response Next
Action
The user selects the option to cancel the The system exits from the create Car option The
create Car option user
exits the
use case
Secondary Actor(s)
Precondition(s) 1. The user is logged into the car rental system.
2. The user has received request from the customer.
Minimal Guarantee System sends an error message when the user cannot be booked the car.
Success Guarantee Display message to the user that the car is booked successfully.
Trigger To enter a car rental booking.
Frequency On demand
Reference
Action Response
1. The user selects the Booking module in The system displays various options under booking module for the user to
the system. select.
2. The user selects the option to book car. The system displays the list of book cars (if some booking have already
been defined in the system).
3. The user selects the option to add new The system gives the user the option to create a new booking and displays
booking the fields for defining the booking.
4. The user specifies the details as follows.
1) Customer ID
2) Car category
3) Booking start date
4) Booking end date.<A1> <A2>
5. The user selects to save the details. The system validates and saves the details in the booking information
A3. The user enters booking start date less then today’s date
Next
Action Response
Action
The user attempts to enter start date less then The system does not allow the user to enter start date less 5
today’s date then today’s date.
A4. The user enters booking end date greater then 30days from the today’s date
Next
Action Response
Action
The user attempts to enter end date greater then 30 The system does not allow the user to enter end date 5
days from the today’s date greater then 30 days from the today’s date.
Secondary Actor(s)
Precondition(s) 1. The user is logged into the car rental system.
2. The customer booking is available in the system.
Minimal Guarantee System sends an error message when the user cannot be issued the car.
Success Guarantee Display message to the user that the car issues to the customer successfully.
Trigger Customer picks up the car.
Frequency On demand
Reference
Action Response
1. The user selects the customer module in The system displays various options under customer module for the user to
the system. select.
2. The user selects the option to view pick The system displays the list of cars, which has been issued to the customer
up car (if some car have already been picked up by the customer in the system).
3. The user selects the option to pick up a The system gives the user option to pick up a car and displays the
car respective fields.
4. The user specifies the booking date The system displays the list of customer whom booking falls under entered
<A1> <A2> date
5.
6. The user selects to save the details. The system validates and saves the details in the car information
A2. The user enters more than Forty Five Characters in Car Name description
Next
Action Response
Action
The user attempts to enter more than Forty Five The system does not allow the user to enter more than 5
Characters in the Car Name description. Forty Five Characters.