An Automatic Test Data Generation Technique Based on Dataflow Analysis
- Author
- DengMingJie
- Advisor
- ChenRong
- School
- Dalian Maritime University
- Major
- Computer Science and Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 168
- Citations
- 1
Abstract
Software Testing plays increasingly important role to ensure the software quality in software development.Dataflow Testing is a white-box test technique that has been widely applied to test object-oriented software with sufficient code coverage.But the existing research work mainly cares the computation of method sequences,rather than feasible test data to run these sequences.That’s say they can’t support automatic testing. Although the existing random test data generators can create test data automatically,the generation process is blind yet essentially non-goal driven,it may generate unfeasible test data and thus fail to cover the intended testing requirements.To solve this problem,this thesis presents an automatic test data generation technique that takes the merits of genetic algorithm(GA) and dataflow analysis.Our method extends the dataflow testing technique in that it exploits the searching capability of GA with the aim to sufficiently cover the def-use pairs.This thesis starts with some concepts about software testing and the introduction of current techniques for generating test cases.Next we present our automatic dataflow testing method,which consists of the dataflow computation and the DTGA algorithm. Then we describe the design and implement of our protype system.Experimental results show that our method can work well on well on a variety of programs,outperform random generation and pure dataflow testing technique in terms of running time and coverage rate.In the end we conclude and suggest our future work.
Table of contents
Abstract 5-6
Abstract 6-10
Chapter 1 Introduction 10-14
1.1 Background and Development of 10-11
120 research 11
1.3 paper structure 11-14
Chapter 2 Software Testing Overview 14-22
2.1 software testing concepts 14-16
2.1.1 test case (Test Case) 14
2.1.2 testing requirements (Test requirement) 14-15
2.1.3 test the adequacy of the guidelines (the Test Adequacy Criteria) ; 15-16
2.2 software testing technology classification 16-17
2.2.1 static testing and dynamic testing 16-17
2.2.2 unit testing, integration testing, system testing, 17
2.3 testing technology introduced 17-19
2.3.1 control flow testing techniques based on randomized algorithms 17-18
2.3.2 Genetic Algorithm-based control flow test technology 18
2.3.3 Data Flow Testing technology 18-19
2.4 class automatic test 19
2.5 Summary 19-22
Chapter 3 Genetic Algorithm 22-28
3.1 The genetic algorithm is the basic concept 22-25
3.2 Genetic Algorithm process 25-26
3.3 testing techniques in genetic algorithm 26
3.4 Summary 26-28
Chapter 4, based on data flow analysis, automatic test technology 28-48
4.1 data stream to test the basic concepts 28-31
4.1.1 variable definitions and variable use 28-30
4.1.2 class test level 30-31
4.2 Class-based testing of graphical structure 31-37
4.2.1 method call level diagram and method of sequence generator 32-34
4.2.2 to control the flow diagram and class control flow graph 34-35
4.2.3 data type of chart (Data Type Structure Graph) 35-37
4.3 data flow computing 37-42
4.3.1 Control Flow Graph pretreatment 37-39
4.3.2 based on the control flow graph of the data stream computing 39-42
4.4 GA to generate test cases 42-46
4.4.1 DTGA algorithm processes 42-43
4.4.2 DTGA algorithms is 43-46
4.5 Summary 46-48
Chapter 5 Automatic Data Flow Testing System Design and Implementation 48-68
5.1 system design ideas 48
5.2 system framework design 48-50
5.3 system 50-63
5.3.1 parse parts Parser 50-54
5.3.2 CFG constructed parts CFGBuilder 54-57
the tectonic Parts of
5.3.3 DTSG DTSGBuilder 57-59
5.3.4 Block and code instrumentation 59-60
5.3.5 data flow analyzer DataFlowAnalyser 60-61
5.3.6 Genetic algorithms parts DTGA 61-63
5.3.7 to generate test reports 63
5.4 system interface 63-66
5.4.1 interface design 63-65
5.4.2 interface steps 65-66
5.5 Summary 66-68
Chapter 6 Experimental results and analysis 68-76
6.1 experimental data 68-69
6.2 Experimental results 69-74
6.2.1 coverage is relatively 69-70
6.2.2 search time 70-72
6.2.3 iterations is 72-73
6.2.4 test cases scale 73-74
6.3 experimental conclusions 74-75
6.4 of this chapter section 75-76
Chapter 7 Conclusion 76-78
7.1 summarize 76
7.2 Looking 76-78
References 78-82
degree during the study results 82-84
thank 84-86
graduate resume 86
Related dissertations
- Research and Design of Test Paper Generation System Based on 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
- Research on Industrial Time Delay Object Based on Model Prediction Control
- Study on Nonlinear Dynamic Modeling Measurement and Control Problems for Precision Pointing Mechanisms
- Research on Intelligent Air Combat Decision Making System Based on Conflict Analysis
- Design and Simulation of Fractional Order Controller
- Gait and Route Plan of Quadruped Robot
- A Structural Optimization of Spraying Robot Based on the Deformation Errors Control
- The Research Which Based on the Genetic Algorithm of EFPI Optical Fiber Sensing Technology