0% found this document useful (0 votes)
43 views15 pages

Use Case Document Assignment

The document describes an online food ordering system. It outlines several use cases including creating an account, checking favorite restaurants and menus, ordering food, generating receipts, making payments, adding menu items. It provides details on the actors, descriptions, preconditions, normal flows and alternatives for each use case.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views15 pages

Use Case Document Assignment

The document describes an online food ordering system. It outlines several use cases including creating an account, checking favorite restaurants and menus, ordering food, generating receipts, making payments, adding menu items. It provides details on the actors, descriptions, preconditions, normal flows and alternatives for each use case.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Online Food Ordering

System
Software Requirement Specification
BS in Software Engineering

Department of Computer Science


COMSATS Institute of Information Technology, Lahore
26 January 2020

COMSATS Institute of Information Lancaster


Technology
University
Use Case Model

Use case Description:


Use Case No: 1

Use Case Create Account


Name:

Actors: Manager, Customer

Description: The create account use case allow manager and customer to create their accounts
and become a registered member.

Preconditions: None

Normal 1. The customer enter the full name, email address and password.
Course: 2. The manager enter the full name, email address, password and name of
the restaurant.
3. The system will ask them to choose strong password.
4. The system will ask to reenter the password.
5. The account will be created after click on sign up button.

Alternative 1.1 Invalid entry of information


Courses:
1. The system will show the message to reenter the invalid data.

1.3 weak password

1. The system will show the message to enter strong password.

1.4 Password not match

1. The system will show the message to reenter the password.

Post 1. The manager and customer are now registered.


conditions: 2. The system display all features to which customer and manager are
associated with as defined in their account.

Exceptions: None
Use Case No: 2

Use Case Check Favorite Restaurant


Name:

Actors: Customer

Description: This use case allow customer to search for their favorite restaurants.

Preconditions: 1. The customer should be registered.

Normal 1. Search bar appear on homepage.


Course: 2. The customer enter the restaurant name or place name.
3. Now customer click on the search button.
4. The system displays the available restaurant in that area or the restaurant
the customer looking for.

Alternative 1.4 No Restaurant available


Courses:
1. The system display the message sorry no restaurant available in that area.
2. The system will show the available restaurants to customer nearby that
area.

Post 1. The system display the restaurant that customer searched.


conditions: 2. The system display the nearby restaurant incase searched restaurant not
available.

Exceptions: None
Use Case No: 3

Use Case Check Menu


Name:

Actors: Customer

Description: This use case allow customer to check the menu of restaurant.

Preconditions: 1. The customer should be registered.


2. The customer should search for restaurant.

Normal 1. The customer search for restaurant.


Course: 2. The system displays the restaurant section.
3. The check menu button appear at top of restaurant section.
4. The customer click on the button.
5. The system display the menu.

Alternative 1.5 No Menu available


Courses:
1. The system display the message sorry no menu available for this
restaurant.

Post 1. The system display the menu of restaurant.


conditions:

Exceptions: None

Use Case No: 4


Use Case Order food
Name:

Actors: Customer

Description: This use case allow customer to order the food.

Preconditions: 1. The customer should be registered.

Normal 1. The plus + sign available on left side of each item of menu.
Course: 2. The customer click on + sign.
3. The system ask customer to select quantity of that item.
4. The customer select the quantity.
5. The system add that item to cart.
6. The customer select more item from menu and system add them in cart.
7. The order food button appears on cart.
8. The customer clicks on the button.
9. The system display the message your food has been ordered.

Alternative 1.5 Deselect item from cart


Courses:
1. The minus – sign appears on the left side of every item in the
cart.
2. The customer clicks on the – sign.
3. The item removed from cart.
4. The system displays the message the item is removed.

Post 1. The system display a message the food has been ordered.
conditions:

Exceptions: None
Use Case No: 5

Use Case Generate receipt


Name:

Actors: Calculation system, Customer

Description: This calculation system calculates the total price of items in the cart and generate
the receipt for customer.

Preconditions: 1. The item should be present in cart.

Normal 1. The customer add item to the cart.


Course: 2. The calculation system calculate total price of item in cart.
3. The calculation system generate the receipt for customer.
4. The system display the receipt for customer.

Alternative 1.2 Updating the calculation


Courses:
1. The customer remove item from cart.
2. The calculation system calculates and update the total price for
customer.
3. The calculation system generates the receipt according to
updation.
4. The system display the receipt for customer.

Post 1. The calculation system generates the receipt.


conditions: 2. The customer sees the receipt.

Exceptions: None
Use Case No: 6

Use Case Payment


Name:

Actors: Customer

Description: This use case allow customer to pay for food.

Preconditions: 1. The customer should be registered.


2. The customer should ordering the food.
3. The customer should have the receipt that calculation system generates
for them.

