J4 ›› 2012, Vol. 34 ›› Issue (1): 86-89.
• 论文 • 上一篇 下一篇
时贵英
收稿日期:
修回日期:
出版日期:
发布日期:
SHI Guiying
Received:
Revised:
Online:
Published:
摘要:
软件测试是软件质量保证的重要手段,测试用例自动生成一直是被广泛研究的问题。本文在分析了遗传算法、粒子群算法和蚁群算法的优缺点后,在软件测试用例的自动生成过程中采用一种新改进的粒子群算法。该算法将蚁群算法的信息素机制引入到粒子群算法中,加大了粒子间的多样性,有效地克服了粒子群算法容易发生早熟停滞的缺陷。最后通过仿真实验证明了算法应用于软件测试的可行性和高效性。
关键词: 粒子群算法, 蚁群算法, 信息素机制, 软件测试
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
时贵英. 改进PSO算法在软件测试数据生成中的应用[J]. J4, 2012, 34(1): 86-89.
SHI Guiying. Application of an Improved Particle Swarm Optimization Algorithm in Software Test Data Generation[J]. J4, 2012, 34(1): 86-89.
0 / / 推荐
导出引用管理器 EndNote|Ris|BibTeX
链接本文: http://joces.nudt.edu.cn/CN/
http://joces.nudt.edu.cn/CN/Y2012/V34/I1/86