Update MileStone 6: Detailed Design authored by Zhengwei Zhong (zhz361)'s avatar Zhengwei Zhong (zhz361)
...@@ -11,36 +11,53 @@ Background information: We are making a website so it’s actually a little hard ...@@ -11,36 +11,53 @@ Background information: We are making a website so it’s actually a little hard
Test Shopping cart Test Shopping cart
Usage: Used to record the price and quantity of coffee (purchase coffee) Usage: Used to record the price and quantity of coffee (purchase coffee)
Pre-Condition: None Pre-Condition: None
Action: Click the button of shopping cart Action: Click the button of shopping cart
Post-Condition: The output(price and quantity of coffee) should be displayed to user and the calculation should be correct Post-Condition: The output(price and quantity of coffee) should be displayed to user and the calculation should be correct
Test Display_order Test Display_order
Usage: Used to display the order information for each user Usage: Used to display the order information for each user
Pre-Condition: None Pre-Condition: None
Action: Click the Display_order button Action: Click the Display_order button
Post-Condition: The output of each order information should be displayed on the website. Post-Condition: The output of each order information should be displayed on the website.
Test Special Order (Google_weather, recommend_item) Test Special Order (Google_weather, recommend_item)
Usage: Use to display the recommendation of coffee based on Weather Usage: Use to display the recommendation of coffee based on Weather
Pre-Condition: None Pre-Condition: None
Action: Click and enter the homepage Action: Click and enter the homepage
Post-Condition: The output should display appropriate coffee and grab the accurate local weather to users Post-Condition: The output should display appropriate coffee and grab the accurate local weather to users
Test Cancel button Test Cancel button
Usage: Used to cancel wrong order Usage: Used to cancel wrong order
Pre-Condition: None Pre-Condition: None
Action: Click the cancel button Action: Click the cancel button
Post-Condition: The wrong order should be canceled after clicking Post-Condition: The wrong order should be canceled after clicking
Test recording user information Test recording user information
Usage: Used to record user information Usage: Used to record user information
Pre-Condition: Input for name should be string, phone number should be int,order number should be int or string 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 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 Post-Condition: All user information typed by user will be recorded to the database
Test place_order button Test place_order button
Usage: Used to place order when user finished choosing Usage: Used to place order when user finished choosing
Pre-Condition: No Pre-Condition: No
Action: Click the button of place order 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. Post-Condition: The website should tell user his/her order is successfully placed and return a order number to user.
\ No newline at end of file