The answer is no.
Equivalence partitioning is used for input or output values of a software component, so that you can derive test cases using representative values of the partitions.
Example:
If you want to test a function which determines the winner of a game after it has ended, and there are two input parameters pointsPlayer1
and pointsPlayer2
, the domains of these parametes would be
0 <= pointsPlayer1 <= maxValue
and 0 <= pointsPlayer2 <= maxValue
maxValue
is the maximum number of points in a game, you have to use the concrete maximum value for snooker for this placeholder.
You have do divide the domain in ranges from which you expect the software component to behave equal for each value in these ranges.
The following "valid" partitions can be used:
pointsPlayer1 < pointsPlayer2
pointsPlayer1 > pointsPlayer2
Partition 1 is used for the test cases where player 2 wins
Partition 2 is used for the test cases where player 1 wins
You have to consider an additional condition for deriving your test cases:
pointsPlayer1 + pointsPlayer2 <= maxValue
"Valid" partitions are used to test the "good" cases (valid parameter values). The "bad" cases, i.e. invalid parameter values, should also be tested. "Invalid" partitions are used for this. "Invalid" partitions would be for example:
pointsPlayer1 < 0
pointsPlayer1 > maxValue
pointsPlayer1 + pointsPlayer2 > maxValue
and so on.