Research on Path-wise Automation Generation of Test Data Based on Simulated Annealing-Quantum Genetic Algorithm

Author
JiHaiZuo
Advisor
SunJunMei
School
Hangzhou Normal University
Major
Computer Applications
Classification
TP311.53 Software Maintenance
Degree
Master's thesis
Year
2012
Downloads
123
Citations
0

Request the full text

Abstract

With the increasing scale and complexity of software products, the research of automatic software testing technique was given more and more attention by academia and industrial community. Automatic generation of test data played an important role in automating tests, which was realized that could radically reduce the cost of software and assure the quality of software. At present, many domestic scholars have done a great deal of research on this subject. Although there are a number of algorithms and techniques which have been able to automatically generate test data, but they are not mature yet, and need to further investigation and improvement.The basic path testing is a very effective method to generate test data through a lot of research and analysis, but the method requires a high performance evolutionary algorithm as the basis. Therefore, this paper proposes to employ the quantum genetic algorithm as the core algorithm, and analyzes the disadvantages of which is used to achieve test data automatic generation, and then improves its shortcomings. Firstly, the coding of quantum chromosomes changes from vector coding to angle coding, which only stores one real number, and greatly reduce the storage space; Secondly, a new dynamic rotation angle strategy ensures that the excellent characters in the population can be better genetic, the offspring find the optimal solution quickly; Thirdly, Hadamard door mutation strategy is adopted to increase the diversity of population; Finally, quantum genetic algorithm and simulated annealing algorithm are combined effectively, which solve the phenomenon of "premature convergence" successfully. The improved algorithm is named "Simulated Annealing-Quantum Genetic Algorithm", referred to as the SA-QGA. Test results based on typical complex continuous functions show that SA-QGA is feasible and effective.At last, this paper designs and achieves a framework of Path-wise test data automatic generation based on the SA-QGA. The framework is divided into three parts:the test environment module, SA-QGA module and test run environment module. The experiment shows that the system can generates test data covered the specified path accurately, which is verified by the triangle classification procedures, and the results show that the system has better searching and convergence performances.

Table of contents

Thanks 4-5 Summary 5-6 Abstract 6-11 1 Introduction 11-21 1.1 background and Significance 11-12 1.2 research status 12-17 1.3 content of this paper organizational 17-18 1.4 article structure 18-21 Category 2 software testing and test data generation technology automatically 21-33 2.1 software testing classification 21-27 2.1 .1 static test 21-22 2.1.2 dynamic test 22 2.1.3 Black box testing 22-23 2.1.4 white box testing 23-27 2.2 automatic test data generation method 27-31 2.2.1 automatically generate test data for functions 28 2.2.2 -oriented architecture to automatically generate test data 28-31 2.3 Summary 31-33 3 simulated Annealing - quantum genetic algorithm 33-51 3.1 quantum genetic algorithm 33-37 3.1.1 qubit 34-35 3.1.2 quantum gates said 35-37 <br / > 3.2 improved Quantum genetic Algorithm 37-43 3.2.1 angle encoder qubit 38-39 3.2.2 new dynamic rotation angle strategy 39-40 3.2.3 Hadamard gate (H door ) mutation 40-41 3.2.4 improved quantum genetic algorithm flow 41-43 3.3 simulated annealing algorithm constituent elements 43-44 3.3.1 simulated annealing algorithm 43-44 3.3.2 simulated annealing algorithm flow 44 3.4 simulated Annealing - quantum genetic algorithm 44-49 3.4.1 SA-QGA algorithm described advantage 45 3.4.2 SA-QGA algorithm 45 - 46 3.4.3 each algorithm performance comparison test 46-49 3.5 Summary 49-51 4 based on simulated annealing - quantum genetic Algorithm automatic Test Data generate 51-65 4.1 test data generation framework 51-52 4.2 test program static analysis 52-56 4.2.1 program insert pile Design 52-53 4.2.2 eNCODING 53-54 4.2.3 fitness function design 54-56 4.3 SA-QGA algorithm design 56-57 4.4 SA-QGA test data generation algorithm implemented in the framework of 57-62 4.4.1 population initialization 58 4.4.2 to calculate the fitness value of the corresponding function 58-59 4.4.3 best individual design 59 4.4.4 quantum genetic Operators realization 59-61 nbsp 4.4.5 annealing operation ; 61-62 4.5 algorithm time analysis 62-63 4.6 Summary 63-65 5 simulation results and analysis 65-77 5.1 to generate experimental data structure 65-68 5.2 automatically generates test data analysis results 68-74 5.2.1 simulated Annealing - quantum genetic algorithm to automatically generate test data sampling 68-71 5.2.2 quantum genetic algorithm to generate test data sampling 71 -72 5.2.3 SA-QGA and QGA test data generation contrast 72-74 5.3 the time complexity of verification 74 5.4 Summary 74-77 6 Conclusion and outlook 77-79 6.1 Conclusion 77-78 6.2 Prospects 78-79 reference literature 79-86 pursue graduate studies during 86

