A Memetic Algorithm for test data generation of Object-Oriented software

Generating test data for object-oriented (OO) software is a hard task. Little work has been done on the subject, and a lot of open problems still need to be investigated. In this paper we focus on container classes. They are used in almost every type of software, hence their reliability is of utmost importance. We present novel techniques to generate test data for container classes in an automatic way. A new representation with novel search operators is described and tested. A way to reduce the search space for OO software is presented. This is achieved by dynamically eliminating the functions that cannot give any further help from the search. Besides, the problem of applying the branch distances of disjunctions and conjunctions to OO software is solved. Finally, hill climbing, genetic algorithms and memetic algorithms are used and compared. Our empirical case study shows that our memetic algorithm outperforms the other algorithms.