Equivalence Partitioning (EP)
Definition
Equivalence Partitioning is a software testing technique that divides the input data of a program into partitions (groups) where the system is expected to behave the same way for all values within a group.
Purpose
How It Works
-
Identify the input domain (range of possible values).
-
Split it into valid partitions (acceptable inputs) and invalid partitions (unacceptable inputs).
-
Select one representative value from each partition for testing.
Example
If an age field accepts 18 to 60:
Valid Partition
Invalid Partitions
Instead of testing every value, you pick one from each partition.
Advantages
Limitations