Professional Documents
Culture Documents
Software Testing Technique: SK Alamgir Hossain
Software Testing Technique: SK Alamgir Hossain
Lecture 4
Software Testing Technique
SK Alamgir Hossain
Associate Professor
CSE Discipline, Khulna University
Testability
Software testability is simply how easily [a computer program] can
be tested.
Operability—It operates cleanly
Observability—The results of each test case are readily observed
Controllability—The better we can control the software, the more the testing
can be automated and optimized.
Decomposability— Software modules can be tested independently.
Simplicity—Reduce complex architecture and logic to simplify tests
Stability—Few changes are requested during testing
Understandability—The more information we have, the smarter we will test.
1
03/04/2020
Exhaustive Testing
loop < 20 X
14
There are 10 possible paths! If we execute one
test per millisecond, it would take 3,170 years to
test this program!!
2
03/04/2020
Selective Testing
Selected path
loop < 20 X
Software Testing
white-box black-box
methods methods
Methods
Strategies
3
03/04/2020
White-Box Testing
4
03/04/2020
A B
10
5
03/04/2020
1
Next, we derive the
independent paths:
2 Since V(G) = 4,
there are four paths
3 Path 1: 1,2,3,6,7,8
4
5 6
Path 2: 1,2,3,5,7,8
Path 3: 1,2,4,7,8
Path 4: 1,2,4,7,2,4,...7,8
Finally, we derive test
7 cases to exercise these
paths.
11
Loop Testing
Loop testing is a white-box testing technique that focuses exclusively on the
validity of loop constructs.
12
6
03/04/2020
13
14
7
03/04/2020
Black-Box Testing
Black-box testing, also called behavioral testing
requirements
output
input events
15
Any Question?
16