Boundary value testing question Use the boundary value analysis method to derive
ID: 3752948 • Letter: B
Question
Boundary value testing question Use the boundary value analysis method to derive a set of black box test cases for the following function that covers all the boundary value analysis criteria. Provide all input data and expected output data.
--------
Z = | X – Y + 10 when 10 < x <= 15 and 15 <= y <= 25
| X + Y – 5 when 0 < x <= 10 and 0 < y < 15
| Undefined when x = -5 and y = 0
| 0 Otherwise
--------
a) Define all boundaries.
b) Define the boundary values for each boundary.
c) Define the test cases for each boundary.
Explanation / Answer
Part a)
Boundaries :
generally we consider boundary as below mentioned all possible cases:
So here boundaries are :
x = 11, x = 10, x = 15, x = 16
y = 15, y = 14, y = 25, y = 26
x = 1, x = 0, x = 10, x = 11
y = 1, y = 0, y = 14, y = 15
x = -5 and y = 0
Part b)
for expression 1)
x = 11, x = 10, x = 15, x = 16
y = 15, y = 14, y = 25, y = 26
for expression 2)
x = 1, x = 0, x = 10, x = 11
y = 1, y = 0, y = 14, y = 15
for expression 3)
x = -5 and y = 0
for expression 4)
all possible values of x and y which are not in the above range.
Part 3)
test case output values x = 11, y = 15 X-Y+10 = 6 x = 15, y = 25 X-Y+10 = 0 x = 10, y = 14 X+Y-5 = 19 x = 1, y = 1 X+Y-5 = -3 x = -5, y = 0 Undefined now all other possible values like: x = 0 , y = 0 0 x < 0 , y < 0 0 x = -1, y = 0 0Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.