Foundation Level study guide
State Transition Testing
State Transition Testing is a black-box technique used when a system's response to an input depends on its current state (memory or history). It utilizes states, transitions, events, and actions to model the software's behavior.
Practical example
An ATM behaves differently when you enter a PIN depending on its state. If the state is "Awaiting PIN" and you enter a correct PIN (Event), the system moves to "Authenticated" (Transition) and shows the menu (Action). Depending on the coverage goal, tests may cover valid transitions and, where relevant, invalid transitions to check how errors are handled.
Exam scenario and common trap
Question: What is the difference between an Event and an Action in a state model? The Trap: "An event is what the software does, an action is what the user does." The Correct Answer: An event triggers a transition (e.g., a user clicks 'Submit'); an action is behavior performed in response (e.g., an error message is displayed). Events can originate inside or outside the system.
Related syllabus sections cover this topic. Reference sections: 4.2.4. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.