Easy Software Testing
Easy Software Testing
Analysis
Ultimate goal for software testing
Quality
Assurance
Cost to fix faults
60* to 100*
1.5* to 6*
Cost 1*
Component Integration
testing testing
• Test to specification:
– Black box,
– Data driven
– Functional testing
– Code is ignored: only use specification document
to develop test cases
• Test to code:
– Glass box/White box
– Logic driven testing
– Ignore specification and only examine the code.
Black-box testing
System
A T1
T1
A
T1 T2
A B
T2
T2 B T3
T3
B C
T3 T4
C
T4
D T5
• Top-down testing
– Start with high-level system and integrate from the
top-down replacing individual components by stubs
where appropriate
• Bottom-up testing
– Integrate individual components in levels until the
complete system is created
• In practice, most integration involves a
combination of these strategies
Top-down testing
Testing
Level 1 Level 1 . ..
sequence
Le vel 2
stubs
Le vel 3
stubs
Bottom-up testing
Test
drivers
Testing
Level N Level N Le vel N Level N Level N
sequence
Test
drivers
Level N–1 Level N–1 Level N–1