Research on Techniques for Software Test Case Automated Generation
- Author
- LiJunYi
- Advisor
- SunJiaGuang , LiRenFa
- School
- Hunan University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Doctoral dissertation
- Year
- 2008
- Downloads
- 1,366
- Citations
- 9
- Software test
- Automated Test Case Generation
- EDPN model
- Linear approximation
- Back-trace strategy
- Selective redundancy
- Combinative match
Abstract
Software testing is a very time-consuming job. According to statistics, software testing spends 40% of the time during the software development process. For certain critical software, the test time can reach up to 60%. As most of the software testing procedures are repetitive, it is feasible to apply automatic methods for software testing. In the past several years, extensive researches have been conducted on this field. However, it has to be pointed out that the current technologies for the automatic testing are not mature enough to meet the practical testing requirements. With all these being its background, the technologies of automated test data generation for software testing proposed in this dissertation are of great theoretic and practical significance.The state-of-art research of automated test data generation at home and abroad is summarized at first. Based on these, this dissertation conduct in-depth researches on the following five aspects: the research on the automated test data generation based on EDPN model; the research on the automated data generation based on expanded EDPN model; the research on the path analysis and software testing based on program execution and back-trace strategy; the research on the path analysis and software testing based on selective redundancy; and the research on the automated test data generation based on combinative match.1. Research on the automated test data generation based on the EDPN model: Based on the hierarchy and testing method of OOP, EDPN model is proposed at first. Then, based on the EDPN model, the class testing model has been established and the transformation from a UML graph to a EDPN graph has been discussed. The generation method and the related algorithm for marked UIO based on the EDPN model have been presented. The coverage rate of test data generated automatically by this algorithm is further analyzed. The result shows that all the state transformation has been covered at least once, thus the algorithm can ensure the sufficiency of the testing.2. Research on the automated data generation based on expanded EDPN: Based on the analysis of interactive relations among all the classes in OOP, a segmentation algorithm is presented.Based on iteration of the weighted EDPN, this algorithm divides the OOP system into sub-systems with different sizes and independent functions. Besides, this dissertation proposes an interactive testing method based on the combined EDPN model, and further extends the OATS method. An algorithm for the test data automated generation based on the extended OATS method is proposed to solve the problems of combination contradiction, test data explosion, and the extension of OATS method. Finally, based on the EMDPN model, an automated co-paths generation algorithm is proposed for hierarchical class testing. Algorithm analysis shows that the test data generated by this new algorithm meets the OSC criterion.3. Research on the path analysis and software testing based on the program execution and back-trace strategy: New concepts such as base node, control node, definition node and definition related control nodes set are proposed at first. Then, an algorithm to obtain the definition related control nodes set is provided. On the basis of combining both the method of linear approximation and DUC expression, an innovative automated test data generation algorithm based on the reversed binary tree is proposed. Based on the reversed binary tree constructed automatically by the algorithm, all of the feasible paths in the program from the source node to the base node are found, and the related test data are generated for each feasible path.4. Research on the path analysis and software testing based on the selective redundancy: Based on the selective redundancy, a new automated test data generation algorithm is proposed. This algorithm, adopting methods such as the linear approximation and minimization of branch function, automatically generates an initial test data suite. If valid test data cannot be obtained, then based on the selective redundancy, we further perform certain additional test data generation by examining the predicates and sub-paths not covered by the initial test data suite. Algorithm analysis and experiment results both show that the new algorithm can reduce the size of test data suite effectively and improve test performance.5. Research on the algorithm of automated test data generation based on the combinative match: Based on test generation strategies for pairwise testing, a new algorithm for the initial test data suite generation is provided. Then, based on combinative match, a new algorithm for test data generation is further proposed for pairwise testing. Experimental results show that the performance of this new algorithm is better than the existed ones, considering the size of test data suite and time consuming for the test data generation.
Table of contents
Abstract 5-7
Abstract 7-15
Chapter 1 Introduction 15-19
1.1 background and significance of 15-16
1.2 thesis research 16-17
1.3 The paper is organized 17-19
Chapter 2 Technical and Research 19-31
2.1 software testing technology concept 19-23
2.1.1 software quality assurance and software testing 19-20
2.1.2 software testing technology classification 20-22
2.1.3 software testing stage 22-23
2.2 Software Testing Technology Research 23-30
2.2.1 Structure-based test case generation technology 23-27
2.2.2 based on the functional test case generation technology 27-28
2.2.3 object-oriented testing and test cases generated 28-30
2.3 Summary 30-31
Chapter 3 Automated Test Case Generation based on EDPN model 31-51
3.1 object-oriented software testing 31-40
3.1.1 object-oriented software characteristics and their impact on software testing 31-33
3.1.2-level object-oriented software testing division and test methods 33-37
3.1.3 UML diagram and object-oriented software testing 37-40
3.2 event-driven test model of the PETRI net 40-45
3.2.1 EDPN model description 40-43
3.2.2 based model EDPN class testing 43-44
3.2.3 EDPN model-based testing process 44-45
3.3 based on EDPN model class status of test cases automatically generated algorithm 45-50
3.3.1 UML state diagram to the Figure EDPN the conversion 45-46
3.3.2 test case automatic generation algorithm 46-48
3.3.3 Algorithm Analysis 48-50
3.4 Summary 50-51
Chapter 4 test cases based on extended EDPN model automatically generated 51-74
4.1 based on weighted EDPN model test method 51-56
4.1.1 object-oriented system structure analysis 51-52
4.1.2 object-oriented system with the right EDPN model description 52-53
4.1.3 iterative segmentation algorithm based on weighted EDPN, 53-56
4.2 based combination EDPN model class interactive test case automatic generation algorithm 56-66
4.2.1 class interactive test in combination 56-58
4.2.2 test data based on the orthogonal array test system 58-60
4.2.3 combination EDPN model to optimize the orthogonal array test system 60-65
4.2.4 Algorithm Analysis 65-66
4.3 based on EMDPN model class hierarchy of test cases automatically generated algorithm 66-73
4.3.1 EMDPN interaction diagram (EMDPNIG) model 66-68
4.3.2 based on EMDPN model of inheritance test 68-72
4.3.3 Algorithm Analysis 72-73
4.4 Summary 73-74
Chapter 5, based on program execution and backtracking path analysis and testing 74-83
5.1 based on program execution path analysis 74-79
5.1.1 branch function and predicate slice 74-77
5.1.2 control node and the control path 77-78
5.1.3 inverted binary tree 78-79
5.2 automatically backtracking-based test data generation algorithm 79-81
5.2.1 inverted binary tree-based test data automatically generated algorithm 79-80
5.2.2 \
5.3 algorithm analysis 81-82
5.4 Summary 82-83
Chapter 6, based on selective redundant test data generated 83-96
6.1 The test set is simple and selective redundancy 83-84
6.2 based on selective redundant test data automatically generated algorithm 84-90
6.2.1 initial test data set generation algorithm 84-87
6.2.2 test data additions algorithm 87-90
6.3 algorithm analysis and experimental 90-95
6.4 Summary 95-96
Chapter 7 automatically generate test data based on pairwise testing 96-107
7.1 pairs test principle 96-97
7.2 The existing pairs test analysis 97-100
7.2.1 based on the recursive method of paired test data generation strategy 97-98
7.2.2 based on the simple method of paired test data generation strategy 98-100
7.3 based on matching combinations of pairs of test data automatically generated algorithm 100-103
7.4 algorithm analysis and experimental 103-106
7.5 Summary 106-107
conclusions 107-109
References 109-119
thank 119-120
Appendix A during the study for a degree paper catalog 120-121
Appendix B during the study for a degree is presided over and participate in the project 121
Related dissertations
- Research and design of on-board control universal testing platform software
- Design and Implementation of Automated Test Case Generator
- The Design and Implementation of Public Client Business System of Internet Bank Based on J2EE
- Reachability Analysis of Nonlinear Hybrid Systems
- The Qualitative Properties on a Parabolic System with Sources
- Web Based Metwork-Security Tool Testing and Analysis
- Software development for a launch vehicle
- Research on Software Automatic Testing and Its Application in Online Bank System
- Research and Implementation of Automatic Stub Generation Technology in Unit Test
- Research on Android-based Keyword-driven Automated Testing Framework
- Study on Neural Network and Its Application in Software Fault Localization
- Research and Implementation of Automatic Software Testing Platform for Adsl Access Device
- Design and Realization of Software Testing Management Tool
- Research on Application of automatic test case generation based on Improved Genetic Algorithm
- Design and implementation of Automatic Pharmacy software system of TCM formula granule
- Research of Automated Testing Techniques for Safety-critical Software
- The Analysis and Design of Government Auto Office System Based SSH Framework
- Research of Software Testing Services in the Cloud Computing Environment
- The Application of Embedded TCL Technology in MPLS VPN Test
- The Research and Implementation of VoIP Software Auto Test System