CH 4
CH 4
Chapter 4
Dynamic Testing: Black
Box Testing Techniques
Objectives
Test cases are designed by holding one variable at its extreme value
and other variables at their nominal values in the input domain. The
variable at its extreme value can be selected at:
Anom, Bmin
Anom, Bmin+
Anom, Bmax
Anom, BmaxAmin, Bnom
Amin+, Bnom
Amax, Bnom
Amax-, Bnom
Anom, Bnom
Worst Case
Testing Method
Software
Testing
Myths
When more than one variable are in extreme values, i.e. when more
than one variable are on the boundary. It is called Worst case
testing method.
10
Example
11
Example
12
13
Example
14
Example
15
16
State Table
17
18
19
Example
A program calculates the total salary of an employee with the conditions that
if the working hours are less than or equal to 48, then give normal salary.
The hours over 48 on normal working days are calculated at the rate of 1.25
of the salary. However, on holidays or Sundays, the hours are calculated at
the rate of 2.00 times of the salary. Design the test cases using decision
table testing.
20
21
22
Example
A program has been designed for the determination of nature of
roots of a quadratic equation. Quadratic equation takes three input
values from the range [0,100]. Design all test cases using CauseEffect graphing technique.
23
C1: a 0
C2: b = 0
C3: c = 0
C4: D > 0 where D is b2 4 * a * c
C5: D < 0
C6: D = 0
C7: a = b = c
C8: a = c = b/2
E1: Not a quadratic equation
E2: Real Roots
E3: Imaginary Roots
E4: Equal Roots
24
25
26
Error Guessing
Error guessing is the method used when all other methods fail or it
is the method for some special cases which need to be tested.
It means error or bug can be guessed which do not fit in any of the
earlier defined situations. So test cases are generated for these
special cases.
27