Skip to content

Latest commit

 

History

History
1502 lines (1498 loc) · 41.7 KB

TESTING.md

File metadata and controls

1502 lines (1498 loc) · 41.7 KB

<< Back to main ReadMe

Manual Application Testing

Below is reasonable test I could imagine to check every validation and all results came back as expected.

BUN
What is being tested How Expected Response Actual Response Outcome
Run program n/a Loads main menu Program runs and loads main menu PASS
Main Menu Input "sda" Error message and loops back. As expected. PASS
Main Menu Input "67.9" Error message and loops back. As expected. PASS
Main Menu Input "-6" Error message and loops back. As expected. PASS
Main Menu Input "1 2" Error message and loops back. As expected. PASS
Main Menu Input "0" Error message and loops back. No error message but loops back. Fixed: [3f65dcf]
Main Menu Input "1" Takes you to new game As expected. PASS
Main Menu Input "2" Takes you to retrieve game As expected. PASS
Main Menu Input "3" Takes you to leaderboard As expected. PASS
Main Menu Input "4" Takes you to credits As expected. PASS
Credits Hit enter when prompted Takes you back to main menu. As expected. PASS
Leaderboard Hit enter when prompted Takes you back to main menu. As expected. PASS
New Game Input : "Bobs" Error message and then loop back As expected. PASS
New Game Input : "String over 20 characters" Error message and then loop back As expected. PASS
New Game - Name Input : "Bobs Dogs" Asks if you are happy with this name As expected. PASS
New Game - Confirm Name Input "sda" Error message and loops back. Looped back to input company name and not to confirmation. Fixed: [27a3c44]
New Game - Confirm Name Input "67.9" Error message and loops back. As expected. PASS
New Game - Confirm Name Input "-6" Error message and loops back. As expected. PASS
New Game - Confirm Name Input "1 2" Error message and loops back. As expected. PASS
New Game - Confirm Name Input "0" Error message and loops back. As expected. PASS
New Game - Confirm Name Input "N" Loops back to input new name. As expected. PASS
New Game - Confirm Name Input "No" Loops back to input new name. As expected. PASS
New Game - Confirm Name Input "Y" Takes you to Game ID. As expected. PASS
New Game - Confirm Name Input "yE" Takes you to Game ID. As expected. PASS
New Game - Confirm Name Input "YeS" Takes you to Game ID. As expected. PASS
Game ID A random 6 letter combination should be shown Ask user to hit enter. As expected. PASS
Game ID Hit enter when prompted. Takes you to backstory. As expected. PASS
Backstory Hit enter when prompted Takes you to game menu. As expected. PASS
Game Menu - Stats Cash should be 500 As described. As expected. PASS
Game Menu - Stats Day should be 1 out of 10 As described. As expected. PASS
Game Menu - Stats Time of day should be 'Morning' As described. As expected. PASS
Game Menu - Stats Reputation should be 0.0 / 5 As described. As expected. PASS
Game Menu - Stats Stock should be 0 As described. As expected. PASS
Game Menu - Stats Selling price should be 2.50 As described. As expected. PASS
Game Menu Input "sda" Error message and loops back. As expected. PASS
Game Menu Input "67.9" Error message and loops back. As expected. PASS
Game Menu Input "-6" Error message and loops back. As expected. PASS
Game Menu Input "1 2" Error message and loops back. As expected. PASS
Game Menu Input "1" Takes you to location purchase As expected. PASS
Game Menu Input "2" Takes you to cart purchase As expected. PASS
Game Menu Input "3" Takes you hire staff As expected. PASS
Game Menu Input "4" Takes you stock purchase As expected. PASS
Game Menu Input "5" Takes you stock change recipe As expected. PASS
Game Menu Input "6" Takes you to set selling price As expected. PASS
Game Menu Do not purchase any location, any cart, hire any staff, or purchase any stock then input 7. Error message saying no location purchased As expected. PASS
Game Menu Purchase location but do not purchase cart or hire staff member or purchase any stock then input 7. Error message saying no cart purchased As expected. PASS
Game Menu Purchase location, cart, but do not hire staff member and do not buy any stock then input 7. Error message saying no staff member hired As expected. PASS
Game Menu Purchase location, cart, hire staff member and do not buy any stock then input 7. Error message saying no stock to sell As expected. PASS
Game Menu Purchase location, cart, hire staff member and buy any stock then input 7. Moves on to sales report As expected. PASS
Game Menu Input "8" Take you to Help Screen As expected. PASS
Game Menu Input "0" Saves, and takes you to main menu As expected. PASS
Purchase location On first time visit. Location 1 should show available to be purchased, other 4 should be unavailable. As expected. PASS
Purchase location Input "sda" Error message and loops back. As expected. PASS
Purchase location Input "67.9" Error message and loops back. As expected. PASS
Purchase location Input "-6" Error message and loops back. As expected. PASS
Purchase location Input "1 2" Error message and loops back. As expected. PASS
Purchase location Before purchase location 1. Input '2' Error message. No money changes. Cart and staff for location do not become available. As expected. PASS
Purchase location Before purchase location 1. Input '3' Error message. No money changes. Cart and staff for location do not become available. As expected. PASS
Purchase location Before purchase location 1. Input '4' Error message. No money changes. Cart and staff for location do not become available. As expected. PASS
Purchase location Before purchase location 1. Input '5' Error message. No money changes. Cart and staff for location do not become available. As expected. PASS
Purchase location Purchase location 1 Success message. Next location becomes available. Money changes correctly. Cart and staff for location available. As expected. PASS
Purchase location Purchase location 2 Success message. Next location becomes available. Money changes correctly. Cart and staff for location available. As expected. PASS
Purchase location Purchase location 3 Success message. Next location becomes available. Money changes correctly. Cart and staff for location available. As expected. PASS
Purchase location Purchase location 4 Success message. Next location becomes available. Money changes correctly. Cart and staff for location available. As expected. PASS
Purchase location Purchase location 5 Success message. Next location becomes available. Money changes correctly. Cart and staff for location available. As expected. PASS
Purchase location Try purchase a location when money is below required amount Error message. Location not purchase. Money not changed. As expected. PASS
Purchase location Try to purchase a location already purchased Error message. Money does not change. As expected. PASS
Purchase location Input 0 Takes you back to game As expected. PASS
Purchase Cart Prior to any location purchase, check. All carts should be unavailable As expected. PASS
Purchase Cart Prior to any location purchase, check. Input '1'. Error message. No money changes. Cart stays unavailable. As expected. PASS
Purchase Cart Prior to any location purchase, check. Input '2'. Error message. No money changes. Cart stays unavailable. As expected. PASS
Purchase Cart Prior to any location purchase, check. Input '3'. Error message. No money changes. Cart stays unavailable. As expected. PASS
Purchase Cart Prior to any location purchase, check. Input '4'. Error message. No money changes. Cart stays unavailable. As expected. PASS
Purchase Cart Prior to any location purchase, check. Input '5'. Error message. No money changes. Cart stays unavailable. As expected. PASS
Purchase Cart After location 1 purchased. Input '1'. Purchase success. Money deducted as shown. Cart shows as level 1. As expected. PASS
Purchase Cart Upgrade cart 1 to level 5. Purchase success each time. Money deducted as shown each time. Cart shows as level 5. As expected. PASS
Purchase Cart Try to upgrade cart 1 pass level 5. Error message. No money changes. Cart stays at level 5. As expected. PASS
Purchase Cart After location 2 purchased. Input '1'. Purchase success. Money deducted as shown. Cart shows as level 1. As expected. PASS
Purchase Cart Upgrade cart 2 to level 5. Purchase success each time. Money deducted as shown each time. Cart shows as level 5. As expected. PASS
Purchase Cart Try to upgrade cart 2 pass level 5. Error message. No money changes. Cart stays at level 5. As expected. PASS
Purchase Cart After location 3 purchased. Input '1'. Purchase success. Money deducted as shown. Cart shows as level 1. As expected. PASS
Purchase Cart Upgrade cart 3 to level 5. Purchase success each time. Money deducted as shown each time. Cart shows as level 5. As expected. PASS
Purchase Cart Try to upgrade cart 3 pass level 5. Error message. No money changes. Cart stays at level 5. As expected. PASS
Purchase Cart After location 3 purchased. Input '1'. Purchase success. Money deducted as shown. Cart shows as level 1. As expected. PASS
Purchase Cart Upgrade cart 3 to level 5. Purchase success each time. Money deducted as shown each time. Cart shows as level 5. As expected. PASS
Purchase Cart Try to upgrade cart 3 pass level 5. Error message. No money changes. Cart stays at level 5. As expected. PASS
Purchase Cart After location 4 purchased. Input '1'. Purchase success. Money deducted as shown. Cart shows as level 1. As expected. PASS
Purchase Cart Upgrade cart 4 to level 5. Purchase success each time. Money deducted as shown each time. Cart shows as level 5. As expected. PASS
Purchase Cart Try to upgrade cart 4 pass level 5. Error message. No money changes. Cart stays at level 5. As expected. PASS
Purchase Cart After location 5 purchased. Input '1'. Purchase success. Money deducted as shown. Cart shows as level 1. As expected. PASS
Purchase Cart Upgrade cart 5 to level 5. Purchase success each time. Money deducted as shown each time. Cart shows as level 5. As expected. PASS
Purchase Cart Try to upgrade cart 5 pass level 5. Error message. No money changes. Cart stays at level 5. As expected. PASS
Purchase Cart Try to purchase a cart or upgrade when do not have enough cash to cover the cost. Error message, no cash change, cart is not purchased / upgraded. As expected. PASS
Purchase Cart Input "sda" Error message and loops back. As expected. PASS
Purchase Cart Input "67.9" Error message and loops back. As expected. PASS
Purchase Cart Input "-6" Error message and loops back. As expected. PASS
Purchase Cart Input "1 2" Error message and loops back. As expected. PASS
Purchase Cart Input "0" Takes user back to game menu. As expected. PASS
Hire Staff Prior to any location purchase, check. All staff should be unavailable As expected. PASS
Hire Staff Prior to any location purchase, check. Input '1'. Error message. No money changes. staff stays unavailable. As expected. PASS
Hire Staff Prior to any location purchase, check. Input '2'. Error message. No money changes. staff stays unavailable. As expected. PASS
Hire Staff Prior to any location purchase, check. Input '3'. Error message. No money changes. staff stays unavailable. As expected. PASS
Hire Staff Prior to any location purchase, check. Input '4'. Error message. No money changes. staff stays unavailable. As expected. PASS
Hire Staff Prior to any location purchase, check. Input '5'. Error message. No money changes. staff stays unavailable. As expected. PASS
Hire Staff After location 1 purchased. Input '1'. Purchase success. Money deducted as shown. staff shows as level 1. As expected. PASS
Hire Staff Upgrade staff 1 to level 5. Purchase success each time. Money deducted as shown each time. staff shows as level 5. As expected. PASS
Hire Staff Try to upgrade staff 1 pass level 5. Error message. No money changes. staff stays at level 5. As expected. PASS
Hire Staff After location 2 purchased. Input '1'. Purchase success. Money deducted as shown. staff shows as level 1. As expected. PASS
Hire Staff Upgrade staff 2 to level 5. Purchase success each time. Money deducted as shown each time. staff shows as level 5. As expected. PASS
Hire Staff Try to upgrade staff 2 pass level 5. Error message. No money changes. staff stays at level 5. As expected. PASS
Hire Staff After location 3 purchased. Input '1'. Purchase success. Money deducted as shown. staff shows as level 1. As expected. PASS
Hire Staff Upgrade staff 3 to level 5. Purchase success each time. Money deducted as shown each time. staff shows as level 5. As expected. PASS
Hire Staff Try to upgrade staff 3 pass level 5. Error message. No money changes. staff stays at level 5. As expected. PASS
Hire Staff After location 3 purchased. Input '1'. Purchase success. Money deducted as shown. staff shows as level 1. As expected. PASS
Hire Staff Upgrade staff 3 to level 5. Purchase success each time. Money deducted as shown each time. staff shows as level 5. As expected. PASS
Hire Staff Try to upgrade staff 3 pass level 5. Error message. No money changes. staff stays at level 5. As expected. PASS
Hire Staff After location 4 purchased. Input '1'. Purchase success. Money deducted as shown. staff shows as level 1. As expected. PASS
Hire Staff Upgrade staff 4 to level 5. Purchase success each time. Money deducted as shown each time. staff shows as level 5. As expected. PASS
Hire Staff Try to upgrade staff 4 pass level 5. Error message. No money changes. staff stays at level 5. As expected. PASS
Hire Staff After location 5 purchased. Input '1'. Purchase success. Money deducted as shown. staff shows as level 1. As expected. PASS
Hire Staff Upgrade staff 5 to level 5. Purchase success each time. Money deducted as shown each time. staff shows as level 5. As expected. PASS
Hire Staff Try to upgrade staff 5 pass level 5. Error message. No money changes. staff stays at level 5. As expected. PASS
Hire Staff Try to purchase a staff or upgrade when do not have enough cash to cover the cost. Error message, no cash change, staff is not purchased / upgraded. As expected. PASS
Hire Staff Input "sda" Error message and loops back. As expected. PASS
Hire Staff Input "67.9" Error message and loops back. As expected. PASS
Hire Staff Input "-6" Error message and loops back. As expected. PASS
Hire Staff Input "1 2" Error message and loops back. As expected. PASS
Hire Staff Input "0" Takes user back to game menu. As expected. PASS
Stock Purchase On first visit All stock levels should show as 0 As expected. PASS
Stock Purchase Input "sda" Error message and loops back. As expected. PASS
Stock Purchase Input "67.9" Error message and loops back. As expected. PASS
Stock Purchase Input "-6" Error message and loops back. As expected. PASS
Stock Purchase Input "2 4" Error message and loops back. As expected. PASS
Stock Purchase Input "0" Takes user back to game menu. As expected. PASS
Stock Purchase With 0 stock, input "50" Move to check out. As expected. PASS
Stock Purchase - Checkout With 0 stock currently, recipe as 1 bun, 1 sausage, 2 onion, 1 sauce, and '50' input on purchase stock. Checkout should show. Checkout basket should be: 9 packs of buns, 7 packs of sausages, 10 onions, 3 jars of sauce. Sub totals of: £9, £14, £10, £15. Grand total of £48 As expected. PASS
Stock Purchase - Checkout Input "sda" Error message and loops back for input. As expected. PASS
Stock Purchase - Checkout Input "67.9" Error message and loops back for input. As expected. PASS
Stock Purchase - Checkout Input "-6" Error message and loops back for input. As expected. PASS
Stock Purchase - Checkout Input "2 4" Error message and loops back for input. As expected. PASS
Stock Purchase - Checkout Input "0" Error message and loops back for input. As expected. PASS
Stock Purchase - Checkout Purchase basket from previous test Purchase success, and stock on purchase screen should update based on checkout quantities. Money should lower based on grand total. As expected. PASS
Stock Purchase With 50 stock, input "40". Error message. Loop back for input. As expected. PASS
Stock Purchase With 50 stock, input "60". Moves to checkout. As expected. PASS
Stock Purchase - Checkout With 50 stock currently, recipe as 1 bun, 1 sausage, 2 onion, 1 sauce, and '60' input on purchase stock. Checkout should show. Checkout basket should be: 1 packs of buns, 1 packs of sausages, 2 onions, 0 jars of sauce. Sub totals of: £1, £1, £2, £0. Grand total of £5 As expected. PASS
Stock Purchase - Checkout Purchase basket from previous test Purchase success, and stock on purchase screen should update based on checkout quantities. Money should lower based on grand total. As expected. PASS
Stock Purchase With 60 stock, input "2000". With not enough cash to cover the cost. Moves to checkout. As expected. PASS
Stock Purchase - Checkout With 60 stock, and 2000 input prior. And with not enough cash to cover the cost. Try ti purchase. Error message and loop back to stock purchase. As expected. PASS
Stock Purchase - Checkout Input "N" Aborts purchase and takes you back to stock purchase As expected. PASS
Stock Purchase - Checkout Input "No" Aborts purchase and takes you back to stock purchase As expected. PASS
Stock Purchase - Checkout Input "Y" Commits purchase and takes you back to stock purchase. As expected. PASS
Stock Purchase - Checkout Input "yE" Commits purchase and takes you back to stock purchase. Purchase was aborted. Fixed: [ff3baa0]
Stock Purchase - Checkout Input "YeS" Commits purchase and takes you back to stock purchase. As expected. PASS
Change Recipe On first visit Default values should be: 1 Bun, 1 Sausage, 2 Onion, 1 Sauce. Cost to make £0.87. Recommend retail price £3.10 As expected. PASS
Change Recipe Input "sda" Error message and loops back for input. As expected. PASS
Change Recipe Input "67.9" Error message and loops back for input. As expected. PASS
Change Recipe Input "-6" Error message and loops back for input. As expected. PASS
Change Recipe Input "3" Error message and loops back for input. As expected. PASS
Change Recipe Input "0" Take you back to game menu. As expected. PASS
Change Recipe Input "1 1" Success message, but recipe does not change as buns already on 1. No change to cost to make, and recommended retail cost. As expected. PASS
Change Recipe Input "1 2" Error Message as over max for buns As expected. PASS
Change Recipe Input "1 0" Error Message as under min for buns As expected. PASS
Change Recipe Input "2 2" Success message, recipe changes sausages to 2. Cost to make and recommended retail cost also changes. As expected. PASS
Change Recipe Input "2 3" Error Message as over max for sausages As expected. PASS
Change Recipe Input "2 0" Error Message as under min for sausages As expected. PASS
Change Recipe Input "3 1" Success message, recipe changes onions to 1. Cost to make and recommended retail cost also changes. As expected. PASS
Change Recipe Input "3 6" Error Message as over max for onions As expected. PASS
Change Recipe Input "3 -1" Error Message as under min for onions Error message is actually for negative value. This is an acceptable response. PASS
Change Recipe Input "4 2" Success message, recipe changes sauce to 2. Cost to make and recommended retail cost also changes. As expected. PASS
Change Recipe Input "4 6" Error Message as over max for sauce As expected. PASS
Change Recipe Input "4 -1" Error message is actually for negative value. This is an acceptable response. As expected. PASS
Set Selling Price On first visit Cost to make should match Change recipe. Set Selling price should be £2.50. Profit per serving should be Selling price minus cost to make. As expected. PASS
Set Selling Price Input "sda" Error message and loops back for input. As expected. PASS
Set Selling Price Input "67.9" Selling price should update to 67.90. As expected. PASS
Set Selling Price Input "-6" Error message and loops back for input. As expected. PASS
Set Selling Price Input "3" Selling price should update to 3.00. As expected. PASS
Set Selling Price Input "0" Take you back to game menu. As expected. PASS
Help Screen User visits from game menu Displays help messages. As expected. PASS
Help Screen User press enter when prompted on help screen. After showing all messages, user is taken back to game menu As expected. PASS
Save and Quit On entry Game will save and show user game ID then prompt to hit enter. As expected. PASS
Save and Quit User hits enter when prompted User is taken back to main menu. As expected. PASS
Retrieve a Save Game Input "sda" Error message loops back to input As expected. PASS
Retrieve a Save Game Input "67.943" Error message loops back to input As expected. PASS
Retrieve a Save Game Input "djtufed" Error message loops back to input. As expected. PASS
Retrieve a Save Game Input "fkfk34" (Make sure not a game ID that already exists, otherwise try something else) Search but Error as no game found As expected. PASS
Retrieve a Save Game Input "ZZZZZZ" (Make sure not a game ID that already exists, otherwise try something else) Search but Error as no game found As expected. PASS
Retrieve a Save Game Input known game ID of uncompleted game Loads game and takes user to game menu As expected. PASS
Retrieve a Save Game Reload browser and Input same game ID of same game Loads same game and takes user to game menu As expected. PASS
Retrieve a Save Game Input "0" Take you back to main menu. As expected. PASS
Trading Purchase all 5 location, purchase level 1 cart and staff for all 5, have 500 hotdogs in stock to sell. Set selling price to 2.50. Leave Recipe as buns 1, sausages 1, onions 2, sauce 1. Profit per sale should be £1.63. Make sure reputation is 0. User is taken to Sales Report As expected. PASS
Sales report Set up as above. Units sold at each location should match total quantity sold As expected. PASS
Sales report Set up as above. Cash value sold at each location should match total cash sold Total shown is £414.96, subtotals actually add up to £414.94. This is because of the the sales value is taking into account how much it makes to cost each hotdog. Which are likely to be more then 2 decimal place. FIXED: Re did the sales report format to be more clear and to round numbers to provide a more accurate report. [4f99547]
Sales report User prompted to hit enter to continue. Feedback section is shown. As expected. PASS
Feedback Set up as above Due to low cost there should be no negative feedback. As expected. PASS
Feedback User prompted to hit enter to continue. Reputation section is shown. As expected. PASS
Reputation Set up as above. As no negative feedback and product sold at low price, reputation should go up by 0.5. As expected. PASS
Reputation Get reputation to 5 and try to increase to 5.5. Message to say reputation already at max, so no change. No actual change to reputation. As expected. PASS
Trading Purchase all 5 location, purchase level 1 cart and staff for all 5, have 500 hotdogs in stock to sell. Set selling price to 50.00. Leave Recipe as buns 1, sausages 1, onions 2, sauce 1. Make sure reputation is 1. User is taken to Sales Report As expected. PASS
Sales report Set up as above. Due to high price, 0 units should be sold. As expected. PASS
Feedback Set up as above Due to extremely high cost there should be a lot of negative feedback. As expected. PASS
Reputation Set up as above. As a lot of negative feedback, reputation should go decrease by 0.5. As expected. PASS
Reputation Get reputation to 0 and try to decrease to -0.5. Message to say reputation already at min, so no change. No actual change to reputation. As expected. PASS
Reputation User prompted to hit enter. Make sure Morning trade. User should be taken to game menu, should be same day but Afternoon. Cash, stock, reputation should have changed as advised in the sales and reputation report. As expected. PASS
Reputation User prompted to hit enter. Make sure Afternoon trade. And not last day. User should be taken to game menu, should be next day and Morning. Cash, stock, reputation should have changed as advised in the sales and reputation report. As expected. PASS
Reputation User prompted to hit enter. Make sure Afternoon trade. And last day. User should be taken to end game screen. As expected. PASS
End Game Make sure have less cash then 10th place on leaderboard User will be shown end game summary and informed did not make leaderboard. As expected. PASS
End Game When prompted to type 'end', press enter. User prompted to type 'end'. As expected. PASS
End Game When prompted to type 'end', input 'test'. User prompted to type 'end'. As expected. PASS
End Game When prompted to type 'end', input 'end'. USer is taken back to main menu. As expected. PASS
End Game Make sure have more cash then at least 10th place on leaderboard. User will be shown end game summary and informed placed X on leaderboard. As expected. PASS
Leaderboard After End Game summary and making leaderboard, check leaderboard. Should see self on leaderboard at placed informed at end game summary. Leaderboard actually only showed top 10. FIXED: [0ed7ae0]
Retrieve a save Try to load a save that has reached end game. Error message. Game does not load. As expected. PASS

<< Back to ReadMe