Use case specifications
1) Login
Actors Staff, Driver
Use case name Login
Description For users to log in to the system using their username and password.
Precondition User has to open the application.
Postcondition User will be logged in to the system.
Main flow 1. System displays a login page.
2. User enters a correct username and password.
3. User gains access to system
4. System displays a menu based on user type (staff/driver).
Alternative path 2. -User enters the wrong username and/or password.
-Error message is shown to user.
-Use case resumes at step 1.
Exceptions -
2) Change password
Actor Staff, Driver
Use case name Change password
Description For users to change their current password into a new password.
Precondition User must be logged in to the system.
Postcondition Users password is changed.
Main flow 1. System displays a menu.
2. User selects Change password.
3. User is required to enter current password.
4. System will check if actual current password & the entered current
password match.
5. Actual current password & entered current password match.
6. User is required to enter new password twice.
7. System will check if 1st new password & 2nd new password match.
8. 1st new password & 2nd new password match.
9. Users password is changed.
Alternative path 3. -Actual current password & entered current password do not
match.
-Error message is shown to user.
-Use case resumes at step 1.
6. -1st new password & 2nd new password do not match.
-Error message is shown to user.
-Use case resumes at step 4.
Exceptions At any point of the main flow the user wishes to cancel the changing of
password, the user can select cancel and the use case resumes at step 1.
3) Logout
Actor Staff, Driver
Use case name Logout
Description For users to log out and exit the system.
Precondition User must be logged in to the system.
Postcondition User logs out of the system.
Main flow 1. System displays a menu.
2. User selects Log out.
3. System displays a message confirming users action to log out.
4. User confirms log out action.
5. User is logged out of the system.
Alternative path 4. -User does not confirm log out action.
-Use case resumes at step 1.
Exceptions -
4) Create Driver
Actor Staff
Use case name Create Driver
Description For staff users to create a new driver.
Precondition User must be logged in to the system.
Postcondition A new driver is created.
Main flow 1. System displays a menu.
2. User selects Create Driver.
3. User is required to enter the new driver details.
4. System checks if each field is filled properly.
5. Each field is filled properly.
6. System displays a message confirming users action to create new
driver.
7. User confirms create new driver action.
8. New driver is created.
Alternative path
Exceptions At any point of the main flow the user wishes to cancel the creation of
new driver, the user can select cancel and the use case resumes at step 1.
5) Delete Driver
Actor Staff
Use case name Delete Driver
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
6) Update Driver list
Actor Staff
Use case name Update Driver list
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
7) Create Vehicle
Actor Staff
Use case name Create Vehicle
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
8) Delete Vehicle
Actor Staff
Use case name Delete Vehicle
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
9) Update Vehicle list
Actor Staff
Use case name Update Vehicle list
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
10) Assign Driver to Vehicle
Actor Staff
Use case name Assign Driver to Vehicle
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
11) Unassign Driver to Vehicle
Actor Staff
Use case name Unassign Driver to Vehicle
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
12) Check availability of Driver
Actor Staff
Use case name Check availability of Driver
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
13) List of assigned Vehicles
Actor Staff, Driver
Use case name List of assigned Vehicles
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
14) List all Drivers
Actor Staff
Use case name List all Drivers
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
15) List all Vehicles
Actor Staff
Use case name List all Vehicles
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
16) Search Driver
Actor Staff
Use case name Search Driver
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
17) Search Vehicles
Actor Staff
Use case name Search Vehicles
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions
18) View details
Actor Driver
Use case name View details
Description
Precondition
Postcondition
Main flow
Alternative path
Exceptions