Decision tables
When behavior depends on combinations of conditions, a decision table organizes them so no case is forgotten. Each column is a combination of conditions with its resulting action.
| Condition / Rule | R1 | R2 | R3 |
|---|---|---|---|
| Is VIP customer? | Yes | Yes | No |
| Purchase > €100? | Yes | No | Yes |
| Discount | 20% | 10% | 5% |
State transition
Some systems behave according to their current state and the event received (for example an account: active, locked, closed). The state transition technique tests valid and invalid state changes.
QuestionToca para voltear
When is a decision table useful?
An account goes from 'active' to 'locked' after 3 failed attempts. Which technique models this best?