Path Test Data Generation Based on Adaptive Genetic Algorithm

Aiming at the problem that the simple genetic algorithm is easy to produce premature convergence,an Adaptive Genetic Algorithm(AGA)is presented to automatically generate test data.The method of program insert is integrated with AGA to implement the automatic generating of path test data.The performance of AGA is tested by using a program of triangle classifier as an example,and experimental results show this automatic generating system of test data based on AGA can automatically change the probability of selection and probability of mutation,which promotes the efficiency of automatic generating test data.