Unit II-part1 Ecs 071
Unit II-part1 Ecs 071
Functional Testing:
Boundary Value Analysis, Equivalence Class Testing, Decision Table Based Testing, Cause
Effect Graphing Technique.
Structural Testing:
Control flow testing, Path testing, independent paths, Generation of graph from program,
Identification of independent paths, Cyclomatic Complexity, Data Flow Testing, Mutation
Testing.
Black Box Testing (BBT)
Black-box testing, also called behavioural testing, focuses on the functional requirements of
the software. BBT enables the software engineer to derive sets of input conditions that will
fully exercise all functional requirements for a program. As shown in Fig. Black-box testing
is concerned only with the possible inputs and their desired output regardless of the
developmental details. BBT is performed by a separate testing team not the developer their self
hence it is one type of release testing.
Q1: Consider a program for determining the Previous date Input: Day, Month, Year with valid
ranges as:
1 ≤ Month ≤ 12
1 ≤ Day ≤ 31
1900 ≤ Year ≤ 2000
Possible output: Previous Date or Invalid Date
Maximum test case Boundary analysis Value Test Cases = 4 X Number of variables + 1
= 4 X 3 +1
=13 Test cases
Q2: Consider a program to classify a triangle Input: Triple of positive integers (x, y, z) and
the values range between 0 and 100 i.e., (0,100] or [1,100].
Output: Equilateral/ Isosceles/Scalene/Not a triangle.
Design Boundary value cases:
1 50 50 1 Isosceles
2 50 50 2 Isosceles
✓ 3 50 50 50 Equilateral
4 50 50 99 Isosceles
6 50 1 50 Isosceles
7 50 2 50 Isosceles
8 50 99 50 Isosceles
10 1 50 50 Isosceles
11 2 50 50 Isosceles
12 99 50 50 Isosceles
Maximum test case Boundary analysis Value Test Cases = 4 X Number of variables + 1
= 4 X 3 +1
=13 Test cases
Equivalence Class Testing
Decision Table Based Testing
Decision tables are useful for describing situations in which a number of combinations of
actions are taken under varying states of conditions.