CP 4
CP 4
CP 4
4.1.1 Scenarios
Online food ordering is the process of ordering food through the restaurant's own website or
mobile app, or through a single-restaurant's website or app. A customer can choose to have the
food delivered or for pick-up. The process consists of a customer choosing the restaurant of their
choice, scanning the menu items, choosing an item, and finally choosing for pick-up or delivery
or table reservation. Payment is then administered by paying with a credit card or debit card
through the app or website or in cash at the restaurant when going to pick up. The website and
app inform the customer of the food quality, duration of food preparation, and when the food is
ready for pick-up or the amount of time it will take for delivery.
1. System ask for customer to add new deliver information (address, date and time to be
delivered) or use the existing one
2. Customers choose one of the two options and pass to the next step
1. System ask for customer to add some info about pick up person
1. System ask for customer detail information (date, time, no of users, types of services to
be provided)
2. Customer fills required info and pass to the next step
Log in to system
1, System pops up the login box. Then the following fields are available:
Email
Password
Auto-login
Forgot password? And
Log in
2. User enters Email, Password. By default, the checkbox Auto-login is checked. Auto-login
allows user to save both username and password on Project Name unless the user explicitly logs
out. User can uncheck Auto-login.
Scenario Extensions
1. The popup window says: “Wrong email.” The field Email becomes blank so that user
enters the correct email.
1. The popup window says: “Wrong password.” The field Password becomes blank so that
user enters the correct password.
1. The popup window says: “Wrong email and password. Please log in again”. The fields
Email, Password become blank so that user enters the correct login info.
Entry Condition Chief should be logged in to the system and customer should have to
make an order
Exit Condition Chief get a confirmation message and customer is notified about
his/her order status.
Quality Requirement Customer should be notified and get email within 4 seconds
Chief should get confirmation message within 2 seconds
Each object must have a unique name. A complete object name has three parts: object name, role
name, and class name. You can use any combination of the parts when you name an object.
Class diagrams are the main stages of object-oriented analysis and design. UML class diagrams
show the classes of the system, their interrelationships (including inheritance, aggregation, and
association), and the operations and attributes of the classes.