Automatic path-oriented test data generation method
- Author
- DanJinHui
- Advisor
- QiZhiChang
- School
- National University of Defense Science and Technology
- Major
- Computer Science and Technology
- Classification
- TP311.53 Software Maintenance
- Degree
- Doctoral dissertation
- Year
- 2002
- Downloads
- 1,184
- Citations
- 38
- Automatic Test Data Generation
- Path-oriented test
- Software Testing
- Data Flow Analysis
- Program slicing
- White Box
- Black box
Abstract
Software testing is an important stage protection software quality means. Software testing, such as statement coverage, path coverage and other issues can be attributed to path-oriented test data generation problem. The problem herein referred to as second problem, can be described as follows: Given a program P and a path P, W, set P of the input space is D, seeking (?) ∈ D, such that P in (?) As an input operation , through which the path is W. Automatically solve the problem will effectively improve the efficiency and quality of software testing. The essence lies in solving the problem two restraint systems up and solving. The difficulty is to establish restraint systems analysis, simplification path W ingredients and various statements on a variety of data types, to establish as concisely as possible restraint system; solving constrained system's main difficulty is to handle non-linear constraints that may exist. Matiyasevic and EJWeyuker et al study showed that: there is no universal effective algorithm, for any P and W, so that W is able to generate through the input data. But the actual application needs to force people to study and propose ways to solve the problem 2. This paper begins with a brief introduction to the field of research, the existing solution methods are divided into four categories - random method, a static method, dynamic method and heuristics, presentation and analysis of a representative of each type of method, and to explore research orientation. Iterative relaxation method is Neelam Gupta, who proposed an automatic method of solving the problem 2. The method analyzes each statement on W between static and dynamic data dependencies, structural predicate slice and input dependency set, using linear arithmetic expressed predicate function linearization, can be used only white-box testing data automatically generated. Neelam Gupta, who will be least-squares solution for solving the problem 2. Jon Edvardsson et al pointed out that predicate function are a linear function of the input variables path of the program, Neelam Gupta, who proposed solving method is incomplete and non-termination and suggested using linear programming, linear (mixed) integer programming . This improved iterative relaxation method, omit the predicate slice and input dependency structure set in the process. Furthermore, when used as a predicate function on both differential input variables derivative approximation, the calculated linear arithmetic expressions on all converted to calculate residual predicate, while the latter need not analyze the statement on the W between static and dynamic data dependencies. At this time, the improved method than the original method to generate test data capable, can be used for automatic generation of black box data. Improved method to create linear constraint system more efficient. This paper presents a model of language; gives a more complete formal description, the description can be used to demonstrate the static and dynamic data dependencies relevant procedural nature; iterative relaxation method is given in the formal definition of the concept;-depth study iterative relaxation method and the improved method of program theory, the results include: the Neelam Gupta et al proposed a path predicate piece Promotion static slicing, static slicing algorithm for constructing the path proved the correctness proof of the improved method and the original method linear constraint system generated by the same. This paper presents a path-oriented test data generation framework. The framework improved iterative relaxation method as the core algorithm, for predicate function are a linear function of the input variables path of the program, based on linear programming, linear (mixed) integer programming constraint solver; For the predicate function contains input variables non-linear function of the program path, using linear programming, linear (mixed) integer programming and least-squares solution combining Constraint Solver. It has the following National Defense Science and Technology University Graduate School Dissertation nature: if the predicate function W is a linear function of the input variables are, and all input variables integer no restrictions; the framework iteration once, or to find a solution W, or guarantee w impracticable; when the predicate function contains a nonlinear function of the input variables, you may need to iterate multiple times. This paper developed a path-oriented test data generation framework for a prototyping tool. The actual path of the program with the tools to experiment. Preliminary experimental results show that the framework is a more effective, not only for the white box, black box data is automatically generated and can be used for automatic generation of test data assertion and regression test data automatically generated.
Table of contents
Figures 6-7
Tables 7-8
Chinese Abstract 8-10
Abstract 10-12
The first chapter 12-26
§ 1.1 legislature title background 12-20
§ 1.1.1 software life cycle 12 - 14
§ 1.1.2 ensure the quality of software techniques 14-16
§ 1.1.3 software testing techniques and processes 16-18 <br / > § 1.1.4 ongoing software testing and software testability 18-19
§ 1.1.5 software testing adequacy criteria 19-20
§ 1.2 Question 2 asked 20-21
§ 1.3 Problems 21-24
§ 1.4 with the main objective of this paper work 24-25
§ 1.5 paper structure 25-26
Chapter path-oriented test data generation method Commentary 26-34
§ 2 .1 randomly 26-27
§ 2.2 Static method 27-28
§ 2.2.1 Symbolic execution 27
§ 2.2.2 interval arithmetic method 27-28
§ 2.3 Dynamic Method 28-30
§ 2.3.1 Linear procedural law 28-29
§ 2.3.2 BogdanKorel proposed method 29
§ 2.3.3 M. Gallagher, who proposed method 29-30
§ 2.3.4 iterative relaxation method 30
§ 2.4 heuristics 30-31
§ 2.4.1 GA 31
§ 2.4.2 Simulated Annealing 31
§ 2.5 Summary 31-34
Chapter iterative relaxation method and its improved 34-47
§ 3.1 iterative relaxation method 34-39
§ 3.1.1 Introduction iterative relaxation method 34-37
§ 3.1.2 iterative relaxation algorithm is described 37
§ 3.1.3 iterative relaxation method discussed 37-39
§ 3.2 iterative relaxation method improvement 39-41
§ 3.2.1 Improved iterative relaxation method discussed 40-41
§ 3.3 Example 41-46
§ 3.4 Summary 46-47
Chapter Improved iterative relaxation method with the original method of linear constraints equivalence proof 47-57
§ 4.1 modeling language L 47-48
§ 4.2 L of operational semantics 48-50
§ 4. 3 construct paths static slice 50-51
§ 4.4 linear predicate function 51-55
§ 4.4.1 input dependency set constructor 51-52
§ 4.4.2 linear arithmetic representation structure 52-54
§ 4.4.3 linear constraint structure 54-55
§ 4.5 iterative relaxation method and the improved method to construct a linear temporal restraint system efficiency analysis 55
§ 4.6 Summary 55-57
chapter for path test data generation framework and application 57-62
§ 5.1 path-oriented test data generation framework 57-58
§ 5.2 path-oriented test data generation framework application 58-61
§ 5.2.1 Unit Testing 59
§ 5.2.2 final assembly and testing 59-61 <br / > § 5.3 Summary 61-62
Chapter VI prototype system (referred PTDG) developed 62-70
§ 6.1 UML and Tcl / Tk Introduction 62-63
§ 6.1.1 UML Profile 62
§ 6.1.2 Tcl / Tk Introduction 62-63
§ 6. 2 PTDG analysis 63-64
§ 6.3 PTDG design 64-67
§ 6.3.1 Use Case diagram design 64
§ 6.3.2 Sequence Diagram design 64-66
§ 6.3.3 class diagram design 66
§ 6.3.4 graphical user interface design 66-67
§ 6.4 PTDG realization 67-69
§ 6.4.1 lexical analyzer and parser implementation 67
§ 6.4.2 Constraint Solver realization 67-68
§ 6.4.3 graphical user interface to achieve 68-69
§ 6.5 Summary 69-70
Chapter VII of the experiment 70-77
§ 7.1 linear constraint program path 70-71 <br / > § 7.2 of nonlinear constrained program path 71-72
§ 7.3 assertions and regression testing for automated test data generation 72-75
§ 7 .4 Summary 75-77
Chapter VIII Conclusion 77-79
§ 8.1 This article mainly contributed 77-78
§ 8. two future research 78
§ 8.3 Summary 78-79
been hired during the PhD papers and writing technical reports 79-80
Thanks 80-81
References 81-88
some properties in Appendix A, lemma, theorem proving 88-96
Related dissertations
- Aresearchbased on UML Diagrams and Dynamic Slicing of Regression Testing
- Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
- Research on Dependence Analysis and Software Testing
- Program Slicing Techniques and Its Application in Object-Oriented Software Metrics and Software Test
- The Research on Software Testing Based on Program Slicing
- Automatic Test Data Generation for Path Testing Using Ant Algorithms
- Analysis and Design of Unit Test Useage Automated Generation
- 89c52 based test platform for embedded system software research and development
- GSM short message service system for automated functional testing
- The Research and Implementation of Automatic Unit Test Recording Framework
- Study on a Unit Testing Method and the Application in Operation and Management System for a Paper Factory
- And the realization of software testing reuse management subsystem design
- Research on Testing Approach for Aspect-Oriented Programs Based on Control Flow and Data Flow
- Research on software testing technology based on complex network theory
- Design and Implementation of Automated Testing Integrated Platform of Rail-transit Signal System
- The Research and Implementation of Web Performance Testing Technology Based on Loadrunner
- Research of Software Testing Method Based on Cloud Computing
- Research on Path-oriented Test Data Generation
- Research on Process Improvement in Y Co. Based on CMM
- Method Research and System Development of Software Automatic Testing