江西财经大学信息管理学院,江西南昌 330013
[ "钱忠胜 男,1977年1月出生,江西鹰潭人.2008年在上海大学获工学博士学位.江西财经大学教授,博士生导师.主要研究方向为软件工程、机器学习、智能化软件等. E-mail: changesme@163.com" ]
[ "成轶伟 男,1996年5月出生,江苏泰州人.江西财经大学信息管理学院硕士研究生.主要研究方向为软件工程、智能推荐系统等. E-mail: chengyiweiqq@163.com" ]
[ "俞情媛 女,1997年5月出生,江苏淮安人.江西财经大学信息管理学院博士研究生.主要研究方向为软件工程、智能推荐系统等." ]
[ "张丁 女,1994年12月出生,江西宜春人.江西财经大学信息管理学院硕士研究生.主要研究方向为软件工程、智能推荐系统等. E-mail: 1006337533@qq.com" ]
[ "姚昌森 男,1998年1月出生,江西南昌人.江西财经大学信息管理学院硕士研究生.主要研究方向为软件工程、智能推荐系统等. E-mail: 1124331766@qq.com" ]
[ "秦朗悦 女,1998年4月出生,江西南昌人.江西财经大学信息管理学院硕士研究生.主要研究方向为软件工程、智能推荐系统等." ]
收稿:2022-08-24,
修回:2022-12-28,
纸质出版:2023-05-25
移动端阅览
钱忠胜,成轶伟,俞情媛等.基于关键边概率与路径层接近度的多路径覆盖测试[J].电子学报,2023,51(05):1341-1349.
QIAN Zhong-sheng,CHENG Yi-wei,YU Qing-yuan,et al.An Approach to Multi-Path Coverage Testing Based on Key Edge Probability and Path Layer Proximity[J].ACTA ELECTRONICA SINICA,2023,51(05):1341-1349.
钱忠胜,成轶伟,俞情媛等.基于关键边概率与路径层接近度的多路径覆盖测试[J].电子学报,2023,51(05):1341-1349. DOI: 10.12263/DZXB.20220983.
QIAN Zhong-sheng,CHENG Yi-wei,YU Qing-yuan,et al.An Approach to Multi-Path Coverage Testing Based on Key Edge Probability and Path Layer Proximity[J].ACTA ELECTRONICA SINICA,2023,51(05):1341-1349. DOI: 10.12263/DZXB.20220983.
遗传算法解决多路径覆盖中难覆盖边的问题,是当前软件测试数据自动生成领域的一个研究热点.现有方法解决多路径覆盖问题的效果不够理想,本文提出一种将关键边概率与路径层接近度相结合的多路径覆盖测试方法.首先,本文计算节点被穿越概率找到难覆盖节点,通过难覆盖节点找到难覆盖边(即,关键边),生成目标路径.然后,本文根据关键边概率计算个体贡献度,并通过程序的路径层图计算路径层接近度,再由个体贡献度及路径层接近度设计适应度函数.最后,本文利用多种群遗传算法进化生成测试数据以覆盖目标路径,在进化过程中子种群覆盖当前目标路径后,继续尝试覆盖与其相似的其它路径.实验结果表明,该方法与同类经典方法相比,在保证平均进化时间和平均进化代数占优的同时,稳定性也有所提高,生成时间增幅标准偏差较最优的降低10.19%,离散系数降低10.79%.进化代数增幅标准偏差较最优的降低19.98%,离散系数降低28.02%.
Using genetic algorithms to solve the problem of difficultly-covered edges in multi-path coverage is a hot research spot in the current field of automatic test data generation. An approach to multi-path coverage testing that combines the key edge probability and path layer proximity is proposed
for the existing methods are not efficient enough to solve the multi-path coverage problem. Firstly
it calculates the probabilities of the nodes being traversed to get difficultly-covered nodes
and then finds difficultly-covered edges (i.e.
key edges)
so as to generate the target paths. Secondly
the individual contribution is calculated according to the key edge probability
and the path layer proximity is computed through the path layer graph of the program
and then the fitness function is designed from the individual contribution and the path layer proximity. Finally
multi-population genetic algorithm is employed to generate test data in order to cover the target paths. After the subpopulation covers the current target path in the evolution process
it continues to try to cover other paths similar to the current target path. Experimental results show that compared with those similar classic methods
this approach guarantees an improved stability besides dominant average generation time and average evolution time. The standard deviation of the generation time increase is lower than the optimal one by 10.19%
and the variation coefficient is lessen by 10.79%. The standard deviation of evolutionary time increase is lower than the optimal one by 19.98%
and the variation coefficient is decreased by 28.02%.
SHARIFIPOUR H , SHAKERI M , HAGHIGHI H . Structural test data generation using a memetic ant colony optimization based on evolution strategies [J]. Swarm & Evolutionary Computation , 2018 , 40 ( 6 ): 76 - 91 .
JATANA N , SURI B . Particle swarm and genetic algorithm applied to mutation testing for test data generation: A comparative evaluation [J]. Journal of King Saud University-Computer and Information Sciences , 2020 , 2 ( 4 ): 514 - 521 .
钱忠胜 , 俞情媛 , 宋涛 , 等 . 基于支持向量机回归模型的测试用例生成与重用 [J]. 电子学报 , 2021 , 49 ( 7 ): 1386 - 1391 .
QIAN Zhong-sheng , YU Qing-yuan , SONG Tao , et al . Test case generation and reuse based on support vector machine regression model [J]. Acta Electronica Sinica , 2021 , 49 ( 7 ): 1386 - 1391 . (in Chinese)
范书平 , 张岩 , 马宝英 , 等 . 基于均衡优化理论的路径覆盖测试数据进化生成 [J]. 电子学报 , 2020 , 48 ( 7 ): 1303 - 1310 .
FAN Shu-ping , ZHANG Yan , MA Bao-ying , et al . Evolutionary generation of test data for paths coverage based on balance optimization theory [J]. Acta Electronica Sinica , 2020 , 48 ( 7 ): 1303 - 1310 . (in Chinese)
钱忠胜 , 祝洁 , 朱懿敏 , 等 . 结合关键点概率与路径相似度的多路径覆盖策略 [J]. 软件学报 , 2022 , 33 ( 2 ): 434 - 454 .
QIAN Zhong-sheng , ZHU Jie , ZHU Yi-min , et al . Multi-path coverage strategy combining key point probability and path similarity [J]. Journal of Software , 2022 , 33 ( 2 ): 434 - 454 . (in Chinese)
QIAN Zhongsheng , HONG Dafei , ZHAO Chang , et al . A strategy for multi-target paths coverage by improving individual information sharing [J]. KSII Transactions on Internet and Information Systems , 2019 , 13 ( 11 ): 5464 - 5488 .
杜莹 , 孙百才 , 巩敦卫 , 等 . 软件测试路径选择优化模型及其进化求解 [J]. 软件学报 , 2022 , 33 ( 9 ): 3297 - 3311 .
DU Ying , SUN Bai-cai , GONG Dun-wei , et al . Optimization model of path selection for software testing and its evolution-based solution [J]. Journal of Software , 2022 , 33 ( 9 ): 3297 - 3311 . (in Chinese)
DANG Xiangying , GONG Dunwei , YAO Xiangjuan , et al . Enhancement of mutation testing via fuzzy clustering and multi-population genetic algorithm [J]. IEEE Transactions on Software Engineering , 2022 , 48 ( 6 ): 2141 - 2156 .
SUN Baicai , GONG Dunwei , TIAN Tian , et al . Integrating an ensemble surrogate model's estimation into test data generation [J]. IEEE Transactions on Software Engineering , 2022 , 48 ( 4 ): 1336 - 1350 .
KALAIPRIYAN T , RAJESWARI M , DEBNATH B , et al . Directed artificial bee colony algorithm with revamped search strategy to solve global numerical optimization problems [J]. Automated Software Engineering , 2022 , 29 ( 1 ): 13 .
0
浏览量
12
下载量
0
CSCD
关联资源
相关文章
相关作者
相关机构
京公网安备11010802024621