~25 min

Decision tables and state transition

Test condition combinations and state-based behavior.

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.

Decision table: discount
Condition / RuleR1R2R3
Is VIP customer?YesYesNo
Purchase > €100?YesNoYes
Discount20%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.

QuestionTap to flip

When is a decision table useful?

An account goes from 'active' to 'locked' after 3 failed attempts. Which technique models this best?

Want to save your progress?

Create a free account to save your progress, earn points and badges, and unlock the ISTQB and Automation campuses.

Create free account
Next Lesson