Computer and Modernization ›› 2012, Vol. 1 ›› Issue (1): 49-52.doi: 10.3969/j.issn.1006-2475.2012.01.013

• 软件工程 • Previous Articles     Next Articles

Test Cases Auto-generating Based on Genetic Algorithm and Its Improved Method

HU Wen-huan, QIAN Yue-ying   

  1. Beijing Institute of Applied Meteorology, Beijing 100029, China
  • Received:2011-08-02 Revised:1900-01-01 Online:2012-01-10 Published:2012-01-10

Abstract: Genetic algorithm is currently an adaptive searching algorithm which gives a new solution to generate test cases. However, when it is used to generate test cases, the randomness of recombination and mutation makes the diversity of the population easily destroyed and leads to the search space getting smaller, finally results in the algorithm finding a wrong local optimum. Moreover, recombining and mutating freely makes the searching efficiency very low. This paper introduces an improved method, with a mutation control strategy and an optimal control strategy added, which effectively improves the searching capability and gets optimal solution capability of the algorithm.

Key words: genetic algorithm, test case, mutation control strategy, optimal control strategy, optimal solution

CLC Number: