Skip to content
QAcademy — QAcademy

CTFL syllabus v4.0 · chapter 4 · 11 questions, 11 points on the exam

CTFL chapter 4: test analysis and design, black-box, white-box and experience-based techniques

In short

Chapter 4 of the ISTQB® CTFL v4.0 syllabus is the heaviest of the certification: 11 questions out of 40, 5 of them at K3 level (apply). Those five questions ask you to derive test cases from a statement: you have to calculate, not just recognize.

It is also the chapter where practice pays off most. A technique you applied ten times by hand takes two minutes on exam day.

What the exam expects

Chapter 4 holds 11 questions out of 40, worth 11 points: 6 K2 questions (understand) and 5 K3 questions (apply). There is no K1 question. The syllabus recommends 390 minutes of training, nearly 6 h 30.

Objective Level What you are expected to do
FL-4.1.1 K2 Distinguish black-box test techniques, white-box test techniques and experience-based test techniques
FL-4.2.1 K3 Use equivalence partitioning to derive test cases
FL-4.2.2 K3 Use boundary value analysis to derive test cases
FL-4.2.3 K3 Use decision table testing to derive test cases
FL-4.2.4 K3 Use state transition testing to derive test cases
FL-4.3.1 K2 Explain statement testing
FL-4.3.2 K2 Explain branch testing
FL-4.3.3 K2 Explain the value of white-box testing
FL-4.4.1 K2 Explain error guessing
FL-4.4.2 K2 Explain exploratory testing
FL-4.4.3 K2 Explain checklist-based testing
FL-4.5.1 K2 Explain how to write user stories in collaboration with developers and business representatives
FL-4.5.2 K2 Classify the different options for writing acceptance criteria
FL-4.5.3 K3 Use acceptance test-driven development (ATDD) to derive test cases

Key notions

Three families of techniques. Black-box techniques start from the specification (requirements, user stories, use cases) without looking at the code. White-box techniques start from the internal structure of the code. Experience-based techniques rely on the knowledge of testers, developers and users.

Equivalence partitioning. Values are split into classes whose members are all treated the same way, valid or invalid. One representative per class is enough. Coverage is the number of classes exercised divided by the number of classes identified. Example: a quantity field accepts 1 to 99. Three classes (below 1, 1 to 99, above 99), so three values, for instance 0, 50 and 100.

Boundary value analysis. It applies to ordered classes (numbers, dates). With the two-value version, you test each boundary and its closest neighbor in the adjacent class: for 1 to 99, that is 0, 1, 99 and 100. With the three-value version, you add the neighbor on the other side of the boundary: 0, 1, 2, 98, 99 and 100. On the same statement, the second version gives two more values, never fewer.

Decision table. Conditions and actions are rows, rules are columns. For n Boolean conditions there are at most 2 to the power n rules before collapsing. Impossible rules are removed, and rules that give the same action whatever one condition is can be merged. Coverage is the number of columns exercised divided by the number of feasible columns.

State transition. A diagram or a state table describes states, events, guard conditions, actions and transitions. Three coverage levels: all states, all valid transitions (0-switch coverage), all transitions, including the invalid ones the state table exposes.

Statement and branch testing. Statement coverage is the number of statements executed divided by the total. Branch coverage counts the outcomes of each decision (true and false). Full branch coverage implies full statement coverage, the reverse is false: an if without else can have all its statements run by a single test, while the "false" branch was never taken.

Value of white-box testing. It evaluates the whole code, including when the specification is vague, incomplete or outdated, and it measures coverage. It does not detect what is missing from the code.

Experience-based techniques. Error guessing anticipates errors, defects and failures from experience, sometimes with a fault attack list. Exploratory testing designs and runs tests at the same time, often in time-boxed sessions with a test charter; it is useful when documentation is thin or time is short. Checklist-based testing follows a list of points built from experience and past defects, kept up to date, at a general enough level to stay usable.

User stories and acceptance criteria. A user story is described by the three Cs: Card, Conversation (the exchange between business, developers and testers), Confirmation (the acceptance criteria). A good story follows INVEST: independent, negotiable, valuable, estimable, small, testable. Criteria are written in scenario format (Given, When, Then), rule format (list or table) or another format. ATDD writes the acceptance tests before development, in a specification workshop: positive cases first, then negative cases, then non-functional requirements.

Frequent traps

  • Counting 3 values instead of 2 (or the reverse). Reread the instruction: the statement says which boundary value version applies.
  • Testing values inside the class instead of the boundary. A boundary is the first or last value of a class.
  • Forgetting the invalid classes in partitioning.
  • Mixing up all transitions and valid transitions. The first version includes the invalid cases.
  • Believing full statement coverage is enough. It leaves branches unexercised.
  • Taking exploratory testing for testing without method. It is structured by a charter and a time box.

How to revise it

Spend the biggest share of your time here. For each K3 technique, redo three complete exercises without looking at the answer, and time yourself: two minutes per question is the target. Write down the coverage formula each time. For the K2 techniques, write a one-sentence definition and a concrete example from your project.

Check your level first with the free readiness test. The certification guide places this chapter in the whole path and the exam guide recalls the format.

Frequently asked questions

What is the difference between two-value and three-value boundary value analysis?

The two-value version keeps each boundary and its neighbor in the adjacent class. The three-value version also keeps the neighbor on the other side of the boundary. The number of test values is therefore higher in the second one.

Does full branch coverage imply full statement coverage?

Yes. Every statement sits on at least one branch, so exercising all branches exercises all statements. The other way round it is not true.

Can exploratory testing be planned?

Yes. It is framed with a test charter (the objective of the session) and a fixed duration, then what was done and found is recorded. It complements scripted tests, it does not replace them.

Where do you stand?

10 original questions, about 5 minutes: your score per chapter and the gap to the pass mark. Free, no sign-up.

Practice on the real format

The CTFL Exam Pack gives you 4 full exams of 40 questions in the real exam format, with a timer, a detailed correction of every answer and a score per chapter. One-off payment, 12 months of access.

You can ask for a refund within 14 days if the pack does not suit you.

5 minutes · free · no sign-up