Professional Documents
Culture Documents
2. Equivalence Partitioning
- Definition:
Equivalence partitioning is a technique for dividing input into similar groups. If
one value in the group works properly, all the values in that group also work properly,
and vice versa.
- When to use Equivalence Partitioning
Equivalence Partitioning is used when the input data is single data fields like textboxes,
allow a large number of values and can be divided into partitions of values.
- How to use Equivalence Partitioning
+ Step 1: Identifying equivalence classes, at least 2 types of classes as follow:
A class of valid value
A class of invalid value
+ Step 2: Defining test cases base on these classes
For example:
The number of products in cart is only allowed to enter from 1 to 15
There are 3 equivalence classes: