~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.

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?

¿Quieres guardar tu progreso?

Crea una cuenta gratis para guardar tu avance, ganar puntos e insignias y desbloquear los campus de ISTQB y Automatización.

Crear cuenta gratis
Siguiente Lección
Decision tables and state transition | PlayQAcademy