Evolutionary Generation of Test Data for Path Coverage Based on Automatic Reduction of Search Space

ZHANG Yan,GONG Dun-wei
DOI: https://doi.org/10.3969/j.issn.0372-2112.2012.05.024
2012-01-01
Abstract:A method of evolutionarily generating test data for path coverage based on automatic reduction of search space is presented in this study.First,the relation between the target path and the input variable is determined,and the divisible target path is divided into some sub-paths related to several elements of the input variable.Then,the elements corresponding to the traversed sub-path are fixed,and the range of crossover and mutation operations is reduced,therefore the original population searches for test data in a reduced space so that the efficiency of generating test data is improved.Finally,the proposed method is applied to generate test data for covering paths of a benchmark program,and compared with the traditional and random ones.The experimental results confirm that the proposed method is advantageous in the number of generations,time consumption and success rate.
What problem does this paper attempt to address?