An Approach to Generate Software Test Data for a Specific Path Automatically with Genetic Algorithm

作者:Cao Yang*; Hu Chunhua; Li Luming
来源:8th International Conference on Reliability, Maintainability and Safety (ICRMS 2009), China,Sichuan,Chengdu, 2009-07-20 to 2009-07-24.
DOI:10.1109/icrms.2009.5269962

摘要

We focus on software reliability with testing Coverage, which will grow with increment of the coverage. We expect to improve quality of software testing with it automated. An approach of generating test data for a specific single path is presented in this paper, different from the predicate distance applied by most test data generators based on genetic algorithms. A similarity between the target path and execution path with sub path overlapped is designed as fitness value to evaluate the individuals of a population and drive GA to search the appropriate solutions. Several experiments are taken to examine the effectiveness of the designed fitness function, which evaluate performance of the function with the convergence ability and consumed time. Results show that the function performs well compared with other two typical fitness functions for specific paths.

全文