Can anyone explain Boundary value Analysis and equavelance
partition with real time example

Answer Posted / neellohit

Boundary value analysis:
It’s widely recognized that input values at the extreme
ends of input domain cause more errors in system. More
application errors occur at the boundaries of input domain.
‘Boundary value analysis’ testing technique is used to
identify errors at boundaries rather than finding those
exist in center of input domain.
Boundary value analysis is a next part of Equivalence
partitioning for designing test cases where test cases are
selected at the edges of the equivalence classes.

Test cases for input box accepting numbers between 1 and
1000 using Boundary value analysis:
1) Test cases with test data exactly as the input
boundaries of input domain i.e. values 1 and 1000 in our
case.

2) Test data with values just below the extreme edges of
input domains i.e. values 0 and 999.

3) Test data with values just above the extreme edges of
input domain i.e. values 2 and 1001.
Boundary value analysis is often called as a part of stress
and negative testing.

Note: There is no hard-and-fast rule to test only one value
from each equivalence class you created for input domains.
You can select multiple valid and invalid values from each
equivalence class according to your needs and previous
judgments.
E.g. if you divided 1 to 1000 input values in valid data
equivalence class, then you can select test case values
like: 1, 11, 100, 950 etc. Same case for other test cases
having invalid data classes.


Equivalence Partitioning:
In this method the input domain data is divided into
different equivalence data classes.
This method is typically used to reduce the total number
of test cases to a finite set of testable test cases, still
covering maximum requirements.
In short it is the process of taking all possible test
cases and placing them into classes.
One test value is picked from each class while testing.
E.g.: If you are testing for an input box accepting numbers
from 1 to 1000 then there is no use in writing thousand
test cases for all 1000 valid input numbers plus other test
cases for invalid data.
Using equivalence partitioning method above test cases can
be divided into three sets of input data called as classes.
Each test case is a representative of respective class.
So in above example we can divide our test cases into three
equivalence classes of some valid and invalid inputs.Test
cases for input box accepting numbers between 1 and 1000
using Equivalence Partitioning:

1) One input data class with all valid inputs. Pick a
single value from range 1 to 1000 as a valid test case. If
you select other values between 1 and 1000 then result is
going to be same. So one test case for valid input data
should be sufficient.

2) Input data class with all values below lower limit. I.e.
any value below 1, as a invalid input data test case.

3) Input data with any value greater than 1000 to represent
third invalid input class.

So using equivalence partitioning you have categorized all
possible test cases into three classes. Test cases with
other values from any class should give you the same result.
We have selected one representative from every input class
to design our test cases.
Test case values are selected in such a way that largest
number of attributes of equivalence class can be exercised.
Equivalence partitioning uses fewest test cases to cover
maximum requirements

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the possible test cases for online jobs search portal..if its a job seeker module and any 1 if u had worked on this proj pls share the bugs with sev and priority pls frends i need replies for these queries ..thanks in advance

7134


what is the testing approach for windows Explorer(Not IE Explorer)

2245


How do you perform configuration management with typical revision control systems?

1636


What is application programming interface (api)?

643


how to creat 2 test plan in 2 different environment exp:tour and travel

1911






Diffrence b/w functional testing,functionality testing,system testing?

1608


hi this is satish can some one help me out by sending the maxium notes on client sesrver ,web server and company architechture project hirearchy and company hirearchy i will happy to recive the answers as early as possible

1715


If anybody from banglore having the real time exp in manual testing with 3+ yrs exp and looking for change send your profile to vinodhanandhan@gmail.com

1502


What is Mixed Testing

1626


what is the difference between PEGA based web application testing versus web application testing?

4620


What is a good test? Wy do we need testing write test steps for triangle write test steps for ATM How a tester should approach a devloper about non accepted defect? What is test coverage assurance and give an example Draw and expain V model and how it is helpfull in software development

1601


Explain Single View Testing ?

988


What is your approach when requirements change continuously?

709


If project wants to release in 3months what type of risk analysis you do in test plan?

704


How do you scope,organise and execute a test project.

1649