Research on Regression Testing Selection
- Author
- YouLiang
- Advisor
- LuYanSheng
- School
- Huazhong University of Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP311.53 Software Maintenance
- Degree
- Doctoral dissertation
- Year
- 2012
- Downloads
- 182
- Citations
- 2
- Regression testing
- regression testing selection
- Java bytecode
- control flowgraph
- Incremental compilation
Abstract
During the develop phase and maintain phase of the software project, it need change software to enhance the functionality and fix the bugs of the software project. After the programmer finishes the coding works for the new version software, it need run regression testing for validating the diff between the old version and new version software. In general, the regression testing process rerun all test cases in the regression testing suite. But the regression testing is the expensive phase of the software testing, the optimization regression testing techniques can save the total costs of the regression testing.The regression testing selection(RTS) is the most important technique in the optimization regression testing techniques. The regression testing selection technique diffs between the old version and new version software, and selects all test cases into the selected regression testing suite that cover the diff portions of the software. The process of optimization regression testing do not rerun all test cases in the regression testing suite, but only rerun the selected regression testing suite. The optimization regression testing saves the total costs by saving the numbers of rerunning test cases.The booming of the Java virtual machine platform and the rapid rate of adoption of the component-based development and continuous integration set new challenges for the regression testing selection techniques. To tackle these three new challenges, the new regression testing techniques must have bytecode-based, incremental and object-oriented properties.Based on the analysis for the full Java bytecode instructions set, this paper presents a bytecode based algorithm to compute the Control Flow Graph(CFG). The CFG algorithm does not need Java source code and can directly compute CFG from Java bytecode. It also presents a CFG-based regression testing selection algorithm. The CFG-based regression testing selection algorithm directly analyzes the bytecode of the old version and new version of the software, and then compute control flow graphs. It compares the old version and new version control flow graphs of the software and outputs the diff. Finally, it selects all test cases in the regression testing suite that cover the diff portions of the software and outputs the selected regression testing suite. The algorithm supports full Java bytecode instructions set and does not need the source code of the software, especially it supports the exception feature of the Java programming language.The dependency relationship is composed of the inheritance relationship and use relationship in the Java programming language. Based on the automatically created and updated dependency relationship information, this paper presents an incremental compilation algorithm for the Java programming language. Comparing with the batch compilation algorithm, the incremental compilation algorithm can avoid redundant recompilation works to save total compilation costs. Based on the Java incremental compilation algorithm, it presents a class level regression testing selection algorithm. Because the incremental compilation algorithm outputs all recompiled bytecode files that is composed of the class level diff between old version and new version of the software, the class level regression testing selection algorithm only selects all test cases in the regression testing suite that cover the diff portions of the software and output selected regression testing suite. The class level regression testing selection algorithm not only supports the inheritance feature of the object-oriented Java programming language but also have incremental property. The cost of the class level regression testing selection algorithm is proportion with the size of diff portions between old version and new version of the software and is not proportion with the total size of the software. Because the size of diff is much smaller than the total size of the software in general, so the class level regression testing selection algorithm has incremental property and is more efficient that the batch algorithm.The control flow graph based regression testing selection algorithm and class level regression testing algorithm both need syntax based diff between the old version and new version of the software. This paper presents a syntax based diff algorithm that output the difference of the old version and new version in bytecode format. The syntax based diff algorithm converts the old version and new version bytecode into the XML data structure at first, and then compares the old version and new version XML data structures and outputs the syntax based diff. The non syntax based diff algorithm only assumes the Java program to be the simple text files and totally ignores the syntax information of the Java programming language. The non syntax based diff algorithm outputs non syntax diff that is composed of inserted, deleted and changed text lines. But the syntax diff algorithm outputs syntax diff that contains full Java syntax information and fulfills the needs of the regression testing selection algorithms. It also presents the method that decomposes the syntax diff into atomic change set, and also analyzes the differences of the binary compatibility and source compatibility of the atomic change.
Table of contents
Summary 4-6
Abstract 6-10
1 Introduction 10-23
1.1 Background 10-15 <br / > 1.2 domestic and foreign research status 15-20
1.3 content and objectives 20-21
1.4 The paper is 21-23
2 based on word section code control flow graph regression test selection algorithm 23-60
2.1 Overview 23-25 ??
2.2 bytecode -based structural control flow graph algorithm 25-35
2.3 bytecode control flow graph based on regression test selection algorithm 35-39
2.4 experimental Analysis 39-58
nbsp 2.5 chapter Summary ; 58-60
3 class hierarchical regression test selection algorithm 60-87
3.1 Overview 60-61
3.2 incremental compilation algorithms JavaIncrementalCompiler 61-71
3.3 class hierarchy regression test selection algorithm 71-75
3.4 experimental Analysis 75-85
3.5 Summary 85 -87
4 change algorithm based grammar 87-121
4.1 Overview 87-88
4.2 XML data structure represents a Java bytecode 88-95
4.3 changes the algorithm based on XML data structure 95-100
atom 4.4 Java language change set 100-104
4.5 experimental Analysis 104-119
4.6 Summary 119-121
5 systems implementation technology 121-134
5.1 system architecture 121-124
5.2 detailed design 124-128
5.3 running tests 128-133
5.4 summary 133-134
6 summary and Outlook 134-137
6.1 paper summarizes 134-135
6.2 Prospect 135-137
Thanks 137-138
References 138-145
Related dissertations
- Research on Combinatorial Testing Technique and Its Application
- Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
- The Design and Implementation of Test Suit Augmentation Based on Predicate Adaptive Random Testing
- Research and Implementation for Method of Component Regression Testing
- Research on UML Activity Diagram-based Software Automatic Regression Test Case Generation
- The Study of Test Case Secletion Algorithm Based on Requirement Priority in Regression Testing
- Implementation of an Automated Testing Tool Based on Java
- The Research and Implementation of Automated Testing System on Power System Real Time Database
- The Research of Regression Testing for Software Equipment
- Based on the QTP WEB Program Testingsystem Development and Research
- Research on Repairing GUI-Directed Regression Test Scripts
- Design and Implementation of Android Operating System Software Test Automated
- The Research and Implementation of Conference Call Software Testing System for Android Platform Smartphone
- DSP Kernel IP Verification Via FPGA Incremental Compilation
- Research on Analysis and Testing Techniques of Object-Oriented Programs
- Research on Dependence Analysis and Software Testing
- Studying the Fault Localization Method for Regression Testing in Oriented-Objects Software
- Study on the Feasibility of Functional Regression Testing and Coordinated Test in Distributed Environment
- Design and Implementation of Automated Regression Testing Tool for Huge Application Software Systems
- Rules Driven Test Framework