After selecting an item, as a customer I want to add a specific quantity of that item to my virtual basket for purchase.
Priority: 1
Acceptance Criteria
On the item description page, a Customer is able to see the item description/details and an entry box for the quantity of this item to add to cart. The default quantity is 1.
If the item quantity is 0, the interface will show "Out of Stock" and not allow the Customer to add the item to their virtual basket.
If the item quantity is >0, the interface will allow a Customer to enter in their desired quantity by typing into the entry box and confirming the quantity by selecting "Add Item to Virtual Basket"
If the Customer enters a number greater than the quantity displayed, the system will display a prompt stating "We only have _ in stock. Would you like to accept this quantity?". The Customer can then choose to accept the maximum quantity or return to the item description page.
If the Customer enters a number less than or equal to the quantity in stock, a pop-up window will appear confirming that the Customer has added x number of this item to their virtual shopping basket.
If the Customer selects "Add Item to Virtual Basket" with a quantity of zero or an invalid number, the system will display a pop-up window stating "Please specify the number of items you would like to purchase".
Added Item information will have to be inputed and updated into the Virtual Basket. Item information includes UPC and Quantity of the Item.
Testing Plan
Verify that the GUI is displayed
Verify that Customers can type in the quantity box
Verify that the default value of the quantity box is 1
Verify that the error message pops up if select quantity < 0 or quantity > in-stock
Verify Item information matches that in the database
Verify Item info is correctly passed off to the Virtual Basket table.
Description
After selecting an item, as a customer I want to add a specific quantity of that item to my virtual basket for purchase.
Priority: 1
Acceptance Criteria
On the item description page, a Customer is able to see the item description/details and an entry box for the quantity of this item to add to cart. The default quantity is 1.
If the item quantity is 0, the interface will show "Out of Stock" and not allow the Customer to add the item to their virtual basket.
If the item quantity is >0, the interface will allow a Customer to enter in their desired quantity by typing into the entry box and confirming the quantity by selecting "Add Item to Virtual Basket"
If the Customer enters a number greater than the quantity displayed, the system will display a prompt stating "We only have _ in stock. Would you like to accept this quantity?". The Customer can then choose to accept the maximum quantity or return to the item description page.
If the Customer enters a number less than or equal to the quantity in stock, a pop-up window will appear confirming that the Customer has added x number of this item to their virtual shopping basket.
If the Customer selects "Add Item to Virtual Basket" with a quantity of zero or an invalid number, the system will display a pop-up window stating "Please specify the number of items you would like to purchase".
Added Item information will have to be inputed and updated into the Virtual Basket. Item information includes UPC and Quantity of the Item.
Testing Plan
Verify that the GUI is displayed
Verify that Customers can type in the quantity box
Verify that the default value of the quantity box is 1
Verify that the error message pops up if select quantity < 0 or quantity > in-stock
Verify Item information matches that in the database
Verify Item info is correctly passed off to the Virtual Basket table.
Story Points
Tasks