Question: Generate test cases for the following use case ( from Software Requirements, Second Edition by Karl E . Wiegers, Microsoft Press 2 0 0 3
Generate test cases for the following use case from Software Requirements, Second Edition by Karl E Wiegers, Microsoft Press :
Use case name: Order Meal ID: Primary actor: Patron
Description:
A Patron accesses the Cafeteria Ordering System COS from the corporate intranet or home, optionally views the menu for a specific date, selects food items, and places an order for a meal to be delivered to a specified location within a specified minute time window.
Preconditions: Patron is logged into COS.
Postconditions:
Meal order is stored in COS with a status of "Accepted".
The inventory of available food items is updated to reflect items in this order.
Normal Course:
Order a Single Meal
The patron asks to view the menu for a specified date.
The system displays the menu of available food items and the daily special.
Patron selects one or more food items from the menu.
The patron indicates that the meal order is complete.
The system displays ordered menu items, individual prices, and total prices, including any taxes and delivery charges.
Patron confirms meal order or requests to modify meal order back to step
The system displays available delivery times for the delivery date.
Patron selects a delivery time and specifies the delivery location.
Patron specifies payment method.
The system confirms acceptance of the order.
The system sends Patron an email confirming order details, price, and delivery instructions.
The system stores orders in the database, sends emails to notify Cafeteria Staff, sends food item information to the Cafeteria Inventory System, and updates available delivery times.
Alternative Courses:
Order multiple meals branch after step
The patron asks to order another meal.
Return to step
Order multiple identical meals after step
Patron requests a specified number of identical meals.
Return to step
Order the daily special after step
Patron orders the daily special from the menu.
Return to step
Exceptions:
E Current time is after order cutoff time at step
The system informs Patron that it's too late to place an order for today.
Patron cancels the meal order.
System terminates use case.
Patron requests to select another date.
System restarts use case.
E No delivery times left at step
The system informs the Patron that no delivery times are available for the meal date.
Patron cancels the meal order.
The system terminates the use case.
Patron requests to pick the order up at the cafeteria skip steps
E Can't fulfill the specified number of identical meals at step
The system informs the Patron of the maximum number of identical meals it can supply.
Patron changes the number of identical meals ordered or cancels meal orders.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
