Test Case Generation Based on Hierarchical Genetic Algorithm

Liu Shurong,Hu Changzhen,Xue Jingfeng,Li Zhiqiang
DOI: https://doi.org/10.2991/mce-14.2014.61
2014-01-01
Abstract:The basic genetic algorithm was proposed to optimize the test case generation. It has been applied widely. Based on basic genetic algorithm, this paper proposed the hierarchical genetic algorithm to generate test cases. The hierarchical genetic algorithm divided the initial population into hierarchical son population and operated selection, crossover and mutation among son population independently. In the hierarchical genetic algorithm, the evolution of population was firstly operated between all layers, if the algorithm can't get the best test cases, it entered the next generation. Using this mechanism, the hierarchical genetic algorithm can avoid effectively 'inbreeding', 'local convergence', 'slow convergence' phenomenon. So it was the better way to generate test cases. This paper did the experiment using 3 benchmark program: triangle classification, bubble sort, the Max and Min. The experimental results show that the quality of test cases and the efficiency of generating test cases are improved markedly by hierarchical genetic algorithm compared with the basic genetic algorithm.
What problem does this paper attempt to address?