Difference between Equalance class partion and boundary
value analysis?

Answer Posted / kanad

The main difference between EP and BVA is that EP
determines the number of test cases to be generated for a
given scenario where as BVA will determine the effectivenss
of those generated test cases.

Equivalence partitioning :

Equivalence Partitioning determines the number of test
cases for a given scenario.

Equivalence partitioning is a black box testing technique
with the following 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.
EV is applied to the inputs of a tested component. The
equivalence partitions are usually derived from the
specification of the component's behaviour.

An input has certain ranges which are valid and other
ranges which are invalid. This may be best explained at the
following example of a function which has the pass
parameter "month" of a date. The valid range for the month
is 1 to 12, standing for January to December. This valid
range is called a partition. In this example there are two
further partitions of invalid ranges. The first invalid
partition would be <= 0 and the second invalid partition
would be >= 13.

... -2 -1 0 1 .............. 12 13 14 15 .....
------- -------------------- -----------------
invalid
partition 1 valid partition invalid partition 2

The testing theory related to equivalence partitioning says
that only one test case of each partition is needed to
evaluate the behaviour of the program for the related
partition. In other words it is sufficient to select one
test case out of each partition to check the behaviour of
the program. To use more or even all test cases of a
partition will not find new faults in the program. The
values within one partition are considered to
be "equivalent". Thus the number of test cases can be
reduced considerably.
Equivalence partitioning is no stand alone method to
determine test cases. It has to be supplemented by boundary
value analysis. Having determined the partitions of
possible inputs the method of boundary value analysis has
to be applied to select the most effective test cases out
of these partitions.

Boundary Value Analysis :

Boundary Value Analysis determines the effectiveness of
test cases for a given scenario.
To set up boundary value analysis test cases the tester
first has to determine which boundaries are at the
interface of a software component. This has to be done by
applying the equivalence partitioning technique. Boundary
value analysis and equivalence partitioning are inevitably
linked together.
For the example of the month a date would have the
following partitions:
... -2 -1 0 1 .............. 12 13 14 15 .....
--------------|-------------------|-------------------
--
invalid partition 1 valid partition invalid
partition 2
By applying boundary value analysis we can select a test
case at each side of the boundary between two partitions .
In the above example this would be 0 and 1 for the lower
boundary as well as 12 and 13 for the upper boundary. Each
of these pairs consists of a "clean" and a "dirty" test
case.
A "clean" test case should give a valid operation result of
the program. A "dirty" test case should lead to a correct
and specified input error treatment such as the limiting of
values, the usage of a substitute value, or in case of a
program with a user interface, it has to lead to warning
and request to enter correct data.
The boundary value analysis can have 6 test cases: n, n-1,
and n+1 for the upper limit; and n, n-1, and n+1 for the
lower limit.

Is This Answer Correct ?    33 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of black box testing?

674


Why did you choose the Software Testing Field?

1651


how do u manage scripts in winrunner when you application is changing frequently?

1496


Explain the difference between alpha testing and beta testing.

657


What are the advantages of waterfall model?

675






user id @ yahoo.com (or) yahoo.co.in (or) gmail.com.... etc

1940


what is the difference between test case and result matrix

1692


Can you explain decision tables?

678


What is the different between SIT and UIT?

895


What is coverage and what are the different types of coverage techniques?

662


What types of software testing are available?

708


What are drawbacks in system development life cycle

1726


Scenario A year ago we developed a standards compliant website for a client. Their site is very popular resulting in the client wanting to be able to track how it is being used by their users. The first part of this project is to create a Login function so that users can be identified on the website. The data supplied by users would have to be handled securely. You have been allocated this project to work on. You will be responsible for the task from start to finish and will be expected to give feedback to your manager. User expectations  The client wants their users to be able to login using a page that fits in with the website design.  Tom wants to access the website but doesn’t want his login information to be available to anyone else.  Paul doesn’t want to login to the website because he’s not a frequent user. Task Please provide some feedback on how you would do the following:-  Being the only Test Engineer on this task, what would your approach be for this requirement?  Identify the key areas for testing this page.  What tools if any, would you use to perform the testing, bearing in mind that the testing will be done without using an ‘automated test tool’.  Provide a sample test case that could be used for testing this page, for example as a word or Excel document.

1464


Hi all, can anyone tell me what is the selection procedure in Birlasoft for Manual Tester?It will be a great help.

1469


What is Web architecture that are followed while doing online project and tell the samples of architecture?

1813