Testing Unit 3
Testing Unit 3
Principles
What are the types of Software Tests
Real-Time Testing
How to define Software
Testing Principles
Testing
The execution of a program to find its faults
Verification
The process of proving the programs
correctness.
Validation
The process of finding errors by executing
the program in a real environment
Debugging
Diagnosing the error and correct it
Software Testing Principles
To remove as many defects as possible
before test since the quality
improvement potential of testing is
limited
What are the Types of
Software Tests
Unit Testing (White Box)
Integration Testing
Function Testing (Black Box)
Regression Testing
System Test
Acceptance and Installation Tests
Unit Testing (White Box
OR GLASS BOX)
Individual components are tested.
It is a path test.
To focus on a relatively small segment
of code and aim to exercise a high
percentage of the internal path
Disadvantage: the tester may be biased
by previous experience. And the test
value may not cover all possible values.
Integration Testing
Top-down Integration Test
Bottom-up Integration Test
Top-down Integration Test
The control program is tested first.
Modules are integrated one at a time.
Emphasize on interface testing
Advantages: No test drivers needed
T1
T1 A
A
T2
T2 B
B T3
T3 C
T4
Bottom-up Integration Test
Allow early testing aimed at proving
feasibility
Emphasize on module functionality and
performance
Advantages: No test stubs are needed
Errors in critical modules are found early
Disadvantages: Test drivers are needed
Interface errors are discovered late
Bottom-up
testing
Test Test
Drivers Drivers