An Application Research for the Automatic Test Data Generation Technology Based on Genetic Algorithm

Author
BaiKai
Advisor
CuiDongHua
School
Taiyuan University of Technology
Major
Computer Software and Theory
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2010
Downloads
172
Citations
2

Request the full text

Abstract

With the continuous expansion of the scale of modern software architecture and software complexity continues to improve and promote the continuous development of software test automation technology, software test data generation technology as an important means to guarantee the quality of software products has been widely introduced into the study of software test automation . Automatic test data generation technology is a key part of the software unit testing automation software automated testing through automatic test data generation technology to reduce software costs and improve test efficiency. At home and abroad on automatic test data generation technology, although there have been some of the methods and the theory has been applied to the practice of automatically generated test data but is not yet mature, is still in the exploration stage constantly, so the automatic generation of test data The technical study has some theoretical significance and practical value. This article by analyzing the research-oriented path branch coverage testing technology and the automatic test data generation method is characterized by proposed combination of genetic algorithm is designed to achieve an automatic test data generation model, to achieve a comprehensive coverage of the test data paths branching unit tests automatically generated. The main work of this paper include: First on the background and significance of the topic, the status of the relevant theoretical research. The basic theory and techniques of software testing, the focus of the analysis based on the the path branch test methods and test data generation techniques. Then, introduce the basic concepts and features of the genetic algorithm, a detailed analysis of the process of genetic algorithms as well as an important factor affecting the genetic algorithm. Based on this analysis of the feasibility of using genetic algorithm to generate test data, the test data through the genetic algorithm to solve the optimization generates. After a detailed analysis of the genetic algorithm in the automatic generation of test data general application process and steps and path bifurcation analysis for the test program, fitness function, genetic operators sub design study proposed a genetic algorithm-based test data generation model, it needs to be done according to the actual path of the branch coverage test data automatically generated. Finally, the practicality and feasibility of the design genetic algorithm-based test data generation tool automatically model, run the validation tool model. Achieve program platform targeted experimental analysis of the basic factors in the genetic algorithm for test data generation and the generation efficiency of the genetic algorithm, by analyzing and comparing the experimental data to draw relevant conclusions.

Table of contents

Abstract 3-5 ABSTRACT 5-10 first chapter 10-16 1.1 research background and significance 10 -11 1.2 research status 11-13 1.3 The main thesis work 13 1.4 Thesis Organization 13-16 <br / > Chapter II software test case generation technology 16-28 2.1 Software Testing Overview 16-18 2.1.1 software testing development 16 <br / > 2.1.2 Definition and purpose of software testing 16-17 2.1.3 software testing methods classification 17-18 2.1.4 software testing process 18 2.2 test data generation method 18-20 2.2.1 black box data generation method 19 2.2.2 White-box testing data generation Method 19-20 2.3 Basic path testing methods 20-23 2.3.1 The basic idea of ??path testing 20 2.3.2 Program Flow Figure 20-21 2.3.3 path calculation method 21-23 2.4 Basic path testing method extension studies 23-26 2.4. a basic idea 23-24 2.4.2 lexical analysis 24-25 2.4.3 path test automatically generate the basic steps 25-26 2.5 Summary 26-28 chapter based on genetic algorithms automatic test data generation method research 28-50 3.1 Genetic Algorithms 28 -29 3.1.1 Genetic Algorithm Development and Research 28-29 3.1.2 GA features 29 3.2 genetic algorithm theory 29 -36 3.2.1 Basic Concepts 29-30 3.2.2 Coding 30-31 3.2.3 Stocks 31 3.2.4 The fitness function 31-33 3.2.5 Options 33 3.2.6 Cross-process 33-35 3.2.7 process of variation 35-36 3.3 Genetic Algorithm in test data generation theory and calculation processes 36-38 3.3.1 Genetic Algorithm in test data generation theory 36-37 3.3.2 Calculation of the basic genetic algorithm process 37-38 3.4 adaptive genetic algorithm and its improved 38-45 3.4 .1 adaptive genetic algorithm (AGA) 39-41 3.4.2 adaptive genetic algorithm (IAGA) 41-42 3.4.3 Analysis of experimental results 42-45 3.5 Genetic algorithm based automatic test data generation model 45-47 3.5.1 design ideas 45-46 3.5 .2 part 46-47 3.6 Summary 47-50 Chapter based on genetic algorithms for automatic test data generation model design and implementation 50 - 68 4.1 Automatic Test Data Generation Model Design 50-54 4.1.1 parameter coding design 50-51 4.1.2 nbsp fitness function design ; 51-52 4.1.3 GA part of the design 52-53 4.1.4 algorithm processes 53-54 4.2 Automatic Test Data Generation model realization 54-61 4.2.1 test program static analysis 54-56 4.2.2 individuals and populations set 56 <br / > 4.2.3 fitness function to achieve 56-58 4.2.4 Functions genetic operators to achieve 58-61 4.3 runs 61-65 4.4 Chapter Summary 65-68 Chapter Summary and Outlook 68-70 5.1 Summary 68 5.2 Prospects 68-70 References 70-74 Thanks 74-76 master's degree papers published during the directory 76

