You are on page 1of 4

Decision table testing

A supermarket has a loyalty scheme that is offered to all


customers. Loyalty card holders enjoy the benefits of either
additional discounts on all purchases or the acquisition of
loyalty points, which can be converted into vouchers for the
supermarket or to equivalent points in schemes run by
partners. Customer without a loyalty card receive an
additional discount only if they spend more than $100 on any
one visit to the store, otherwise only the special offers
offered to all customers apply
Decision table testing
Rule 1 Rule 2 Rule 3 Rule 4

Conditions
Customer without loyalty card T T F F
Customer with loyalty card F F T T
Extra discount selected - - T F
Spend > $100 F T - -
Actions

No discount T F F F
Extra discount F T T F
Loyalty points F F F T
Decision table testing
2nd Example

Rule 1 Rule 2 Rule 3 Rule 4

Conditions
Valid User Name F T T T
Valid Password - F T T
Adequate balance in the account - - F T
Actions

Login accepted F F T T
Amount transferred - - F T
Decision table testing
3rd Example (ATM Decision table
Rule 1 Rule 2 Rule 3 Rule 4 Rule 5

Conditions
User Inserts Valid Card F T T T T
User Enters Valid PIN - F F T T
Three Invalid PINs attempted - F T F F
Sufficient balance for the request - - - F T
Actions
Reject Card T F F F F
Prompt to Reenter PIN F T F F F
Eat the Card F F T F F
Dispense Requested Cash F F F F T

You might also like