Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M11433

Equivalence Class Partitioning

Equivalence Class Partitioning
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-08-13

Loading revision record…

Summary

Equivalence class partitioning divides an input domain into classes whose members should behave identically, so testing one representative value per class covers the whole class.

Definition

Equivalence class partitioning is a black-box testing technique that divides the input domain into classes such that every value in a class is expected to trigger the same behavior. Its core proposition is that if one representative from a class behaves correctly the rest of the class will too, so exhaustive testing can be replaced by a small, systematic set of representatives. The key qualification is that the partition must be justified by the specification, and boundary values between classes must be tested separately, because defects cluster at the edges of a class.

How to use

- Representative sampling: pick one value from each class instead of enumerating every possible input. - Invalid coverage: give explicit classes to inputs the system should reject, not just valid ones. - Boundary pairing: add the values at class edges, where defects concentrate.

Mechanism

Most systems treat a wide range of inputs identically, so testing every value repeats the same execution path. Grouping inputs by the behavior they provoke collapses that redundancy into one test per group. The remaining risk sits at class boundaries, where the handling rule changes, so those points are tested separately.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • For an age field accepting 0 to 120, the value 30 represents the valid class while minus one and 200 represent invalid classes.
  • Form validation suites typically test one well-formed input plus representative malformed inputs for each rejection rule.

Common pitfalls

  • Partitioning on intuition rather than the specification, which creates classes that do not match actual system behavior.
  • Testing only valid classes and ignoring invalid input, which leaves the error-handling paths unverified.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/Equivalence_partitioningZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS