Background information: We are making a website so it’s actually a little hard for us to test our website, which means we will have another way to test our website.
Test Shopping cart
Usage: Used to record the price and quantity of coffee (purchase coffee)
Pre-Condition: None
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
Test Display_order
Usage: Used to display the order information for each user
Pre-Condition: None
Action: Click the Display_order button
Post-Condition: The output of each order information should be displayed on the website.
Test Special Order (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 recording 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
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.