Boundary Value Analysis Examples
Boundary Value Analysis Examples
Example 1
Suppose you have very important tool at office, accepts valid User Name and Password
field to work on that tool, and accepts minimum 8 characters and maximum 12
characters. Valid range 8-12, Invalid range 7 or less than 7 and Invalid range 13 or more
than 13.
Write Test Cases for Valid partition value, Invalid partition value and exact boundary
value.
Solution:
Example 2
Solution:
Minimum boundary value is 18
Example 3
Suppose there is program that takes two inputs: age ([18-55]), salary ([0-10000]) and output the
total mortgage for one person Mortgage = salary * factor,
where factor is given by the following table
Category Age Factor
Young (18-35 years) 75
Middle (36-45 years) 55
Old (46-55 years) 30
Solution :
Test case for normal boundary value analysis will be prepared according to
{<x1nom, x2min>, <x1nom, x2min+>, <x1nom, x2nom>, <x1nom, x2max–>, <x1nom, x2max>,
<x1min, x2nom>, <x1min+, x2nom>, <x1max–, x2nom>, <x1max, x2nom>}
Testcase 3 and 8 are redundant so will consider only once. total number of acceptable test cases
are 9
Robust Boundary Value Testing
Input Values:
Age: Min- 17, Min 18, Min + 19, Nom 25, Max- 54 Max 55, Max+ 56
Salary : Min- -1, Min 0, Min+ 1, Nom 5000, Max- 9999, Max 10000,Max+ 10001