Study and Application of Unit Testing Based on Symbolic Execution and Genetic Algorithm
- Author
- ZhaoHuiJuan
- Advisor
- SunWenHui
- School
- Beijing Jiaotong University
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 99
- Citations
- 1
- Software Testing
- parameterized unit test
- Symbolic Execution
- Genetic Algorithm
- simulated annealing algorithm
Abstract
ABSTRACT:With the rapid development of software technology, the quality of software has been the subject of the software industry. Software testing which is an important means of guaranteeing software quality plays a vital role in the process of software development. Software testing occupies more than 50 percent of the cost in software projects. In recent years, testing has gradually become the hotspot in the software field because of its complexity and importance. Improving the efficiency and performance of software testing is of great significance for the software quality and the process of software development.This paper introduces the basic methods of software testing and the importance of automated unit testing. Also this paper describes the process of parameterized unit testing which uses the technology of symbolic execution. Symbolic execution is an importantly formal and automated analysis technique. It plays an import role in automated testing. During the development of symbolic execution, Dynamic symbolic execution is arisen because of the drawbacks of symbolic execution. While testing the program, Dynamic symbolic execution makes the actual execution and symbolic execution simultaneously. To generate test cases, we should combine the symbolic execution with constraint solver. In this paper, Pex is selected to do experiment. Pex is a parameterized unit testing software which is implemented by the technology of DSE. From the experiment, we can validate the advantages of the automated unit testing.In theory, symbolic execution can achieve absolutely code coverage. However, because of the complexity of the program, it is difficult to achieve complete coverage of the code. To address this problem, this paper describes the genetic algorithm in the field of software testing, also it describes the genetic algorithm which is combined with the simulated annealing algorithm. Finally, this paper gives an experiment of a typical example to validate the performance of the improved genetic algorithm.
Table of contents
Acknowledgements 5-6
summary 6-7
ABSTRACT 7-10
1 Introduction 10-16
1.1 Background 10-11
1.2 purpose and significance 11
1.3 Research and development trend 11-14
1.3.1 software test development status its trend 11-13
1.3.2 Symbol perform research status and development trend 13-14
1.4 papers organizational structure 14-16 <br / > 2 Software Testing Overview 16-25
2.1 software testing principles nbsp the; 16-17
2.2 software testing classification 17-22
2.2. a black-box testing and white box testing 17-19
2.2.2 dynamic testing and static testing 19-22
2.3 method for automated testing technology 22 - 24
2.4 Summary 24-25
based on symbolic execution of parameterized unit test 25-45
3.1 basic principle of symbolic execution 25-33
3.1.1 control flow graph and control dependency analysis 26-27
the 3.1.2 symbol to perform basic principle 27-30
3.1.3 symbolic execution tree nbsp 30-33
3.2 symbolic execution; 33-34
of 3.3 automated unit test 34-44
3.3.1 Overview of unit test 34-36
3.3.2 parameterized unit test basic principle 36-40
3.3.3 parameterized unit testing based on dynamic symbolic execution 40-44
3.4 Chapter Summary 44-45
genetic algorithm-based search strategy 45-56
4.1 genetic algorithm 45-49
4.1. a genetic algorithm implementation process 46-48
4.1.2 Genetic Algorithms exist 48-49
4.2 simulated annealing algorithm 49-50
4.2.1 simulated annealing algorithm thinking 49
4.2.2 simulated annealing algorithm steps described 49-50
4.3 annealing genetic algorithm 50-55 <br / > 4.3.1 Genetic improvement of operator 52
4.3.2 fitness function structure 52-55
4.4 Chapter Summary 55-56 <br / > 5 experiments and analysis 56-69
5.1 parameterized unit test tool for experimental analysis 56-61
5.2 Genetic algorithms experimental analysis 61-67 <br / > 5.2.1 tested program selection 61-63
5.2.2 Experimental results the 63-66
5.2.3 Experimental results Analysis 66-67
5.3 Chapter Summary the 67-69
6 summarizes the outlook to References 69-71
71-74
Appendix A 74-76
Appendix B 76-78
of resume 78-80
dissertation data sets 80
Related dissertations
- The Study of Flight Sequencing Solutions at Terminal Based on Simulated Annealing Geneticalgorithm
- Automatic Generation of Test Data Based on Heuristic Search Algorithm
- Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
- Study on Wind Speed Soft Sensor for the Wind Power Generation System
- Research on the Investment Decision of Chinese Financial Market Based on Chaos Theory
- Research of Short Selling Trading Strategies Based on Copula Theory
- Modeling and Optimization Method Research of Bundle-size Pricing for Online Content
- Study on Partner Selection and Coordination Problem in Green Supply Chain Network
- Research on the Model of Joint Managed Inventory Based on Genetic Algorithm with the OEM Enterprise
- Study on Measurement of Aviation High-tech Enterprises Versatile Personnel Competency Position Fit
- A Study on China’s Commercial Bank Assets Allocation Based on the Stochastic Programming Model
- Design of Arbitrage Strategy Based on Stock Index Futures
- Research on Optimization for Reconfigurable Facilities Layout of Cellular Production
- A Study of Early Warning System of New Media Events Based on New Genetic Algorithm
- Bridge Health Monitoring System Based on Damage Analysis
- Research of Control System and Scheduling Algorithm of Intensive Automatic Shelves
- Research on Industrial Time Delay Object Based on Model Prediction Control
- Study on Nonlinear Dynamic Modeling Measurement and Control Problems for Precision Pointing Mechanisms
- Research on Intelligent Air Combat Decision Making System Based on Conflict Analysis
- Design and Simulation of Fractional Order Controller