The starting price for a car is the base-price minus the discount, where the base-price is the basic price for the car and the discount is the discount from the starting price granted by the dealer. An additional luxury-price for a luxury model shall be added. An additional extra-price shall be added for extra equipment items ordered. If three or more extra equipment items are ordered, there is a discount of 10% on these items only. If 5 or more equipment items are ordered, the discount applied is 15%. The discount that is granted by the dealer applies only to the base-price. The discount on the extra equipment items applies only to the extra-price. The discounts cannot be added.
For the Requirement above, that specifies how to calculate the price of a new car,
(a) Identify all the Equivalence Partitions, and based on the identified Equivalence Partitions, design and list all the Test Cases needed to test the requirement. For each partition identified, ensure that 100% Equivalence Partitioning Coverage is achieved.
(b) Identify all the Boundary Values, and based on the identified Boundary Values, design and list all the Test Cases needed to test the requirement. Ensure that 100% Boundary Value Analysis Coverage is achieved.
Use the following template to document each individual test case:
• Test Identifier - Unique number to identify test.
• Test Objective - Objective of test.
• Test Input(s) - Input values to drive the test.
• Expected Output(s) - Expected Output(s) to be generated if the test is a success.