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,754 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IT Asset Management 5 81
Free HD cloner 11 61
Looking for suggestions for a password manager that will be used on a Windows PC 6 61
wireless name in LAN adapter 14 48
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The viewer will learn common shortcuts with easy ways to remember them. The viewer will then learn where to find all of the keyboard shortcuts, how to create/change them, and how to speed up their workflow.
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…

770 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