Research and Implementation for Method of Component Regression Testing
- Author
- ZhouXiaoBo
- Advisor
- JiangZuo
- School
- Kunming University of Science and Technology
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 36
- Citations
- 0
Abstract
With the development and increasing scale of software technology, components will be more widely used, reuse of the components brings us convenience of large-scale software development. When the component is modified, it is necessary to carry out regression testing. The introduction of component regression testing is the most effective method for ensuring the quality of new version of components, it is testing for correctness of components after modification. The execution procedure of regression testing is similar with former development, the difference is test cases. At present, regression testing is divided into two classes,"selective" strategy and "retest all" strategy. With the development of software, its scale is becoming more and more large."Selective" strategy wastes a lot of cost and time, especially the modification of code is small,"selective" strategy is not suitable. So, we need to choose suitable strategy in regression testing. Now, there are many researches about "selective" regression testing. The diversity of components’ changes brings us difficulty in "selective" regression testing of components. According to this, we propose a method of regression testing of components in this paper.One of the main work in this paper is change impact analysis of compents. Components’ change impact analysis is the key technology to ensure the unforeseen and potential impact of components’ changes, it allows developers to assess the possible impact of modification, and it plays an important part in components’ maintenance. In this paper, we analyse changes of variables and statements, we use comopent dependence graph for change impact analysis, the dependencies of component include data dependence and control dependence, these two dependencies are all based on control flow graph. The generation of control flow graph is according to preorder traverse of the syntax tree. Modification of a statement in the source code of component can produce direct or indirect impact to other statements, this is ripple effect. Ripple effects can be analyzed through reachability of component dependence graph.After change impact analysis, according to components before and after modification, generate path set of the components. We use static symbolic execution to generate test cases according to component before modification. Sort the change points according to the weight, generate regression testing paths, then generate regression testing cases. We use AHP (The Analytical Hierarchy Process) to gain change points’weight, sort the points from largest to smallest according to three types of changed points:affected by changed statements, affected by changed variables, affected by changed constants.The paper introduces the regression testing process based on the change impact of components before and after modification, based on this, we design and realize a tool for component regression testing, and use a large number of experiments to verify the effectiveness of our method and tool.
Table of contents
Summary 3-5
Abstract 5-7
directory 7-11
Chapter 1 Introduction 11-17 <br / > 1.1 Background 11-12
1.2 significance of the topic 1.3 Status domestic and foreign research 12
study abroad 12-15
1.3.1 Status Status 12-13
1.3.2 domestic research 13-15
1.3.3 problems main contents of this paper 15
1.4 15
1.5 dissertation organization 15-16
1.6 Summary 16-17
chapter related technologies 17 - 29
2.1 based testing technology components 17-18
2.1.1 component testing with the traditional distinction between software testing 17-18
2.1.2 component -based the purpose of software testing 18
2.2 regression testing techniques 18-20
2.2.1 regression testing process 18-19
2.2.2 regression Testing method 19-20
2.2.2.1 regression testing based on the full implementation of 19
2.2.2.2 risk-based regression test cases using 19-20
2.2.2.3 modify the code based regression testing 20
2.2.3 regression testing based components 20
change impact analysis 2.3 20-24 <br / > 2.3.1 change impact analysis technology architecture 21-22
2.3.1.1 change impact analysis method based TeCFRA 21-22
2.3.1.2 based on the impact of changes in CIT analysis 22
impact of changes 2.3.2 source code analysis 22-24
2.4 for test case generation technology path 24-27
2.4.1 static symbolic execution method perform basic principles 25-27
2.4.1.1 symbol perform sample 25
2.4.1.2 symbol 25-27 <br / > 2.4.2 randomly 27
2.5 Summary 27-29
The third chapter analyzes the impact member changes 29-45
3.1 component changes impact analysis step nbsp 29-30
3.2 generates the control flow graph ; basic structure nbsp 30-36
3.2.1 control flow graph ; 30-31 <br / > 3.2.2 control flow graph storage structure 31
3.2.3 control flow graph generation algorithm 31-35
3.2.4 loop control flow graph complexity 35-36
3.3 changes affect rules 36-37
generate 3.4 component dependency matrix 37-43
3.4.1 direct dependency 37-40
3.4.2 adjacency matrix 40
generate dependency matrix components 3.4.3 40-43
3.5 Summary 43-45
Chapter members regression test case generation generate 45-53
4.1 component path set 45-47
4.1.1 basic path 45
4.1.2 test path coverage based regression testing 45-46
4.1.3 generated path set 46-47
4.1. 3.1 The basic path set 46
4.1.3.2 Added path set 46-47
4.2 component regression test path generation 47-49
4.2.1 change point weights set 47-49
4.2.2 regression test path generation 49
4.3 test case generation 49-50
4.4 component regression test case generation 50-51
4.5 perform regression testing 51
4.6 Summary 51-53
Chapter members achieve regression testing tool and experimental analysis 53-71
5.1 system analysis 53-54
5.2 architecture design 54-55
5.3 system implementation 55-59
5.3.1 generated component control flow graph 56-57
5.3.2 change impact analysis 57
5.3.3 generate regression test path set 57-58
5.3.4 generate regression test suite 58-59
5.3.5 regression testing 59
5.4 experimental results and analysis 59-69
5.4.1 experiment 59-63
5.4.2 experiment II 63-66
5.4.3 experiment III 66-69
5.5 summary 69-71
Chapter VI summary and Outlook 71-73
6.1 This article summarizes the main work 71
6.2 next phase outlook 71-72
6.3 Summary 72-73
Thanks 73-75
references 75-81
Appendix 81
Related dissertations
- Research on the Network Control Andkey Components in the Time-Triggered Ethernet
- Research of Ontology-based Component Description and Intelligent Retrieval
- Application Research on the Kernel Fisher Method and Its Component in Image Recognition
- The Design and Implementation of Information Dissemination Terminal Module Component Based
- Research on facet reusable component library based on
- Development and Application of Component Based on JSF2and HTML5
- Research on Combinatorial Testing Technique and Its Application
- Research of Component Supported Digital Media Middleware Technology
- On the Component of the Crime of Concealing or Disguising Criminal Gains and Relationship with the Upstream Crime
- Morphology of Aircraft and in Sculpture Sci-Fi Art
- Study on Chinese Characters in Chinese Characters a Systematic Approach
- The Research on Component, Function and in Vitro Culture of Hemocytes from the Mitten Crab, Eriochier sinensis
- Study on Kitchen and Bathroom Applications in Industrialization of Residential Interior Decoration
- A Study on the Structural Carpentry System of the Main Hall of Mei Temple in Zhaoqing
- Component Based Highway E-information Management System
- Modified Bitumen of Natural Asphalt's Pavement Performance Research
- Study on the Comprehensive Performance of Road Asphalt
- The Design of Satellite ACS Software Architecture and Key Component Based on Software Bus
- Research of ERP System for Small and Medium-sized Manufacture Enterprises Based on Component and Business Process Driven
- Structure Design and Performance Study of Three-layer PI/TiO2Composite Films