Test Case 3 Making discounts - Tonnius/Tiim14-50 GitHub Wiki
Test case: Making discounts
Test case ID: TC3
Related requirements:
- factor in a student discount / support discounts;
- allow head waiters to give out discounts in response to customer complaints;
Input that is used for the test to verify the functionality:
- We expect that in the database of bills there is a boolean-type value, which marks whether there has been made a discount in that order or not;
- we expect that when the user of the PO system is inserting a new order there is an option to make discount from each product by clicking on its price when the product has been added to the order or to make discount from full order;
- we expect that the system automatically calculates the discount of n % chosen by the user on PO system from each selected price and subtracts the discount from the price or calculates the discount from full sum of the order and subtracts it from the sum;
-
Open bill where the PO system user wants to make a discount from one or more product(s'/'s) price or from a full sum of the order;
-
Discount percent (we expect it to be an integer between 1-100 and that the system does not allow to use values of any other type than integer) chosen by the user of the PO system (for example: 10%, "asdf" % or '/' %);
Steps performed during the verification process:
- The user of the PO system creates a new order or continues with the left-open order;
2.1) The user of the PO system adds a product / products to the order and if there is a need to make a discount from one or more products (but not all), makes a double-click on the price of the product and opens a popup to open the percent of discount of user's choice;
2.2) When user inserts for example integer 10, system counts the discount and subtracts it from the price of the product;
2.3) When user inserts for example "asdf" or '/', the system disallows the user to insert it and ask a percent of integer-type;
-
When there is a need to make a discount from overall sum of the order, user can click a special button for that and the system calculates the overall discount and subtracts it from the sum;
-
The system marks the boolean-value true or false based on whether there has been a discount made or not and later the system shows it on the bill;
Expected results:
The discount of separate products or of overall sum is calculated and subtracted from separate orders or from overall sum. The discount percent and subtracted sum is shown on the bill.