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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

762 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

24 Experts available now in Live!

Get 1:1 Help Now