Research and Application on the Modified Automated Approach for Structural Test Data Generation Based-On mGA
- Author
- XinZhengHua
- Advisor
- MaJianHong
- School
- Hebei University of Technology
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2007
- Downloads
- 60
- Citations
- 0
Abstract
Program testing , test data generation is found to meet certain testing criteria data in a variety of test criteria , branch coverage criteria is the most effective , but in the process of applying branch coverage criteria , program control flow graph branch number is greater than 10, in the case does not include the loop , the number of its full path will be more than 2 ~ L, the test will become more difficult . In view of this situation , the introduction of block divided Act . The block division method is by structure dividing the program so that the test in the block level independently . Block , the use of static generated path the dominant tree diagram and contains a tree diagram . The thus produced full path is far less than the number , not the number of the previous path , and greatly enhances the feasibility of the test . In this paper, the use of static generated path dominant tree diagram and contains a tree diagram , the introduction of the minimum path testing subset algorithm , the algorithm can be efficiently generated from inlet to outlet and cover the side of the non-binding subset of the paths . Then combine Length_N path coverage criteria obtained the the full path table ( CFG_PT ) . Finally a new automatically based on GEMGA path - oriented test data generation method . Do not need mode of GEMGA arranged prior knowledge , can be clearly defined relationship between classes and sample space , optimize the fitness function , and ultimately improve the test coverage . Path problems found in the dynamic test combined with GEMGA algorithm improvement path problem . The paper uses GEMGA generate test data simulation test , the algorithm to reach a significant expansion of the range of the target node to increase the coverage of the designated test path . Compared with the simple genetic algorithm GEMGA test data automatically generated significantly improve the efficiency , and is applicable to large programs automatically generate test data .