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

Request the full text

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

  1. Wireless Network Management Software, Automated Regression Testing Technology and Its Application
    GuoYaMin ·Hunan University ·2010 ·Master's thesis
  2. Architecture Analysis of Language Testing
    WangZuo ·Chongqing Normal University ·2012 ·Master's thesis
  3. On the Dynamic Analyses and Design of Cam Mechanisms
  4. Research on Geographical Brand Characteristics and Influential Factors of Geographical Brand Image
    NiuYongGe ·Sichuan University ·2007 ·Doctoral dissertation
  5. Research on Test Architectures of Reusable IP Core and SOC (System on a Chip)
    LuSiAn ·Zhejiang University ·2003 ·Doctoral dissertation
  6. The Study of Vehicle Handling-Stability Virtual Experiment System
    WangShuFeng ·China Agricultural University ·2002 ·Doctoral dissertation
  7. Research on Key Technologies of Component Oriented Middleware Based on the Context-aware Service
  8. Floating slab track design parameters of power
    WangYang ·Central South University ·2008 ·Master's thesis
  9. Dynamic Model and Simulation of Cold Ring Rolling Mill
    ZhangJin ·Wuhan University of Technology ·2008 ·Master's thesis
  10. Land Use/Land Cover Change and Driving Forces Analysis Lower Area of Three Gorges Reservoir
    LiLi ·Nanchang University ·2006 ·Master's thesis
  11. Research on the Technology of Data Link Interoperability Test
  12. The Structure Design and Mechanical Property Analysis of Pylon for Long-span Cable-stayed Bridge
    YangLin ·Beijing Jiaotong University ·2011 ·Master's thesis
  13. Research and Design of SoC Test Architecture Based on Embedded Core Test Reuse
    WangFei ·PLA Information Engineering University ·2008 ·Master's thesis