Automatic Test Case Generation for Path Testing Using Genetic Algorithms
- Author
- WangPeng
- Advisor
- SunHui
- School
- Dalian Jiaotong University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 276
- Citations
- 2
- Automated Test Case Generation
- Path - oriented test
- Software Testing
- Genetic Algorithms
- Improved dual - population adaptive genetic algorithm
Abstract
Increasing the size of the computer software, the complexity is also rising, is more and more serious consequences of software errors, the quality and reliability of the software has attracted people's attention. In modern software engineering, the various stages of the software development, strict quality assessment and testing should be performed. Software testing as a key link of software quality assurance. This paper studies a path-oriented test cases automatically generated. Oriented path in software testing test case generation Problem Description: Given a program P and P a path W Let P input space D requirements (?) D, such that P to (?) For input running path through W. Study of test cases automatically generated, you can reduce the high cost of manual testing, alleviate testers have to pay a lot of labor, while the trustworthiness of the test process. Test case automatic generation method of research-oriented path to automated software testing process, has a very important practical significance. This paper first introduces the basic theories and methods of software testing and automatic generation of technology and path-oriented test cases for functional test cases automatically generated. Which focuses on a path-oriented automatic test case generation technology and existing implementations. The paper then describes the basic principles of the standard genetic algorithm implementation steps, and the advantages and disadvantages. Existing standard genetic algorithm prone to premature convergence, the diversity of individuals and poor, the authors propose an improved dual-population adaptive genetic algorithm (DPAGA), the introduction of a new population classification algorithm, and the different characteristics of the various populations. adaptive evolutionary strategy, in order to speed up the evolution and maintain the diversity of the population, the corresponding populations of gene repair strategy and gene synchronization strategy, the Golden Ratio 0.618 to the migration of individuals in a population in population migration strategy introduced exchange. Subsequently, the paper also describes two for path-oriented test cases automatically generated system improvements are genetic operators with multi-point crossover and average crosspoint and a variable length string of bits, additional test cases. Finally, to solve these critical technologies, the author as an example a simple applet system generates test cases automatically generate test cases using the DELPHI language development. The experimental results show that the more practical and effective software tool, able to complete the specified path test cases automatically generated. Of course, there are some problems need to be improved, the authors address these issues in the concluding remarks pointed out the direction and focus of the next study.
Table of contents
Summary 3-4
Abstract 4-5
directory 5-8
Introduction 8-11
first the chapter Software Testing Overview 11-19
1.1 software testing defined 11
1.2 software testing technology classification 11-13
1.2.1 static test 11
1.2.2 Dynamic Testing 11
1.2.3 black box testing 11-12
1.2.4 white-box testing 12-13
1.2.5 gray-box testing 13
1.3 Software Testing Stages 13-15
1.4 software testing objectives and principles 15-16
1.5 software testing technology development direction 16-17
1.6 software test automation 17-18
Chapter Summary 18 - 19
test cases automatically generated technical 19-25
2.1 functional test cases automatically generated technology 19-20
2.2-oriented path automatic test case generation technology 20-24
2.2.1 Stochastic Method 20
2.2.2 Static method 20-21
2.2.3 Dynamic Law 21-23
2.2.4 heuristics 23-24
Chapter Summary 24-25
Chapter genetic algorithm and its improved 25-41
3.1 genetic algorithm 25-35
3.1.1 the basic idea of ??the genetic algorithm and computation process 25-27
3.1.2 Genetic the algorithm implementation techniques 27-33
3.1.3 characteristics of the genetic algorithm 33-34
3.1.4 Genetic Algorithm Convergence 34 <br / 3.1.5 Genetic algorithm and improved 34-35
improved 3.2 dual population adaptive genetic algorithm 35-40
3.2.1 Dual Population design 35-36
3.2.2 Improved algorithm selection policy the improved 36-37
3.2.3 algorithm adaptive crossover and mutation strategy 37-39 <br / > 3.2.4 populations between individual migration strategy 39
3.2.5 gene repair, synchronization strategy 39-40
Chapter Summary 40-41
the Chapter DPAGA generation path-oriented test case strategy 41-49
4.1 DPAGA algorithm structure test case system model 41-42
4.2 parameter encoding rules nbsp 43-44
4.3.2 fitness function 42-43
4.3 fitness function constructed the 43-45 the 4.3.1 branch function
; 44-45
4.4 for algorithm improvements of test cases generated DPAGA 45-47
4.4.1 improved genetic operators with multi-point crossover and average cross point 45-46
4.4.2 bit string variable length and initial test cases additional strategies the 46-47
4.5 DPAGA algorithm design. achieve 47-48
4.5.1 DPAGA flowchart 47
the 4.5.2 DPAGA basic steps 47-48
Chapter Summary 48-49
fifth. chapter The experimental results and analysis 49-56
5.1 Experimental Procedure 49-52
5.1.1 program analysis 49-50
5.1.2 path Select 50-51
5.1.3 program inserted pile 51-52
5.1.4 DPAGA, the specific set of 52
5.2 effectiveness analysis 52-55
Chapter Summary 55-56
conclusion 56-57
Reference 57-60
for Master the degree issued during the academic 60-61
Acknowledgements 61
Related dissertations
- Research on Testing Model and Automated Testing of Web Application
- Test Case Generation Model Based on Bayesian Network and Genetic Algorithms
- Test Case Generation and Management
- Research on Test Data Automatic Generation
- Analysis and Design of Unit Test Useage Automated Generation
- Research on Technology of Object-Oriented Software Testing
- Automatic Test Cases Generantion of Class Testing from UML State Diagrams
- Research of the Method to Create Test Case Based on UML Activity Diagram Model
- The Logistics Center Location Planning of Tralin Group Straw Supply
- Research on Elevator Group Control System Scheduling Policy and Simulation Design
- Study on MDF Continuous Press Position Servo System Modeling and Intelligent Control
- Study on Modeling and Optimizing of Supply Chain Multi-time Periods Integrated Plan Under Uncertain Environment
- Research and Application on the Hybrid Colony Algorithm
- The Research and Application of Shuffled Frog Leaping Algorithm Based on Average Value
- Research on Production Scheduling Problem Based on Order Disturbance
- Decision and Analysis of Metallurgical Products Price Based on Artificial Neural Networks
- Modified Shuffled Frog Leaping Algorithms and the Application of Multi-objectives Optimization
- Research on Closed-loop Logistics Network Design Based on Low Carbon Economy
- Friction Compensation and Adaptive Control for the Linear Single Inverted Pendulum
- Design of H2/H∞Robust Control Based on Multi-objective Genetic Algorithms