Originally posted by saritha sar:
What is equivalence class,boundary value?
Let's say you're testing a Calculator that can add numbers.
The input is a pair of integers.
The natural boundary values for all possible input values are
* zero (0)
* the minimum positive value for an integer (1)
* the maximum positive value for an integer (n)
* the minimum negative value for an integer (-n)
* the maximum negative value for an integer (-1)
Now, this group of natural boundaries forms ranges like [2..n-1] and [-2..-n+1]. Within those ranges, it is likely that the Calculator works correctly for value x if it works correctly for value x+1, and so forth. These ranges are (please correct me if I'm wrong here) an example of equivalence classes.