Research Article

A Model Independent S/W Framework for Search-Based Software Testing

Algorithm 3

Pseudocode of genetic algorithm.
(30) Test case set
(31) for each coverage   do
(32)   Find start node,
(33)   repeat
(34)    for  ; ; ++  do
(35)     Select two parents in the population
(36)     Generate two offspring by crossover operation between two parents
(37)     Insert two offspring into new generation list
(38)     if a new offspring satisfy the coverage,   then
(39)        of the offspfing
(40)       break
(41)     end if
(42)    end for
(43)    Mutate some offspring in the new generation list
(44)   until satisfy or reach maximum iteration
(45) end for