The Research on Component Testing Based on Environment Dependency Analysis
- Author
- HuangYing
- Advisor
- ZuoBinBin
- School
- Huazhong University of Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 6
- Citations
- 1
Abstract
Nowadays, third-party components are popular for efficiency improvement in software developing. However, the use of low-quality components could cause disasters, so the importance of testing components is highlighted. Most third-party components don’t supply source codes and detailed documents for confidentiality, so their environment dependency information is implicit. Consequently, this condition hampers component testing from deploying, building test architecture, tracing test case influence and the like.Responding to these problems, this study adapts a test architecture model of distributed system and makes it suitable for component unit black-box test. The new architecture makes adaptive improvement in test strategy, support analyzing environment dependency automatically, generate stubs to substitute environment service, and trace test case influence. The dependency analyzing method is made up of two complementary parts which are static and dynamic ways. The static way extracts information related to environment dependency from component file structure and fetch data from disassembling instructions of component; The dynamic way, by using hooking technique, interrupts special library functions which can build dependency to fetch valuable information. Base on this information, the study discusses the location choosing method for stubs and their implementation organization. By substituting original environment service by stubs, the test platform can control these services with high flexibility; receive runtime data which includes information about the running test case; and other runtime monitoring tasks.Adaptive improvement is made for a existing test platform to suit for third-party black-box component unit test. Base on this study, the design and preliminary implementation of the component environment dependency analyzing and monitoring system are carried out. And some experiments prove the high success rate of analyzing component dependency and runtime monitoring.
Table of contents
Summary 4-5
Abstract 5-8
1 Introduction 8-17
1.1 Background 8-9
1.2 research status 9-16
1.3 The main contents and organization 16-17
Static analysis
2 testing process and environment dependent 17-30
2.1 testing process 17-19
2.2 environments rely on static analysis methods 19-29
2.3 Summary 29-30
Dynamic Analysis
3 Environment dependent 30-36
3.1 API to intercept method 30-33
3.2 dependency analysis method 33-34
3.3 Summary 34-36
4 environment dependence pile design and dynamic monitoring 36-40
Generation 4.1 of 36-37
4.2 dynamic monitoring method 37-39
4.3 Summary 39-40
5 environmental dependency analysis test system design and implementation 40-54
5.1 CSTS system and environment dependent subsystems 40-41
5.2 static dependency analysis module 41-45
5.3 dynamic dependency analysis module 45-48
5.4桩component generation and dynamic monitoring module 48-53
5.5 Summary 53-54
6 test and evaluation 54-60
6.1 static dependency analysis experiments 54-56
6.2 API interception positioning experiments 56-57
6.3 CSTS system test 57-59
6.4 Summary 59-60
7 Summary and Outlook 60-62
Thanks 62-63
References 63-67
Appendix pursuing degrees during participation in research projects 67
Related dissertations
- Wireless Network Management Software, Automated Regression Testing Technology and Its Application
- Architecture Analysis of Language Testing
- On the Dynamic Analyses and Design of Cam Mechanisms
- Research on Geographical Brand Characteristics and Influential Factors of Geographical Brand Image
- Research on Test Architectures of Reusable IP Core and SOC (System on a Chip)
- The Study of Vehicle Handling-Stability Virtual Experiment System
- Research on Key Technologies of Component Oriented Middleware Based on the Context-aware Service
- Floating slab track design parameters of power
- Dynamic Model and Simulation of Cold Ring Rolling Mill
- Land Use/Land Cover Change and Driving Forces Analysis Lower Area of Three Gorges Reservoir
- Research on the Technology of Data Link Interoperability Test
- The Structure Design and Mechanical Property Analysis of Pylon for Long-span Cable-stayed Bridge
- Research and Design of SoC Test Architecture Based on Embedded Core Test Reuse