首页 | 本学科首页   官方微博 | 高级检索  
     

基于梦境粒子群优化的类集成测试序列生成方法
引用本文:张悦宁,姜淑娟,张艳梅.基于梦境粒子群优化的类集成测试序列生成方法[J].计算机科学,2019,46(2):159-165.
作者姓名:张悦宁  姜淑娟  张艳梅
作者单位:中国矿业大学计算机科学与技术学院矿山数字化教育部工程研究中心 江苏徐州2211161;中国矿业大学计算机科学与技术学院矿山数字化教育部工程研究中心 江苏徐州2211161;桂林电子科技大学广西可信软件重点实验室 广西桂林5410042
基金项目:本文受国家自然科学基金(61673384,7),广西可信软件重点实验室开放课题(kx201530)资助
摘    要:类集成测试序列的确定是面向对象类集成测试技术中的一个重要课题。合理的类集成测试序列可以降低为其构造测试桩的总体复杂度,从而减小测试代价。针对粒子群优化算法容易早熟的缺陷,文中提出一种基于梦境粒子群优化算法的类集成测试序列生成方法。首先把每个类集成测试序列映射为一维空间中的一个粒子,然后将粒子看作有做梦能力的个体。每个迭代周期分为白天和夜间两个阶段,在白天阶段粒子正常移动,而在夜间阶段粒子根据各自的做梦能力扭曲当前位置。如此,粒子有机会在当前位置附近进行搜索,使得算法减缓收敛速度,避免过早陷入局部最优。实验结果表明,多数情况下该方法可以得到测试代价更小的类集成测试序列。

关 键 词:测试序列  集成测试  测试代价  梦境粒子群优化算法  局部最优
收稿时间:2018/8/11 0:00:00
修稿时间:2018/10/16 0:00:00

Approach for Generating Class Integration Test Sequence Based on Dream Particle Swarm Optimization Algorithm
ZHANG Yue-ning,JIANG Shu-juan and ZHANG Yan-mei.Approach for Generating Class Integration Test Sequence Based on Dream Particle Swarm Optimization Algorithm[J].Computer Science,2019,46(2):159-165.
Authors:ZHANG Yue-ning  JIANG Shu-juan and ZHANG Yan-mei
Affiliation:Mine Digitization Engineering Research Center of the Ministry of Education,School of Computer Science and Technology, China University of Mining and Technology,Xuzhou,Jiangsu 221116,China,Mine Digitization Engineering Research Center of the Ministry of Education,School of Computer Science and Technology, China University of Mining and Technology,Xuzhou,Jiangsu 221116,China and Mine Digitization Engineering Research Center of the Ministry of Education,School of Computer Science and Technology, China University of Mining and Technology,Xuzhou,Jiangsu 221116,China;Guangxi Key Laboratory of Trusted Software,Guilin University of Electronic Technology,Guilin,Guangxi 541004,China
Abstract:Determination of class integration test sequence is an important topic in object-oriented software integration testing.Reasonable class integration test sequence can reduce the overall complexity of test stub,and then reduce test cost.For particle swarm optimization algorithm,it is easy to be precocious.So a class integration test sequence determination method based on dream particle swarm optimization algorithm was proposed in this paper.First,each sequence is taken as a particle in one dimensional space.Then,every particle is considered to be a dreamer.Each iteration cycle is divided into two phases:day and night.In the daytime,particles move to new locations,and during the night,they contort the locations gained at day phase according to dreaming ability.In this way,particle has the opportunity to search near the current location,so that the algorithm can converge slowly and avoid falling into local optimum too early.The experimental results show that the proposed approach takes a lower test cost in most cases.
Keywords:Test sequence  Integration testing  Test cost  Dream particle swarm optimization algorithm  Local optimum
本文献已被 万方数据 等数据库收录!
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号