Automatic Generation of Test Cases Based on Improved Genetic Algorithm
- Author
- YangQingPing
- Advisor
- MoZan
- School
- Guangdong University of Technology
- Major
- Management Science and Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 34
- Citations
- 0
Abstract
Automated testing is an inevitable trend of the development of software testing through automated testing tools script recording, playback, and other means of operation, greatly reducing repetitive manual operations and reduce the error rate. But now most of the automated testing tools for test execution, management and other aspects of the work generated in the test case automation is not perfect. Testers during software testing process, especially in the unit test is still used manual methods to design and generate the required test cases. When the large-scale and complex program execution path of the development process, the workload of manually write test cases, to construct a path full coverage of test cases is very difficult and error-prone, resulting in test efficiency is not high, which greatly affect the software development process. Automated test cases generated in this context, it is to improve some of the deficiencies of the hand-written test cases, which use artificial intelligence algorithms to automatically generate test cases with high coverage, generates use case efficiency advantages, research in recent years hot spots. However, due to the generation of test cases is an undecidable problems, coupled with the size and complexity of the program under test, general search algorithm has been greatly hampered. The genetic algorithm has a very significant advantage when dealing with uncertain search. The genetic algorithm is a learn biosphere mechanism of natural selection and evolution and development of highly parallel, randomized, adaptive search algorithm. It has good global search capability, but the search for local space is not very effective, and easy to produce premature convergence into a local optimum. In order to improve the shortcomings of the above genetic algorithm on the basis of previous studies to improve the shortcomings of the system automatically generate test cases based on genetic algorithm model; easy for the genetic algorithm premature convergence of genetic algorithm selection, crossover operator to improve and improved selection operator and elitist strategy combining to improve the search capabilities of a genetic algorithm in the local space and the overall operating efficiency; improved algorithm is applied to the test cases automatically generated, with concrete examples and contrast to improve the efficiency and effectiveness of the genetic algorithm and the traditional genetic algorithm to automatically generate test cases. The experimental data proved that the improved genetic algorithm is used to test cases automatically generated is feasible, efficient, compared with traditional genetic algorithm, to generate test cases on the efficiency and effectiveness have obvious advantages.
Table of contents
Summary 4-5
Abstract 5-7
directory 7-9
Content 9-11
first Chapter 1 Introduction 11-16
1.1 background and Significance the 11-12
1.2 research situation 12-14
1.3 topics and research 14-16
software testing theory the 16-24
2.1 software testing technical overview 16-17
2.2 software Testing classification and process 17-19
2.3 Automated Test Case Generation method 19-24
2.3.1 functional test cases automatically generated 19-20 < br / > 2.3.2 structure test cases automatically generated 20-24
Chapter genetic algorithm automatically generate test cases 24-41
3.1 Overview of genetic Algorithms 24 -26
3.1.1 genetic algorithm development stage 24-25
3.1.2 genetic Algorithms characteristics 25-26
3.2 genetic algorithm theory nbsp to ; 26-38
3.2.1 basic concept the 26-27 the
the 3.2.2 standard genetic algorithm process 27-29
3.2.3 affect genetic algorithm factors the the 29-38
3.3 genetic algorithms in test case generation 38-41
Chapter automatic generation of test cases based on improved genetic algorithm 41 - 47
4.1 application under test analysis 41-43
4.1.1 introduced the application under test 41
4.1.2 program static analysis 41-43
4.2 program plug installed and fitness function design 43-44
4.3 genetic operators selection and improvement 44-46
4.4 other elements of setting 46-47
Chapter experiments and results analysis the 47-59 5.1 part of the program to achieve
47-53
5.2 experimental Design 53 -56
5.3 analysis 56-59
conclusion to References 59-61
61-64
degree during the the papers nbsp 64-66
Acknowledgements 66-67
Appendix 1 basic single- point crossover strategy implementation code ; 67
Related dissertations
- Research on Testing Model and Automated Testing of Web Application
- Research and Application on Unit Testing Technology for Object Oriented Program by CppUnit
- Technology research and application of data packets Software Testing
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- Research on Web Service Testing Model and Testing Approach Based on Agent
- Analysis and Design of Automated-Testing Framework for E-Commerce System
- The Research and Design of Test Case Generation Tool Based on Constraint Programming
- Research on Test Plan of Development&Application and Its Technical Realization
- Design and Implementation of Embedded Software Testing System Based Qtopa
- Research on Software Test Module of Lead-free Solder Paste Printed Equipment
- Design and Realization of Process Engine’s Automated Testing Based on Workflow
- Testing for Selecting Atm Equipments Based on Event-Driven
- Research on Application of automatic test case generation based on Improved Genetic Algorithm
- N3806Mobile Phone Black Box Testing Management and Method
- Test Case Generation Model Based on Bayesian Network and Genetic Algorithms
- The Research and Implementation of Automated Testing System on Power System Real Time Database
- Nuclear power software testing research based on local continuity
- Test Case Generation and Management
- Website Design and Implementation of Mobile Phone Sales
- The Design and Implementation of Software Testing Architecture of Wireless Sensor Networks