... | ... | @@ -206,4 +206,106 @@ clear_all: check whether can clear all the information |
|
|
|
|
|
Function(not be checked):
|
|
|
|
|
|
Display_order: The web page is able to display the order information. |
|
|
\ No newline at end of file |
|
|
Display_order: The web page is able to display the order information.
|
|
|
|
|
|
**Testing:**
|
|
|
|
|
|
Background information: We will both do a regression test and unit test.
|
|
|
|
|
|
|
|
|
Test add_order
|
|
|
|
|
|
Usage: Used to add order of coffee (purchase coffee)
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click the button of add_order
|
|
|
|
|
|
Post-Condition: The output(price and quantity of coffee) should be displayed to user and the calculation should be correct
|
|
|
|
|
|
|
|
|
Test remove_order
|
|
|
|
|
|
Usage: Used to delete order of coffee (cancel coffee)
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click the button of remove_order
|
|
|
|
|
|
Post-Condition: The output(price and quantity of coffee) should be displayed to user and the calculation should be correct
|
|
|
|
|
|
|
|
|
Test google_weather (Google_weather, recommend_item)
|
|
|
|
|
|
Usage: Use to display the recommendation of coffee based on Weather
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click and enter the homepage
|
|
|
|
|
|
Post-Condition: The output should display appropriate coffee and grab the accurate local weather to users
|
|
|
|
|
|
|
|
|
Test Cancel button
|
|
|
Usage: Used to cancel wrong order
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click the cancel button
|
|
|
|
|
|
Post-Condition: The wrong order should be canceled after clicking
|
|
|
|
|
|
|
|
|
Test get_info and send_info
|
|
|
|
|
|
Usage: Used to get and record user information
|
|
|
|
|
|
Pre-Condition: Input for name should be string, phone number should be int,order number should be int or string
|
|
|
|
|
|
Action: Click the button of getting user information and send it to database
|
|
|
|
|
|
Post-Condition: All user information typed by user will be recorded to the database
|
|
|
|
|
|
|
|
|
Test place_order button
|
|
|
|
|
|
Usage: Used to place order when user finished choosing
|
|
|
|
|
|
Pre-Condition: No
|
|
|
|
|
|
Action: Click the button of place order
|
|
|
|
|
|
Post-Condition: The website should tell user his/her order is successfully placed and return a order number to user.
|
|
|
|
|
|
|
|
|
Test add_cart
|
|
|
|
|
|
Usage: Used to calculate the final price and quantity after add all coffee
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click the button of add_cart
|
|
|
|
|
|
Post-Condition: The output(price and quantity of coffee) should be displayed to user and the calculation should be correct
|
|
|
|
|
|
|
|
|
Test remove_cart
|
|
|
|
|
|
Usage: remove what customers currently have in the shopping cart
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click the button of remove_cart
|
|
|
|
|
|
Post-Condition: The output(price and quantity of coffee) should be displayed to user and the calculation should be correct
|
|
|
|
|
|
|
|
|
Test clear_all
|
|
|
|
|
|
Usage: Used to clear all information
|
|
|
|
|
|
Pre-Condition: None
|
|
|
|
|
|
Action: Click the button of clear_all
|
|
|
|
|
|
Post-Condition: all information will be deleted(empty) |
|
|
\ No newline at end of file |