Normal 1. The lets pay button appears on the right side below the receipt.
Course: 2. The customer clicks on the button.
3. The system displays credit card and cash on delivery option.
4. The system ask customer to choose one of them.
5. The customer choose any option.

Alternative 1.2 The customer cancel the order.


Courses:
1.5 Cash on delivery

1. The system displays the message “you can pay in cash to our courier
when you receive the order at your doorstep”.
2. The confirm order button appears at below of this message.
3. The customer clicks on button.
4. The system display a waiting message for customer.

1.5 Credit Card

1. The system ask for card number, card name and cvv from customer.
2. The customer enter the credit card info.
3. The system display payment for verification.
4. System send payment request to external authorization service
system.
5. System receive payment approval.
6. System records credit payment.

Post 1. Payment information is saved.


conditions: 2. Tax calculated.
3. Payment authorization approval recorded.
4. The system display the message to customer that payment is done.

Exceptions: None

Use Case No: 7

Use Case Add Menu


Name:

Actors: Manager

Description: This use case allow manager to add menu in the table.

Preconditions: 1. Manager should be registered.


2. Manager should login with specific login and password.

Normal 1. The manager enters to the add menu form by clicking the Add menu
Course: button.
2. The manger will place the new food item in menu box.
3. The manager will set the price of the food item.
4. The manager will set the availability area of food item.
5. The manager will place the picture off the food item.
6. The manager will set any deal offer for that product.
7. The manager will press the enter button to complete the information and
to store information in the data base.

Alternative 6. The other offer


Courses:
1. The manager does not allow for any deal of the product.
2. The manger adds the product with another product in a deal.

7. The reset button

1. The reset button will erase all the information of the product by the
manager.

Post 1. The system should enter the new product item in database.
conditions: 2. The manager should see all the products

Exceptions: None

Use Case No: 8

Use Case Manage menu


Name:

Actors: Manager

Description: This use case allow manager to manage the menu of his restaurant.

Preconditions: 1. The manager should be registered.


2. The manager should be entered to the system by his login and password.
3. The manager should be on the front page of the system.
Normal 1. The manager will click on the manage menu button and he/she will be
Course: directed to the manage menu form.
2. There he/she will be allow access to choose the option of update or delete
food item.
3. The manager will return back to its main page.

Alternative 2.1 Update Information


Courses:
1. The system displays the message “Select the item to update information”.
2. The manager will select the food item to update its info.
3. The manager will update the information according to his requirements.
4. The manager will enter the update button to complete the update process.
5. The system displays update message to the manger.

2.2 Delete Information

1. The system ask for item which is to be deleted.


2. The manager will select the desired product to delete its information
3. The manager will click the delete button.
4. The system will display the message “deletion completed’’.

Post 1. The system will complete the deletion or update process.


conditions:

Exceptions: None

Use Case No: 9

Use Case View customer location


Name:

Actors: Manager

Description: This use case allow manager to view the location of the customer.

Preconditions: 1. The manager should be registered.


2. The manager should be entered to the system by his login and password.
3. The customer should be registered.

Normal 1. The manager will click on the view customer info button and he/she will be
Course: directed to the customer info page.

2. A notification will be sent to the customer to access his location

3. Then he/she will be allow access to customer current location

Alternative 2.2 Customer response “yes”:


Courses:

1. The system will send a notification to customer to access his location.

2. The customer will receive the notification

3. The customer will chose the yes option to give access to the manager

3.1 Customer response “no”:


4. The system will send a notification to customer to access his location
5. The customer will receive the notification
6. The customer will chose the yes option to give access to the manager.
Post 1. The system will show the customer location.
conditions:

Exceptions: None

Use Case No: 10

Use Case Unregister Restaurant


Name:

Actors: Manager

Description: This use case allow manager to unregister the restaurant.

Preconditions: 1. The manager should be registered.

2. The manager should be entered to the system by his login and password.

Normal 1. The manager will click on the settings button and he/she will be directed
Course: to the settings page.
2. The manager will click on to the unregister button in the list of different
settings
3. The system will open a dialog box to renter your password.
4. The manager will enter the password.
5. The system will display form with a display message “are you sure to
unregister the account”.
6. The system will direct the manager to main page of the system.

Alternative 3.1 Enter your Password


Courses:
1. The manger will enter his password again
2. The manager will click on the submit button
3. The system will send his information for authorization to database to
match the record.

1. The system will authorize the manager and let it move further
2. The system deny it access and ask him to reenter his password again

a. Customer response “yes”:

1. The system will display form with a display message “are you sure to
unregister the account”.
2. The manager will click on the yes button
3. The system will display the message “account unregistered”.

a. Customer response “no”:

1. The system will display form with a display message “are you sure to
unregister the account”.
2. The manager will click on the yes button
3. The system will display the message “account unregistered”.

Post The system will perform the deletion of account action completely.
conditions:

Exceptions: None

You might also like