Test Case Design Using Black Box Techniques
Test Case Design Using Black Box Techniques
Each member in a subset has the same characteristic as that of the other
elements in the same subset.
Equivalence classes for variables: range
Eq. Classes Example
Constraints Classes
One class with speed {50}, {75},
values inside the [60..90] {92}
range and two with
values outside the
range.
Experience indicates that programmers make mistakes in processing values at and near
the boundaries of equivalence classes.
The basic idea in boundary value testing is to select input variable values at their: 1)
minimum-1, 2) minimum, 3) minimum+1, 4) maximum-1, 5) maximum, and 6)
maximum+1.
Example 1 on EQP and BVA
Let'sconsider the behavior of Order Pizza Text Box Below
Pizza values 1 to 10 is considered valid. A success message is shown,
While value 11 to 99 are considered invalid for order and an error
message will appear, "Only 10 Pizza can be ordered"
Example 1… cont
Here is the test condition
Any Number greater than 10 entered in the Order Pizza field(let say 11) is
considered invalid.
Any Number less than 1 that is 0 or below, then it is considered invalid.
Numbers 1 to 10 are considered valid
Any 3 Digit Number say -100 is invalid.
Example 1… cont
inBoundary Value Analysis, you test boundaries between equivalence
partitions
Example 2
Consider an application that requires two integer inputs x and y. Each of
these inputs is expected to lie in the following ranges: 3 x7 and
5y9.
For
unidimensional partitioning we apply the partitioning guidelines to
x and y individually. This leads to the following six equivalence classes.
Example 2 (contd.)
Ifany of the conditions fails the system will throw corresponding error
message stating the issue and if all conditions are met photo will be
updated successfully
Decision Table of Previous Example
Problem 1: City-Tax Problem
The first input is a yes/no response to the question “Do you reside
within the city?” The second input is gross pay for the year in question.
A non-resident will pay 1% of the gross pay in city tax.