Test design techniques

Equivalence partitioning, boundary value analysis, decision tables, state transitions, pairwise. How you find the 12 cases that matter out of 4,000 combinations.

About 25 min read3-question knowledge check

The mental model

Test design techniques are compression algorithms for an infinite input space. Any non-trivial feature accepts more input combinations than you could execute in the lifetime of the product — a form with 5 fields of 10 meaningful values each is 100,000 combinations before you consider order and state. Techniques like equivalence partitioning and boundary value analysis are the mathematics of throwing away 99.9% of those cases systematically, under a stated fault-model assumption: they identify which inputs the code cannot distinguish between (so testing one representative tests them all) and where the code does switch behaviour (so that is exactly where the bugs cluster).

The analogy: a customs officer at an airport does not open every bag. They partition travellers into risk classes, inspect one representative from each class, and concentrate attention at boundaries — the traveller right at the duty-free limit, the visa expiring today. Random inspection of 12 bags out of 4,000 finds almost nothing; structured selection of 12 finds most of what matters.

What breaks without these techniques: teams either test the happy path plus a few guesses (and ship boundary bugs — the classic off-by-one at exactly ₹2,000 or exactly 18 years old), or they attempt combinatorial exhaustion, burn weeks on 400 redundant cases that all execute the same branch, and still miss the boundary because none of the 400 landed on it. Technique is what makes 12 cases worth more than 4,000.

The interview relevance is direct: "how would you test this input/feature?" is asked in nearly every QA loop, and the scoring rubric is whether you enumerate in structured passes (partitions → boundaries → combinations → states → errors) or free-associate.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision