Geeks Talk

Prepare for your Next Interview




need Boundary Value analysis explaination with example

This is a discussion on need Boundary Value analysis explaination with example within the Test Cases forums, part of the Software Testing category; Hi, How do you do BVA for range between 10-20? This question was posed to me by a inteviewer. As per theory, i told him 9,10,11 (min-...


Go Back   Geeks Talk > Software Testing > Test Cases

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-02-2007
Junior Member
 
Join Date: Nov 2006
Location: TamilNadu
Posts: 2
Thanks: 0
Thanked 2 Times in 1 Post
testingjob_vb is on a distinguished road
Question need Boundary Value analysis explaination with example

Hi,

How do you do BVA for range between 10-20?

This question was posed to me by a inteviewer. As per theory, i told
him 9,10,11 (min-1,min,min+ 1)and 19,20,21(max- 1,max,max+ 1)
values will be tested.Then he questioned the rationale behind testing
11 and 19 .he told me that if 11 passes surely 19 too would pass.for
which i was unable to reply.

Friendz,can anyone explain BVA clearly?????
Any docs on this subject would be very helpful.

Thanx,
vb
Reply With Quote
The Following 2 Users Say Thank You to testingjob_vb For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 04-04-2007
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 512
Thanks: 1
Thanked 53 Times in 45 Posts
sutnarcha is on a distinguished road
Re: need Boundary Value analysis explaination with example

Your initial answer was correct. He tried to confuse you by saying that if 11 passes then 19 will also pass. It is not necessarily true.

The logic behind BVA is that, for the reasons unknown, it is generally observed that the values near the boundaries (10 and 20 in above example) would fail more often then not. That is the reason BVA technique is followed.

But we need not apply BVA on above example, coz without BVA we have to check 11 values (10 to 20) and with BVA we are checking 6 values (9,10,11,19,20,21). The difference is that of only 5 more numbers. May be a matter of few more seconds of automation testing for average sized iteration.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
  #3 (permalink)  
Old 05-12-2007
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 865
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: need Boundary Value analysis explaination with example

The boundary value analysis can have 6 text cases.

n, n-1,n+1 for the upper limit and
n, n-1,n+1 for the lower limit.

But as you know we use equal class partitioning also for minimizing our test cases.

In your example, as per BVA, there are 6 test case data,
9,10,11 and 19,20,21.

But we will test for 9,10 and 20,21 only.

Because these 4 test case is sufficient to test the range, because we get both positive and negative test case from these 4 values.
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com
Reply With Quote
The Following User Says Thank You to jainbrijesh For This Useful Post:
  #4 (permalink)  
Old 05-14-2007
Contributing Member
 
Join Date: Jan 2007
Location: india
Posts: 41
Thanks: 7
Thanked 3 Times in 3 Posts
aardvax is on a distinguished road
hi
i think that is a good explanation by jain brijesh to reduce the effort of testing by reducing one test case...
in BVA we follow equivalence class patitioning.....
suppose you had to test the range 10-20...it means inclusive of the the boundary values...

so there are three equal patitions you can do
a) for values less than the lowest value in the range....
b) for values falling inside the range.....
c) for values more than the highest value of the range...

so we can write the test cases (both +ve and -ve ) pertaining to the partions mentioned above....which will derive six test cases
and as systems are prone to making mistakes at the boundaries we will have to include the test cases checking the boundaries too....
i.e. two test cases(+ve and -ve)....each for 10 and 20...which will make the total to 10...
while executing however, for each partition we will place our negative test case first for every partition.....so as to save our effort of going through the application again and again......

and the interviewer probably said right as you have checked the value falling between the range once by executing two test cases for partition (b) there is no need to check for all values falling in the range.....test case which is passing on...11 can pass 19 too however system cant be trusted...so it is better to test it for 19...as i mentioned earlier that the systems are prone to making mistakes aat boundaries...it is better that jus for saving the effort of executing one test case we do not make assumtions that the system will pass any value falling within the range...so when we choose values for our partion (b) it is better to include both 11 and 19........

less than 10|at 10|inside the range(11,19)|at 20|more than 20.....

thanks!!

remember we always check for
a) the things which the system is supposed to do, as well as
b) the things which the system is not supposed to do......

and if we have checked the system for (b) then it necessarily doesnt mean that it will do what it is supposed to do

Last edited by jainbrijesh : 05-14-2007 at 10:19 AM.
Reply With Quote
  #5 (permalink)  
Old 06-09-2007
Junior Member
 
Join Date: Mar 2007
Location: Chennai,India
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
jayanthisundar is on a distinguished road
How to identify the number of test cases

Can you give me some examples with answers, as to how to identify the number of test cases to write w.r.t to EP and BVA?
Reply With Quote
  #6 (permalink)  
Old 06-12-2007
Junior Member
 
Join Date: Jun 2007
Location: Bristol
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
rossma is on a distinguished road
Re: need Boundary Value analysis explaination with example

Hi there,

For this question, I think there is no much difference between 11 and 19 to be defined as check the boundary point values 10 and 20 respectively. I think for BVA testing there should be 5 ranges (not 6) for this question: <10, =10, >10 and <20, =20, >20, and then we should pick out the typical data from each 'range'. It does matter you choose a value equal to boundary value+1 (-1) or not, but does matter that you can define the right data 'range'.

thx

Last edited by rossma : 06-12-2007 at 07:10 PM.
Reply With Quote
The Following User Says Thank You to rossma For This Useful Post:
Reply

  Geeks Talk > Software Testing > Test Cases


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
Using Boundary value analysis and tracebility matrix JobHelper Test Cases 4 10-22-2007 02:46 AM
DiskAnalyzer Professional is a disk space analysis and cleaning software. JobHelper Geeks Lounge 0 01-08-2007 06:21 AM


All times are GMT -4. The time now is 01:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved