Equivalence Class Partitioning
Updated 2026-08-13
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.
Introduction
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/1Practice this model in one real situation:
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.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Equivalence_partitioningverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS