Title: Software Testing
1????? 13
?????????????????
( Software Testing )
2?????????????????
( Software Testing )
Testing is the process of executing a
program with the intent of finding errors
Glen Myers
3Software Testing
4Test Case Design
5White-Box Testing
- ???? Structured Testing
- ?????????????????????
- ????????????? Statement ??? Execute
- ????????? 1 ?????
6White-Box Testing
7Basis Path Testing
- ???? idea ?????????????? White-box
- ???????????
- ??????? Flowchart ??????? Graph
- ????????????? Vertices ??? Edge
811
91
2, 3
4, 5
6
7
8
9
10
11
10Independent Path ?? 4 Path
Path 1 1 ,11 Path 2 1 ,2 ,3 ,4 ,5 ,10
,1 ,11 Path 3 1 ,2 ,3 ,6 ,8 ,9 ,10 ,1
,11 Path 4 1 ,2 ,3 ,6 ,7 ,9 ,10 ,1 ,11
11Cychomatic Complexity V(G)
????????????????? Basis Path
V(G) E - V 2
V Vertices E Edge
?????
12Black-Box Testing
- ???? Functional Testing
- ?? Input ?????????????? Output ??????????????
13Black-Box Testing
Input
Output
14Equivalence Partitioning
- ???? idea ?????????????? Black-box
- ???????????
- ??????????????????? Input , Output
- Test ??????????
15Testing Strategy
integration test
unit test
validation test
system test
16Unit Testing
Function
Procedure
- ????? Response ????????????????
17Unit Testing
module to be tested
results
test cases
software engineer
18Unit Testing
module to be tested
interface
local data structures
boundary conditions
independent paths
error handling paths
test cases
19Integration Test
- Module Testing
- _at_ Test ???? Module
- _at_ ?????????? Module?????
- Sub-System Testing
- _at_ Test Module ????????????????
- _at_ ???????? Interface ??????? Module
20Integrate Testing
- Top-down Testing
- Bottom-up Testing
- Thread Testing
- Stress Testing
- Incremental Testing
21Top-down Testing
Sub-system Module
Unit
22Top Down Integration
23???????? Top-down Testing
- ??? errors ????
- ?? Cost
- ?????????? Redesign
- ??????????????
- ???????? User ?????????
- ???????????????????
24?????????? Top-down Testing
- Test ???
- ????????????? Level ?????
( Unit , Module )
25Bottom- Up Integration
A
B
F
G
drivers are replaced one at a
time, "depth first"
C
worker modules are grouped into
D
E
builds and integrated
cluster
26Bottom-up Testing
- Test ??? ???????????????
- ???????? ?????????? Top-down
27Thread Testing
- Test ???? Process ?? level ????????
- ?????? Top-down ??? Bottom-up
- ???????????
28Stress Testing
- ???????????????? Fail ???????
- ??????????????????
29Incremental Testing
- ???????????? Module ??? Test ?????????
- ??????
30System Testing
- Test ????????
- ( ??? Sub-system ???????????????? )
31Validation or Acceptance Testing
- Test ??? Data ????? ?????????
- ?????? System Requirement Definition ???????
32???????
System
Sub-
??????????
?????????
System
??????????
Module
???????????
???? ? ???????
?????,
???
Unit
???
????
????
????????
???????
???????
33Test Planning
- ???????????????????????????????? ?????
????? - ???????? Errors
- Minimum Cost
34Test Plan ??????????
35Test Phase
Earlier Phase Program Defect
Laster Phase VV
36Verification Validation
VV
??????????? VV
- ????????????????????????
- ????????????/????????? ?????????????????????
- ????????????
37??? Testing ??? VV ??????? 2 ??????
- Statistical Testing
- Defect Testing
38 Statistical Testing
- ????????? Testing ???????????????????????????
Actual inputs/outputs ????????????????????????????
???????????????????????????
39 Defect Testing
- ??????????????????/???????????
- (Errors) ??????
40Test Data Test Case
- Test Data
- ??????? Test Data ??????????? Drive Program
- Test Case
- ?????? Test input output function spec.
- ???????????
41Alpha Beta Testing
Alpha Test
Software
Customer test
Developer Site
Customer Site
42Alpha Beta Testing
Beta Test
Customer test
Developer reviews
Software
Developer Site
Customer Site
43Who Test Software ?
- Developer
- Independent tester
- Customer
44????? 14
??????????????????? ????????????????
( Documentation and Maintenace )
45Documentation
??????????????? ??????????????????????????????????
?????????????????????? , ??????????
????????????????
46Documentation
??????????
System Documentation
User Documentation
47 System Documentation
??????????
Requirement Specification
System Achitecture
Description Of the Design
Program Achitecture
Source Code
Test Plans And Reports
48 User Documentation
??????????
?????????????????????? ???????????????????????
? ???????????????????? ????????????????????
???????????????????
49?????????????????????? ( Functional
description)
- ????????????????????????????
- ?????????????????????????
50???????????????????????? ( Introductory Manual
)
- ????????????????????????
- ????????????????????
- ??????????????????????????
51???????????????????? ( Reference Manual )
- ???????????????????????????????
- ?????????????????????
52???????????????????? ( Installation Document )
- ????????????????????????????????
- ???????????????????????????????????
53??????????????????? ( System Administrator
Guide )
- ?????????????????????
- ????????????????????????????
54Maintenance
?????????????????????????????????????????????????
???????????? ?????????? ?????????????????????????
???????????????????????????????????????