Professional Documents
Culture Documents
Copyright by Hong Xu 1
• ‘Testing can only show the presence of errors,
not their absence.’
• Exhaustive testing, where every possible program execution
sequence is tested, is impossible.
• Automatic test case generation is impossible.
Copyright by Hong Xu 2
Testing process -1 >> test plans
• Testing phases in the software process (Fig. 4.10)
Copyright by Hong Xu 3
Testing process -2 >> component
testing -1
• The testing process (Fig. 4.9, Fig. 23.1)
Component testing, system testing and acceptance testing
Responsible people
Copyright by Hong Xu 4
Testing process -2 >> component
testing -2
[S23.2.1]
Copyright by Hong Xu 5
Testing process -2 >> system testing
-2.1 integration testing
[S23.1.1]
• Integration testing
Component¨ interactions¨( last PPT)
Integration and testing
Integration strategy
Top-down, bottom-up and a mixture of these
A good rule of thumb is to integrate the components that implement the
most frequently used functionality first.
Problems¨
Localizing and repairing errors
Regression testing
Copyright by Hong Xu 6
Testing process -2 >> system testing
-2.1 integration testing
[S23.1.1]
Copyright by Hong Xu 7
Testing process -2 >> system testing
-2.2 release testing
[S23.1.2]
• Release testing
A system release¨
Copyright by Hong Xu 8
Testing process -2 >> system testing
-2.2 release testing
[S23.1.2]
Copyright by Hong Xu 9
Testing process -3 >> test case
design -1
• A model of the software testing process (Fig.
23.2)
• Test cases, specifications of the inputs to the test and the expected
output from the system plus a statement of what is being tested
Testing policies for choosing a subset of possible test cases
One general testing policy: all program statements should be executed at
least once.
• Test data, the inputs that have been devised to test the system
Copyright by Hong Xu 10
Testing process -3 >> test case
design -2
[S23.3]
Copyright by Hong Xu 11
Testing process -3 >> test case
design -3
• Structural testing (Fig. 23.12) [S23.3.3]
White-box testing
Derive tests from knowledge of the software’s structure and implementation
Copyright by Hong Xu 12
Testing process -3 >> test case
design -3
• Structural testing (Fig. 23.12) [S23.3.3]
White-box testing
Derive tests from knowledge of the software’s structure and implementation
Copyright by Hong Xu 13
Test automation [S23.4]
Copyright by Hong Xu 14
TSPi Forms and Instructions
Copyright by Hong Xu 15