Equivalence Set Testing



Definition

Equivalence set (a.k.a., equivalence class) testing is a black-box unit testing technique for minimizing the number of test cases by creating a single test case for each equivalence set of type values involved in an interaction.

Discussion

For any nontrivial class or use case, exhaustive testing is impossible because a huge, practically infinite number of choices of test values exist. Through analysis, one can partition the associated state space into small number of regions containing possible test values, each point in which should produce qualitatively equivalent behavior if the class or application is implemented correctly.

Objectives

The typical objectives of equivalence set testing are to:

Preconditions

Equivalence set testing can typically begin when the following preconditions hold:

Completion Criteria

Equivalence set testing is typically complete if the following postconditions hold:

Steps

During equivalence set testing, unit and functional test testers typically perform the following steps:

Work Products

Equivalence set testing typically results in the following work products:

Limitations

Equivalence set testing is typically subject to the following limitations:

Guidelines