结合关键点概率与路径相似度的多路径覆盖策略
作者:
作者单位:

作者简介:

钱忠胜(1977-), 男, 博士, 教授, 博士生导师, CCF专业会员, 主要研究领域为智能化软件, 软件自动化, 智能推荐算法, 人工智能, 大数据, 数据挖掘;
祝洁(1996-), 女, 硕士, 主要研究领域为软件工程, 软件测试, 测试数据自动生成;
朱懿敏(1984-), 男, 博士生, CCF学生会员, 主要研究领域为人工智能, 机器学习;
俞情媛(1997-), 女, 硕士生, 主要研究领域为软件测试;
李端明(1995-), 男, 硕士生, 主要研究领域为软件测试;
宋佳(1997-), 女, 硕士生, 主要研究领域为软件测试

通讯作者:

钱忠胜,changesme@163.com

中图分类号:

TP311

基金项目:

国家自然科学基金(61762041); 江西省自然科学基金(20181BAB202009); 江西省教育厅科技重点项目(GJJ180250)


Multi-path Coverage Strategy Combining Key Point Probability and Path Similarity
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    利用多种群遗传算法解决多路径覆盖问题, 是测试数据自动生成领域一个重要的研究方向. 为了提高多路径覆盖测试数据自动生成的效率, 提出一种将关键点概率和路径相似度相结合的多路径覆盖策略. 首先, 将理论路径划分成易覆盖、难覆盖及不可达路径; 然后, 通过易覆盖路径统计关键点概率, 依此概率计算个体对生成测试数据的贡献度, 并利用贡献度改进适应度函数, 同时根据关键点概率对目标路径进行排序; 最后, 使用多种群遗传算法生成覆盖目标路径的测试数据, 在进化过程中, 子种群覆盖当前目标路径后, 继续尝试覆盖该目标路径的相似路径. 实验结果表明, 该方法能够有效地提高多路径覆盖测试数据生成的效率.

    Abstract:

    Using multi-population genetic algorithm to solve the problem of multi-path coverage is an important research direction in the field of automatic generation of test data. In order to improve the efficiency of multi-path coverage test data automatic generation, a multi-path coverage strategy combining key point probability and path similarity is proposed. Firstly, the theoretical path is divided into easily-covered, difficultly-covered, and unreachable paths. Then, the key point probability is counted through the easily-covered paths, the contribution of the individual to the generated test data is calculated by using this probability, and the contribution isusedto improve the fitness function, at the same time, the target path is sorted according to the key point probability. Finally, the test data covering the target path is generated by using multi-population genetic algorithm. After the sub-population covers the current target path during the evolution process, it continues to try to cover similar paths of the target path. The experimental results show that the proposed method can improve the efficiency of multi-path coverage to generate test data.

    参考文献
    相似文献
    引证文献
引用本文

钱忠胜,祝洁,朱懿敏,俞情媛,李端明,宋佳.结合关键点概率与路径相似度的多路径覆盖策略.软件学报,2022,33(2):434-454

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2020-05-30
  • 最后修改日期:2020-07-14
  • 录用日期:
  • 在线发布日期: 2022-01-25
  • 出版日期: 2022-02-06
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号