ZHANG Yan, GONG Dun-wei. Evolutionary Generation of Test Data for Path Coverage Based on Automatic Reduction of Search Space[J]. Acta Electronica Sinica, 2012, 40(5): 1011-1016.
ZHANG Yan, GONG Dun-wei. Evolutionary Generation of Test Data for Path Coverage Based on Automatic Reduction of Search Space[J]. Acta Electronica Sinica, 2012, 40(5): 1011-1016. DOI: 10.3969/j.issn.0372-2112.2012.05.024.
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