Fundamentals of Software Testing
Fundamentals of Software Testing
TESTING
Introduction
2
CONCEPT: BLACK BOX TESTING
3
CONCEPT: WHITEBOX TESTING
4
CONCEPTS: PHASES OF TEST
1 2 3 4
Unit Test Integration System Test Acceptance
Phase Test Phase Phase Test Phase
5
CONCEPTS: PHASES OF TEST (cont.)
NOTE
1. Feature testing is NOT
performed in this phase of
TEST TYPES testing.
2.“This phase catches 65% of
all bugs”- Ross Collard.
Statement Coverage 3 . “Effective unit testing is the
foundation of all later phases
Basis Path Coverage of testing. No amount of
Help and Error Messages integration or system testing
File Handling can compensate for inadequate
unit testing”- Boris Beizer
7
Integration Test Phase
1 2 3 4
Unit Test Integration System Test Acceptance
Phase Test Phase Phase Test Phase
TEST TYPES
Inter-unit/module/subsystem communication
• Functional tests
• Timing and synchronization tests
• Reliability
• Load and Performance
8
Integration Test Phase (cont.)
NOTE
1. Feature testing is NOT performed in this phase of testing.
2. Stubs are used to replace components which are not ready for the initial
phase of this testing. Stubs are replaced by actual components in the latter
phase of this testing.
3. Performance, load, and reliability test types are all subsystem based that
could be performed in this test phase.
5. The target platform is used only for full system integration testing
when ALL units become available
9
System Test Phase
1 2 3 4
Unit Test Integration System Test Acceptance
Phase Test Phase Phase Test Phase
TEST TYPES
• Feature Performance
• Load Reliability
• Storage Capacity
• Systems Operations and Maintenance
10
Acceptance Test Phase
1 2 3 4
Unit Test Integration System Test Acceptance
Phase Test Phase Test Phase
TEST TYPES
• End-User tests
• Administrator tests
• Distributor tests
• Support tests
11
THE RELATED ACTIVITIES IN PER TEST
PHASES
12
UNIT TEST PHASE
13
UNIT TEST RELATED ACTIVITIES
14
UNIT TEST PHASE (cont.)
Note:
Any new or modified unit must undergo unit testing.
15
UNIT TEST PHASE (cont.)
16
UNIT TEST PHASE (cont.)
17
UNIT TEST PHASE (cont.)
Note:
Defect: A defect may be identified in the code, specifications, test
cases, or test plans.
18
UNIT TEST PHASE (cont.)
19
INTEGRATION TEST PHASE
Note:
The test item in integration testing is either a module, subassembly,
subsystem, or full-system.
20
INTEGRATION TEST RELATED ACTIVITIES
22
INTEGRATION TEST PHASE (cont.)
23
INTEGRATION TEST PHASE (cont.)
24
INTEGRATION TEST PHASE (cont.)
Note:
Defect: A defect may be identified in the code, specifications,test
cases, or test plans.
25
INTEGRATION TEST PHASE (cont.)
26