In this article we are going to know the difference between Boundary Value Analysis and Equivalence Partitioning.

**Boundary Value Analysis**: This is technique in which the boundary values are tested instead of hitting in the middle. For example, we can take a bank application. Assume that we can withdraw the minimum of 1000 and maximum of 20000. So, we can test the application by entering the values less than 1000 and greater than 20000.These two test cases will cover the entire application. We may test with some values like 1001 and 1002 etc. But it'll not make any sense as the result will be the same.So, the boundary values are considered for testing is called as Boundary Value Analysis.

**Equivalence Partitioning**: In this method we can eliminate the test cases which are treated in the same way and produces the same result.So, this method is mainly useful to eliminate the redundant test cases. For example we can take the above bank application.In this we can consider the following scenarios.

01. Value < 1000

02. Value > 20000

03. Value = 1000

04. Value = 10000

As per the above examples, test cases 3 and 4 produces the same result. So, this is redundant. So we can eliminate either 3 or 4.

We can consider the equivalence partitioning in any of the following scenarios.

- All test cases should produce the same result.
- All test cases should test the same thing.
- If one test case catches a bug, other test case also should catch the same bug.
- If one test case misses a bug, other test case also should miss the bug.

I hope the above explanation explains the difference between the BV and EP.

## 1 comments:

Thanks for the article.Here is one more example on this:Test cases for input box which accepts numbers between 1 and 100 using Boundary value analysis:Test cases with test data exactly as the input boundaries of input domain i.e. values 1 and 100 in our case.Test data with values just below the extreme edges of input domains i.e. values 0 and 99.Test data with values just above the extreme edges of input domain i.e. values 2 and 101.

For more examples visit

5 Boundary Value Analysis ExamplesThanks Dav

## Post a Comment