PREP WITH PROOF
Menu
CERTIFICATION STUDY GUIDES / PRACTICAL GUIDE

ISTQB CTFL Study Guide: Decision Tables and State Transition Testing

Study ISTQB CTFL black-box techniques with a worked decision table, a state model, and examples of how to measure test coverage.

THE QUICK ANSWER

For ISTQB CTFL, use decision tables when combinations of conditions determine outcomes. Use state transition testing when the result of an event depends on the system state or on the order of earlier events.

Write a decision table before writing test cases

A ticket site offers a discounted fare when a customer is a member and the booking is off-peak. It blocks sales when no seats remain. With seats available, other combinations receive the standard fare. Make three condition rows: seats available, member, and off-peak. Make action rows for deny sale, offer discounted fare, and offer standard fare. Write outcomes for all feasible combinations and compare them with the written rule.

When no seats remain, membership and time of day have no effect on the action. You can combine those four combinations into one rule using a don't-care marker for member and off-peak. When seats are available, keep the discounted rule and the three standard combinations in the first version of the table. It is possible to simplify some standard rules too, provided each merged rule still has a single unambiguous result.

Measure coverage against the chosen decision rules

For the table with the sold-out rule merged and the other four combinations left distinct, the denominator is five feasible rule columns. Suppose you test sold out, member and off-peak, and non-member and peak. That exercises three of the five rules, or 60 percent. The missing rules are member and peak, and non-member and off-peak. Add tests for both before reporting full coverage of that table.

Write the table revision beside the coverage number. A minimized table can have fewer columns than the original table. The percentage always refers to the rules represented in the chosen version. When a business owner cares about multiple paths inside a merged rule, keep those paths as additional examples or leave the relevant columns separate.

Model state changes for a ticket hold

After a customer selects a seat, the system creates a hold. A successful payment moves Held to Paid. A timeout moves Held to Expired. An expired hold cannot be paid. Draw the transitions as current state, event, and next state. Add the expected user-visible result, such as ticket issued after payment or payment rejected after expiry.

For an original exam-style question, suppose a suite covers Held to Paid and Held to Expired. It also includes a payment attempt after expiry and checks for rejection. What does each test demonstrate? The first two exercise the defined valid transitions. The third exercises a prohibited state-and-event combination. It matters because testing payment from Held says little about whether the same event is blocked from Expired.

Choose a technique from the requirement

Give yourself two minutes to decide which model fits a new requirement. For a rule about membership, time, and availability on a single request, sketch a decision table. For a rule that says a reservation can charge only before expiry, draw the states and events. Many systems need both models. Use the table to test the fare calculation before holding a seat, then test the hold and payment workflow with the state model.

To review, choose one missing decision rule and one missing or invalid transition. For each, write the inputs or initial state, the event, and the expected output. Compare your test list with the model afterward. If a row or transition has no matching test, you have identified a specific coverage gap to practice.

KEEP THESE THREE THINGS

Your next steps

  1. Use decision tables to find omitted combinations and clarify expected actions.
  2. Calculate decision table coverage using the feasible rules in the selected table.
  3. For state tests, record the initial state, event, resulting state, and observable behavior.

Sources & official resources

Linked resources checked on 2026-11-30. Technical behavior and provider guidance can change; check the documentation for the version you use.

About this guide and its recommendations

Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.

Suggest a correction →