Related dissertations

  1. New Methods and Applications to Analysis and Calculation of Water Environment and Water Resource
    WangJiaYang ·Chengdu University of Information ·2007 ·Master's thesis
  2. Research on Product Lifecycle Modeling and Configuration Optimization for Mass Customization
    YuBiao ·Hefei University of Technology ·2013 ·Doctoral dissertation
  3. Coordinated Control of Distributed Multi-agent Systems and Applications
    HouJian ·Zhejiang University ·2013 ·Doctoral dissertation
  4. Research and Application on Quantum Genetic Algorithm
  5. The Application of Hybrid Genetic Algorithm in Rectangular Strip Packing Problem
    ZhengMingYue ·Hefei University of Technology ·2013 ·Master's thesis
  6. Research on Learning Hidden Variables Dimensionality of Bayesian Networks and Its Application
    ZhangZan ·Hefei University of Technology ·2013 ·Master's thesis
  7. A Research on Task Scheduling Algorithm of Cloud Computing Based on Genetic Algorithm
    HuangZuo ·Xiamen University ·2014 ·Master's thesis
  8. Heuristic Chinese Sentence Compression Algorithm Based on Hot Word
    HanJing ·Xiamen University ·2014 ·Master's thesis
  9. Improved Quantum Genetic Algorithm and Its Application in Image Matching
    SunHaiChao ·Harbin Institute of Technology ·2012 ·Master's thesis
  10. Investigation and Evaluation on Large Scale p-median Problem
  11. Research on Mapping Techniques for Embedded Sofeware of MPSoC
    ZuoQiao ·Donghua University ·2014 ·Master's thesis
  12. Research on PAPR Reduction Optimization Algorithm in OFDM Systems
    ZhouYan ·Northeastern University ·2011 ·Master's thesis
  13. Research on Algorithm of quantum genetic algorithm and the chaotic particle swarm optimization of node localization in wireless sensor network based on
    ZengJing ·Jiangxi University of Technology ·2013 ·Master's thesis
  14. The positioning of wireless sensor networks based on Improved Quantum Genetic Algorithm
    LiangYunFei ·Jiangxi University of Technology ·2013 ·Master's thesis
  15. Analysis of Interference Signal in Electronic Experiment and Design of Anti-jamming Simulation
  16. Research on Optimal Location and Parameter Setting and Damping Control Strategy of TCSC
  17. Study of3D Imaging Technology for the ICF Application
    XiaJianPing ·Hunan University ·2013 ·Master's thesis
  18. An Intelligent Control Method for the Shifting of the Dry-type DSG
    LiQiuMei ·Central South University ·2013 ·Master's thesis
  19. Research on Train Operation Control Optimization Algorithm
    FanYingYing ·Beijing Jiaotong University ·2014 ·Master's thesis
  20. Optimization of Rolling Schedule Base on Quantum Genetic Algorithm and Its System Development
    ZhongWeiZhou ·Yanshan University ·2013 ·Master's thesis