What is Boundary value analysis equivalence partitioning example pdf Equivalence partitioning? Boundary value analysis and equivalence partitioning both are test case design strategies in black box testing.

In this method, the input domain data is divided into different equivalence data classes. This method is typically used to reduce the total number of test cases to a finite set of testable test cases, still covering maximum requirements. In short, it is the process of taking all possible test cases and placing them into classes. One test value is picked from each class while testing. If you are testing for an input box accepting numbers from 1 to 1000 then there is no use in writing thousand test cases for all 1000 valid input numbers plus other test cases for invalid data.

Using equivalence partitioning method above test cases can be divided into three sets of input data called as classes. Each test case is a representative of a respective class. So in above example, we can divide our test cases into three equivalence classes of some valid and invalid inputs. One input data class with all valid inputs. Pick a single value from range 1 to 1000 as a valid test case. If you select other values between 1 and 1000 the result is going to be same. So one test case for valid input data should be sufficient.

Input data class with all values below the lower limit. 1, as an invalid input data test case. Input data with any value greater than 1000 to represent third invalid input class. So using equivalence partitioning you have categorized all possible test cases into three classes. Test cases with other values from any class should give you the same result. We have selected one representative from every input class to design our test cases.

Test case values are selected in such a way that largest number of attributes of equivalence class can be exercised. Equivalence partitioning uses fewest test cases to cover maximum requirements. It’s widely recognized that input values at the extreme ends of input domain cause more errors in the system. More application errors occur at the boundaries of input domain. Boundary value analysis’ testing technique is used to identify errors at boundaries rather than finding those exist in center of input domain.

Boundary value analysis is the next part of Equivalence partitioning for designing test cases where test cases are selected at the edges of the equivalence classes. Test cases with test data exactly as the input boundaries of input domain i. 1 and 1000 in our case. Test data with values just below the extreme edges of input domains i.

Test data with values just above the extreme edges of input domain i. Boundary value analysis is often called as a part of stress and negative testing. Note: There is no hard-and-fast rule to test only one value from each equivalence class you created for input domains. You can select multiple valid and invalid values from each equivalence class according to your needs and previous judgments. 1 to 1000 input values invalid data equivalence class, then you can select test case values like 1, 11, 100, 950 etc. Same case for other test cases having invalid data classes. This should be a very basic and simple example to understand the Boundary value analysis and Equivalence partitioning concept.

Can u please hepl me about the certification in Testing as i planning to write. I would like to add one formulae here for boundary value. 1, n-1 one can use this formulae to calculate BV. It can be used for min and max value. Naushad Pasha This kind of Articles helps every one. Can anybody tell me For I. B Certification and is it indispensible condition to have atleast 2 yr.

Nice Way to explain with simple example. Senthil Why we have to methods to test the same condition. Using BV: now using the above class you write your test cases on boundaries. Both the techniques are used simultaneously to design test case.