期刊文献+

基于日志挖掘的微服务测试集缩减技术 被引量:1

Microservice Test Suite Minimization Technology Based on Logs Mining
下载PDF
导出
摘要 微服务系统每轮迭代过程中都需要进行回归测试,大量重复测试会造成资源浪费,可通过减少测试用例集的规模来降低成本,以提高测试效率.现有测试用例集缩减技术主要依赖系统规约和架构描述作为输入,对于具有服务自治、调用关系不确定等特点的微服务系统实用性受限.并且,现有测试用例集缩减技术很少考虑使用场景,测试用例集很难反映用户关切.提出了一种基于API网关层日志挖掘的测试用例集缩减技术,从API网关层日志中挖掘出能够反映服务使用场景的频繁调用路径,建立频繁路径与测试用例的关联关系,进而构建搜索图,并基于启发式搜索生成测试用例缩减集.描述了该技术的完整过程,并基于一个集成办公微服务系统进行了实验.实验结果表明:该技术能够缩减测试用例规模40%以上,且缺陷发现能力降幅不超过10%. 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%.
作者 陈立哲 吴际 杨海燕 张奎 CHEN Li-Zhe;WU Ji;YANG Hai-Yan;ZHANG Kui(School of Computer Science and Engineering,Beihang University,Beijing 100191,China)
出处 《软件学报》 EI CSCD 北大核心 2021年第9期2729-2743,共15页 Journal of Software
基金 国防科技创新特权。
关键词 微服务 软件测试 测试用例集缩减 日志挖掘 API网关层 microservice software testing test suite minimization logs mining API gateway layer
  • 相关文献

同被引文献27

引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部