Study in Automation Generation of Test Data Based on Simulated Annealing Genetic Algorithm
- Author
- ShaoJie
- Advisor
- WangZuChao
- School
- Chinese Geology University (Beijing)
- Major
- Applied Mathematics
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 160
- Citations
- 1
Abstract
Software testing is an important measure to assure quality and reliability of software. Software must be tested to ensure the practical application of its normal work. Testing should be able to find any defects in software, at the same time,it should also be efficient and low-cost. However, software testing is a complex process, which need to consume 1/3 time and take 40% cost of entire software development approximately. Therefore, raising the automation level of software testing is very important method to ensure software development quality and reduction software development cost.This paper focuses on automatic test data generation for path testing using genetic algorithms. That is a Program P and a target Path W, D is the set of all possible inputs, the goal is to find input values x (?) D, that will traverse the target path W. It is also an important method to test the structure of programs. Software testing data are some input data which are designed elaborately based on specifications in the software development stages and inner logic of software. The software defects can be detected though inputting test data to run program.Firstly, the paper has introduced the basic theory of software testing and automatic test case generation technology, and presented these method’s merits and shortcomings. The paper has explained with emphasis measures the automatic test data generation for test path technology and some realization methods. Studies of automatic test data generation technology can reduce the high manual test cost and the same time decrease huge manpower and enhance the reliability of testing process. The paper summed up the test data automatic generation technologies in recent years, and according to the systematical sum-up of a variety of methods and techniques, extracted the methods and techniques used in this paper.Subsequently, this paper introduces the basic principle of genetic algorithm and simulated annealing genetic algorithm respectively, and analyzes the advantages and shortcomings of each one. Because genetic algorithm runs short of variety and has the problem of precocity, this paper proposes a new algorithm-- Simulated Annealing Genetic Algorithm (SAGA) as the core of the automatic test data generation. This algorithm can speed up the convergence rate and improve the efficiency of the search. The article also introduces the Program Instrumentation based Branch-Cover test cases generating model for path testing.At last,as an example, we generate testing data for the program of software testing. The system can generate the test data for the appointed path accurately, and has better convergence. And by the experiment that is designed in this paper, the advantage of the system is proved.
Table of contents
Abstract 5-6
Abstract 6-11
1 Introduction 11-15
1.1 background, purpose and significance of 11-12
1.2 Software Testing Research 12-13
1.3 content and paper structure 13-15
1.3.1 research 13-14
1.3.2 thesis structure 14-15
2 software testing and automatic test data generation technology 15-27
2.1 Software Testing Overview 15-16
2.1.1 of the basic concepts 15
2.1.2 software testing purposes 15-16
2.1.3 software testing principles 16
2.2 software testing classification 16-24
2.2.1 static test 17
2.2.2 Dynamic Testing 17-23
2.2.2.1 black-box testing 18
2.2.2.2 white box 18-21
2.2.2.3 Basic path testing 21-23
2.2.3 software testing steps 23-24
2.3 Automatic Test Data Generation 24-26
2.3.1 for function test data automatically generated 24-25
2.3.2 for path test data automatically generated 25-26
2.4 Summary 26-27
3 hybrid genetic algorithm and its improved 27-34
3.1 genetic algorithm elements of computing process 27-31
3.1.1 elements 27-29
3.1.1.1 chromosome coding 27
3.1.1.2 of individual fitness assessment 27-28
3.1.1.3 genetic manipulation 28-29
3.1.2 computing process 29-31
3.2 hybrid genetic algorithm 31-33
3.2.1 simulated annealing algorithm elements 31-32
3.2.2 simulated annealing algorithm for computing the process 32-
3.2.3 Annealing Genetic Algorithm 32-33
3.3 Summary 33-34
4 Annealing Genetic Algorithm for Automatic Test Data Generation 34-46
4.1 test data automatically generated framework 34-35
4.2 Automatic Test Data Generation model 35-37
4.3 parameter coding principle 37-38
4.4 to adapt to function construction 38-40
4.4.1 branch function 38-39
4.4.2 fitness function 39-40
4.5 genetic operators improve 40-42
4.5.1 multi-point equalization of cross - 41-42
4.5.2 mutation operation 42
4.6 annealing genetic algorithm design 42-45
4.7 Summary 45-46
5 experiments and analysis 46-55
5.1 system 46-49
5.2 results 49-54
5.2.1 annealing genetic algorithm to generate test data 49-51
5.2.2 genetic algorithm to generate test data 51-52
5.2.3 two algorithms to generate test data comparison 52-54
5.3 Summary 54-55
6 Conclusion 55-57
References 57-60
thank 60-61
Appendix 61
Related dissertations
- The Application of Hybrid Genetic Algorithm in Rectangular Strip Packing Problem
- Theories and Methods of Evolutionary Generation of Test Data for Path Coverage
- Research on PAPR Reduction Optimization Algorithm in OFDM Systems
- Automatic path-oriented test data generation method
- Automatic Test Data Generation for Path Testing Using Ant Algorithms
- Analysis and Design of Unit Test Useage Automated Generation
- Research on Automatic Test Data Generation Based on Simple Particle Swarm Optimization
- Research on Test Data Generation Based on Simulated Annealing Genetic Algorithm
- 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