基于路径相似表与个体迁移策略的多路径覆盖测试  

Approach to Multi-path Coverage Testing Based on Path Similarity Table and Individual Migration

在线阅读下载全文

作  者:钱忠胜[1] 孙志旺 俞情媛 秦朗悦 蒋鹏[1] 万子珑 王亚惠 QIAN Zhongsheng;SUN Zhiwang;YU Qingyuan;QIN Langyue;JIANG Peng;WAN Zilong;WANG Yahui(School of Information Management,Jiangxi University of Finance and Economics,Nanchang 330013,China)

机构地区:[1]江西财经大学信息管理学院,南昌330013

出  处:《计算机科学与探索》2024年第4期947-962,共16页Journal of Frontiers of Computer Science and Technology

基  金:国家自然科学基金(62262025);江西省自然科学基金(20224ACB202012)。

摘  要:将遗传算法用于多路径覆盖测试中是个研究热点,在新旧种群迭代过程中,旧种群中可能包含其他子种群的优秀个体,这部分个体未被充分利用,造成资源浪费;同时,种群中的个体数会远大于可达路径数,而每个个体都会经过某一条可达路径,这样会有多个个体经过同一条路径,导致重复计算个体与目标路径的相似度。基于此,提出结合路径相似表与个体迁移的多路径覆盖测试方法以提高测试效率。通过路径相似表存储已计算得到的路径相似度值,避免该值被重复计算,减少测试时间。在进化过程中,将个体路径与其他目标路径进行比较,若相似度达到阈值,则将此优秀个体迁移至该路径对应的子种群中,提高个体利用率并减少进化代数。由实验可知,该方法与其他六种同类经典方法在八个程序上的平均生成时间降低最高达44.64%,最低为2.64%,平均进化代数降低最高达35.08%,最低为6.13%,故该方法有效地提高了测试效率。The application of genetic algorithm in multi-path coverage testing is a research hotspot.In the process of iteration between the old and new populations,the old population may contain excellent individuals from other subpopulations,which are not fully utilized,resulting in resource waste.At the same time,the number of individuals in the population will be much greater than that of reachable paths,and each individual will go through a reachable path.This causes multiple individuals to pass through the same path,leading to repeated calculation of the similarity between the individual and the target path.Based on this,a multi-path coverage testing method combined with path similarity table and individual migration is proposed to improve testing efficiency.By storing the calculated path similarity value in the path similarity table,the value can be avoided from being calculated repeatedly and the testing time can be reduced.In the evolutionary process,the individual path is compared with other target paths,and if the similarity reaches the threshold,the excellent individual is migrated to the sub-population corresponding to the path,which improves the utilization rate of individuals and reduces the evolutionary generation.Experiments show that,compared with other six classic methods,the proposed method reduces the average generation time on eight programs by up to 44.64%,and the minimum is 2.64%,and the average evolution generation is reduced by up to 35.08%,and the minimum is 6.13%.Therefore,the proposed method effectively improves the test efficiency.

关 键 词:测试用例 路径相似表 个体迁移 多路径覆盖 多种群遗传算法 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象