CPS122 Team Project

Matt Felgate, Adam Vigneaux, Bradley Boutcher, Nathan Gray 1

Iteration 2 Test Cases

add-customer: Add a customer to the list of customers

Purpose: / To add a customer to the list of customers
Prereqs: / System is turned on, store is open.
Test Data: / Name: P Sherman
Address: 42 Wallaby Way, Sydney, Australia
Phone: 978-779-6350

Steps:

  1. Clerk clicks the “Customers” tab in the GUI
  2. Clerk clicks the “Add” button
  3. Clerk enters the customer’s name, address, phone number, and other relevant information
  4. Clerk clicks the “Okay” button
  5. System assigns the customer an ID and adds customer to the database
  6. System displays customer ID
  7. The GUI returns to “Customers” tab

add-title: Add a title to the list of titles

Purpose: / To add a title to the list of titles
Prereqs: / System is turned on, store is open.
Test Data: / Name: Argo
Rent Period: 4 days
Rent Charge: $5

Steps:

  1. Manager clicks on the “Inventory” tab in the GUI
  2. Manager clicks the “Add Game” or “Add Movie” button
  3. Manager enters the name, rent period, and rent charge for the title
  4. Manager clicks the “Okay” button
  5. System adds the title to the database
  6. The GUI returns to the “Inventory” tab

add-copy: Add a copy to the list of copies

Purpose: / To add a copy to the list of copies
Prereqs: / System is turned on, store is open.
Test Data: / Number of Copies: 5
Number of Copies: -2

Steps:

  1. Manager clicks on the “Inventory” tab in the GUI
  2. Manager selects a title from the list of titles
  3. Manager clicks the “Add Copies” button
  4. Manager enters number of copies in dialog box and clicks “OK”
  5. The system adds the number of copies to the database, each with a system-assigned ID number which is shown to the manager in a dialog box.

customer-report: Print a report of all customers

Purpose: / To print a customer report of all the customers in the customer list
Prereqs: / System is turned on, store is open.
Test Data: / None

Steps:

  1. Manager clicks on the “Management” tab in the GUI
  2. Manager clicks the “All Customer Report” or “Customers with Overdue Items Report” button
  3. The appropriate report is printed to the console.

title-report: Print a report of all the titles

Purpose: / To print a report of all the titles in the title list
Prereqs: / System is turned on, store is open.
Test Data: / None

Steps:

  1. Manager clicks on the “Management” tab in the GUI
  2. Manager clicks the “Title Report” button
  3. The system prints a title report to the console