QuestionQ27

VerifiedChapter 4: Test Analysis and Design

A company wants to give every salesperson an annual bonus equal to the total of the bonuses earned on each individual sale made by that salesperson. A bonus for an individual sale may be 3%, 5%, 7%, or 10% of that sale's amount. The applicable value is determined by the customer type—classified as “Basic” or “Premium”—and the sale amount, classified into these three groups:

  • [G1]: less than 300 euros.
  • [G2]: between 300 and 2000 euros.
  • [G3]: greater than 2000 euros.

What is the minimum number of test cases required to cover the complete decision table for this scenario?

Explanation

The decision table has two possible customer-type conditions and three possible sale-amount conditions. Covering every customer-type and amount-group combination requires 2 × 3 = 6 test cases.

Community Discussion

No comments yet. Be the first to start the discussion!