• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2012, Vol. 34 ›› Issue (1): 86-89.

• 论文 • Previous Articles     Next Articles

Application of an Improved Particle Swarm Optimization Algorithm in Software Test Data Generation

SHI Guiying   

  1. (School of Computer and Information Technology,Northeast Petroleum University,Daqing 163318,China)
  • Received:2010-12-13 Revised:2011-03-11 Online:2012-01-25 Published:2012-01-25

Abstract:

Software testing is an important means of software quality assurance,the automatic generation of test cases has been widely studied. By analyzing the advantages and disadvantages of the genetic algorithm, the particle swarm optimization algorithm and the ant colony algorithm,the paper proposes a new improved particle swarm algorithm in the automatic generation of test cases. The pheromone mechanism of the ant colony algorithm is introduced into the particle swarm algorithm, which can increase the diversity of particles and overcome the defect that PSO is easy to premature and stagnation. Finally the simulation experiment proves the feasibility and efficiency of the algorithm in software testing.

Key words: PSO;ACO;peromone mechanism;software testing