Behavior-Based Test Techniques
CRUD testing, state transition testing with N-switch and round-trip coverage, and scenario-based testing with use cases and activity diagrams.
In the ISTQB Advanced Level Test Analyst syllabus (v4.0), behavior-based test techniques are black-box techniques that derive test cases from how the test object behaves over time or in response to events, rather than from input data partitions or business rules alone. They model sequences, states,…
CTAL-TA - Behavior-Based Test Techniques Example Questions
Test your knowledge of Behavior-Based Test Techniques
Question 1
A tester measures the coverage of an executed suite for an oven controller. The model has the initial state Idle and these transitions: Idle --start [door closed] / heater on--> Heating; Heating --target reached / beep--> Holding; Holding --cancel / heater off--> Idle; Heating --cancel / heater off--> Idle; Heating --sensor error / alarm--> Fault; Fault --reset--> Idle. T1 is start (door closed), cancel, start (door closed), target reached, cancel. T2 is start (door open), start (door closed), sensor error, reset. No transition is defined for start with the door open, so the oven stays in Idle and that event triggers no transition. Which statement describes the coverage the two tests achieve together?
Question 2
A tester measures 1-switch coverage for the state model of a ride-booking session: Idle --start--> Active; Active --pause--> Paused; Paused --resume--> Active; Active --stop--> Closed; Paused --stop--> Closed; Closed --reset--> Idle. Each test case begins in Idle. Two test cases have been executed. TC1 uses the event sequence start, pause, resume, stop. TC2 uses the event sequence start, stop, reset, start. Which result correctly states the 1-switch coverage achieved by these two test cases?
Question 3
A tester updates the test cases for the use case Pay parking fee after a revision. The goal is that the driver pays and receives a receipt. The main scenario is: 1. Driver enters the plate number; 2. System shows the fee; 3. Driver selects a card; 4. System charges the card; 5. System issues a receipt. The original alternatives were: 2a plate has a prepaid pass, so the system shows a zero fee and continues at step 5; 4a card is declined, so the system shows an error and ends the session; 5a email service is down, so the system shows the receipt on screen. In the revision, 4a now reads: card is declined, the system offers wallet payment, the driver pays by wallet and the flow continues at step 5. Which statement correctly describes the revised scenario test set?