I understand how equivalence testing works.
How is it the same or different from boundary value testing?
|
I understand how equivalence testing works. How is it the same or different from boundary value testing? |
||||
|
|
|
Equivalence Class Testing Example 2 (more than one parameter) Dangers Of Equivalence Class Testing Boundary Value Testing Critique of Boundary Value Testing Hidden Boundary Value Testing Summary |
|||
|
|
|
Boundary value analysis simply means to select values near the boundaries of the classes. So you are still dividing the input domain according to the classes then instead of selecting values from the middle of the class use values from the boundaries. For example, if the input condition is a range from 20 to 70 then you have three classes of input
then for boundary value analysis select input = 19, 20, 21, 69, 70, 71. This type of analysis picks up errors on the boundaries. |
|||
|
|
|
The Equivalence testing needs to be supplemented with the Boundary value testing. For example for equivalent testing of a function that takes values between 1 and 12 For equivalence testing it is enough to pick one value as test input from each of these partition classes. That would mean tests with value of -2,6, and 15 would be considered enough to test behavior of the function. But these values doesn't catch Off-by-one error which can occur quite often. With the boundary value testing the test inputs would be : -1,0,1,11,12,13 (at the boundaries), which would catch off-by-one errors. I see both these testing methods to be a complement of each other. |
|||
|
|
|
Boundary value analysis is part or subset of equivalence partitioning. In boundary values analysis, instead of some random value, only values in the boundary are selected. |
|||
|
|
|
Dynamic Testing Types –
Equivalance Partitioning – It is a technique where tester divide the test conditions into groups and sets. System should handle them equivalently hence called equivalence classes. To test one condition from each partition will work to assume all condition will work in that partition. EX >> Check addition of the single digit values. i.e. values between 0 and 9.
Testing the addition for any two values of each partition is enough. Boundary value testing – It is based on testing at the boundaries between partition. EX >> Consider below combination.
|
|||
|
|
|
Boundary value analysis overcome the drawback of the Equivalance class partitioning. If a fix length is g9iven for eg. Mobile number (10 digit.) The lower boundary in this case is - digit - 1 (ie. 10 - 1 =9) The upper boundary in this case is - digit +1 (ie 10 + 1 =11) Now we can perform test for the 9 and 11 |
|||
|
|