Related dissertations

  1. The Logistics Center Location Planning of Tralin Group Straw Supply
    ZhouXuan ·Nanjing Agricultural College ·2013 ·Master's thesis
  2. Research on Elevator Group Control System Scheduling Policy and Simulation Design
  3. Study on MDF Continuous Press Position Servo System Modeling and Intelligent Control
    HuangXiaoZhou ·Northeast Forestry University ·2013 ·Master's thesis
  4. Study on Modeling and Optimizing of Supply Chain Multi-time Periods Integrated Plan Under Uncertain Environment
    ZhuYanBo ·Northeastern University ·2013 ·Master's thesis
  5. Research and Application on the Hybrid Colony Algorithm
  6. The Research and Application of Shuffled Frog Leaping Algorithm Based on Average Value
    SongLei ·Gansu Agricultural University ·2013 ·Master's thesis
  7. Research on Production Scheduling Problem Based on Order Disturbance
  8. Decision and Analysis of Metallurgical Products Price Based on Artificial Neural Networks
  9. Modified Shuffled Frog Leaping Algorithms and the Application of Multi-objectives Optimization
    WangZuoRan ·Gansu Agricultural University ·2013 ·Master's thesis
  10. Research on Closed-loop Logistics Network Design Based on Low Carbon Economy
    ZhangPeng ·Yanshan University ·2013 ·Master's thesis
  11. Friction Compensation and Adaptive Control for the Linear Single Inverted Pendulum
  12. Design of H2/H∞Robust Control Based on Multi-objective Genetic Algorithms
    WangZuo ·Northeastern University ·2013 ·Master's thesis
  13. T-S Fuzzy Modeling and Control for Nonlinear Network Control Systems
  14. Research on Recommender System Applied in Open Network Learning Environment
    FangFei ·Anhui University ·2014 ·Master's thesis
  15. Simulation and Optimization of Crankshaft Production Line Based on Discrete System Simulation
    ZhangMin ·Hunan University ·2013 ·Master's thesis
  16. Research on Database Schema Matching Based on Instances Clustering
    ZhangZuoXin ·Harbin Engineering University ·2013 ·Master's thesis
  17. Liaocheng Mobile Corporation material management system optimization analysis
    LiXianHui ·Shandong Normal University ·2013 ·Master's thesis
  18. Research and Implementation of Agent-based Intelligent E-commerce System
    LiuJingLing ·Northeastern University ·2013 ·Master's thesis
  19. Model Based Testing Automation Framework of Data Pocessing System
  20. The Design and Implementation of the Air Transport System Based on Improved Genetic Algorithm
    GaoQing ·Jilin University ·2013 ·Master's thesis