Boundary Value Analysis Vs Equivalence Partitioning

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.
SHARE

About அமரகோசம்

    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment