基于日志挖掘的微服务测试集缩减技术
作者:
作者单位:

作者简介:

陈立哲(1985-),男,工程师,主要研究领域为软件测试,数据挖掘,机器学习.
杨海燕(1974-),女,讲师,主要研究领域为软件测试,软件安全性与可靠性.
吴际(1974-),男,博士,副教授,博士生导师,CCF专业会员,主要研究领域为软件测试,软件建模,软件安全性与可靠性.
张奎(1985-),男,讲师,主要研究领域为基于模型的软件设计与验证,软件成本度量,自然语言处理.

通讯作者:

吴际,E-mail:wuji@buaa.edu.cn

中图分类号:

TP311

基金项目:

国防科技创新特权


Microservice Test Suite Minimization Technology Based on Logs Mining
Author:
Affiliation:

Fund Project:

Privilege Projects of National Defense Science and Technology Innovation

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

    微服务系统每轮迭代过程中都需要进行回归测试,大量重复测试会造成资源浪费,可通过减少测试用例集的规模来降低成本,以提高测试效率.现有测试用例集缩减技术主要依赖系统规约和架构描述作为输入,对于具有服务自治、调用关系不确定等特点的微服务系统实用性受限.并且,现有测试用例集缩减技术很少考虑使用场景,测试用例集很难反映用户关切.提出了一种基于API网关层日志挖掘的测试用例集缩减技术,从API网关层日志中挖掘出能够反映服务使用场景的频繁调用路径,建立频繁路径与测试用例的关联关系,进而构建搜索图,并基于启发式搜索生成测试用例缩减集.描述了该技术的完整过程,并基于一个集成办公微服务系统进行了实验.实验结果表明:该技术能够缩减测试用例规模40%以上,且缺陷发现能力降幅不超过10%.

    Abstract:

    In each iteration of microservice system, regression testing should be executed. A large number of repeat testing will cause waste of resources. Therefore, it is necessary to minimize the test suite to reduce costs and to improve testing efficiency. Current test suite minimization technologies mainly rely on system specification and architecture description as input, which is limited to the practicability of microservice system with the characteristics of service autonomy and uncertain call relationship. Moreover, current test suite minimization technologies rarely take the usage scenarios into consideration, and the test suite is difficult to reflect user's concerns. This study proposes a test suite minimization technology based on API gateway access logs mining. This technology mines frequent paths from API gateway access logs which reflects the dynamic operation of microservice system. The relationship between frequent paths and test cases is established to construct search graph. Then, origin test suite is minimized with heuristic search of the graph. This paper explains the whole process of the technology. The experiments based on an integrated OA microservice system show that the scale of the test suite is reduced by more than 40%, and its defect detection ability is reduced by no more than 10%.

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

陈立哲,吴际,杨海燕,张奎.基于日志挖掘的微服务测试集缩减技术.软件学报,2021,32(9):2729-2743

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

京公网安备 11040202500063号