Solved

Equivalence Partitioning and Boundary value analysis, Is it enough to do BVA for a test? need an clear exaple pls.

Posted on 2008-06-15
3
1,752 Views
Last Modified: 2013-12-13
Hi experts,
Can you please explain following testing concepts?
-Equivalence Partitioning
-Boundary value analysis
-Is it enough to do BVA for a test
It would be better if you can explain me with an example. I need to test these with real world senario.
0
Comment
Question by:Kusmila
3 Comments
 
LVL 9

Expert Comment

by:Suhas .
ID: 21791107
Hi Kusmila,

For both of your queries on testing concepts there is a detailed Wiki.
Please go through the links you will get to know in-detail.

Equivalence Partitioning:
Equivalence partitioning is a software testing related technique with the goal:
   1. To reduce the number of test cases to a necessary minimum.
   2. To select the right test cases to cover all possible scenarios.

For more details: http://en.wikipedia.org/wiki/Equivalence_partitioning 

Boundary value analysis:
Boundary value analysis is a software testing design technique to determine test cases covering off-by-one errors. The boundaries of software component input ranges are areas of frequent problems.

For more details: http://en.wikipedia.org/wiki/Boundary_value_analysis


Cheers...
Suhas
0
 
LVL 10

Accepted Solution

by:
MaduKp earned 500 total points
ID: 21791122
The Equivalence Partitioning is dividing the inputs/outputs into areas which are the same.

Suppose an example for' text filed'-"Name". There are limitation for this filed as name should be 5 to 40 characters long.

Lets see how we perform EP over this case.
You can divide this into 3 partitions. How?
X  The # of input characters
Valid partition
5>= x <= 40
Invalid partitions
X<5
x>40
Choose any number within these partitions and test for text box name.
Here we have some assumptions:
If one value works, all the values in that range should be worked.
Selecting many of one partition is useless, but has to keep in your mind that at lease selecting one value from each partition is a must.

Lets see the BVA(Boundary Value Analysis) over above example
BVA is a testing over boundaries. There is high risk to be defects found in the boundaries than other parts in the input range.
What are the boundaries in the above example?
Valid boundaries
X = 5, 6 and x = 39, 40 (5 and 40 are on boundary values)
Invalid boundaries
X = 4 (suitable number where x <5)
X=41
Input these numbers and test for output.
Generally perform for both sides of the boundaries. That is upper boundary +1, upper boundary -1,
Lower boundary+1, Lower boundary-1

The last question,  Is it enough to do BVA for a test is a  kind of tricky. As far as it seems BVA is covering all the tests, but this is not totally correct.
Suppose the case where, the test is fails for a single boundary value? We cant say that whole partition is failing due to that reason? A good tester will test with both. Normally users dont have much confidence with testing just extreme values. However there are situations that BVA is enough. But better not depend just on it.

please feel free to ask any thing else regarding this matter.
0
 

Author Closing Comment

by:Kusmila
ID: 31467474
Thanks both experts. I am accepting madukp's answer as the correct one. It is the one that i understood and more clear.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now