摘要: 对离散粒子群优化算法进行改进,提出一种两两覆盖的组合测试数据生成算法。以一个粒子代表一个测试数据集,从整体上评价测试数据集对各个因素组合的覆盖情况,以测试数据中各因素离散值出现的次数为依据,随机产生粒子位置。实例分析表明,该算法与初始值无关,可有效生成测试数据且收敛速度快。
关键词:
组合测试,
离散粒子群优化,
测试数据集,
两两覆盖,
软件测试
Abstract: This paper improves the Discrete Particle Swarm Optimization(DPSO), presents a pairwise covering combinatorial test data generation algorithm. A particle represents a test set, fitness function is evaluated by the number of combination pair, and the position of the particle is produced by stochastic algorithm, which is randomly generated by the frequency of discrete values of all factors in test set. Example analysis shows that the algorithm has nothing to do with the initial value and can generate the most effective test data with fast convergence.
Key words:
combinatorial test,
Discrete Particle Swarm Optimization(DPSO),
test data set,
pairwise covering,
software test
中图分类号:
孙家泽, 王曙燕. 基于改进DPSO的组合测试数据生成算法[J]. 计算机工程, 2012, 38(7): 40-41,45.
SUN Jia-Ze, WANG Shu-Yan. Combinatorial Test Data Generation Algorithm Based on Improved DPSO[J]. Computer Engineering, 2012, 38(7): 40-41,45.