MuTCR: Test Case Recommendation via Multi-Level Signature Matching

Weisong Sun, Weidong Qian, Bin Luo, Zhenyu Chen
{"title":"MuTCR: Test Case Recommendation via Multi-Level Signature Matching","authors":"Weisong Sun, Weidong Qian, Bin Luo, Zhenyu Chen","doi":"10.1109/AST58925.2023.00022","DOIUrl":null,"url":null,"abstract":"Off-the-shelf test cases provide developers with testing knowledge for their reference or reuse, which can help them reduce the effort of creating new test cases. Test case recommendation, a major way of achieving test case reuse, has been receiving the attention of researchers. The basic idea behind test case recommendation is that two similar test targets (methods under test) can reuse each other’s test cases. However, existing test case recommendation techniques either cannot be used in the cross-project scenario, or have low performance in terms of effectiveness and efficiency. In this paper, we propose a novel test case recommendation technique based on multi-level signature matching. The proposed multi-level signature matching consists of three matching strategies with different strict levels, including level-0 exact matching, level-1 fuzzy matching, and level-2 fuzzy matching. For the query test target given by the developer, level-0 exact matching helps to retrieve exact recommendations (test cases), while level-1 and level-2 fuzzy matching contribute to discovering richer relevant recommendations. We further develop a prototype called MuTCR for test case recommendation. We conduct comprehensive experiments to evaluate the effectiveness and efficiency of MuTCR. The experimental results demonstrate that compared with the state-of-the-art, MuTCR can recommend accurate test cases for more test targets. MuTCR is faster than the best baseline by three times based on the time cost. The user study is also performed to prove that the test cases recommended by MuTCR are useful in practice.","PeriodicalId":252417,"journal":{"name":"2023 IEEE/ACM International Conference on Automation of Software Test (AST)","volume":"50 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE/ACM International Conference on Automation of Software Test (AST)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/AST58925.2023.00022","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Off-the-shelf test cases provide developers with testing knowledge for their reference or reuse, which can help them reduce the effort of creating new test cases. Test case recommendation, a major way of achieving test case reuse, has been receiving the attention of researchers. The basic idea behind test case recommendation is that two similar test targets (methods under test) can reuse each other’s test cases. However, existing test case recommendation techniques either cannot be used in the cross-project scenario, or have low performance in terms of effectiveness and efficiency. In this paper, we propose a novel test case recommendation technique based on multi-level signature matching. The proposed multi-level signature matching consists of three matching strategies with different strict levels, including level-0 exact matching, level-1 fuzzy matching, and level-2 fuzzy matching. For the query test target given by the developer, level-0 exact matching helps to retrieve exact recommendations (test cases), while level-1 and level-2 fuzzy matching contribute to discovering richer relevant recommendations. We further develop a prototype called MuTCR for test case recommendation. We conduct comprehensive experiments to evaluate the effectiveness and efficiency of MuTCR. The experimental results demonstrate that compared with the state-of-the-art, MuTCR can recommend accurate test cases for more test targets. MuTCR is faster than the best baseline by three times based on the time cost. The user study is also performed to prove that the test cases recommended by MuTCR are useful in practice.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
MuTCR:通过多级签名匹配推荐测试用例
现成的测试用例为开发人员提供了可供参考或重用的测试知识,这可以帮助他们减少创建新测试用例的工作量。测试用例推荐作为实现测试用例重用的主要方法,一直受到研究者的关注。测试用例推荐背后的基本思想是两个相似的测试目标(测试中的方法)可以重用彼此的测试用例。然而,现有的测试用例推荐技术要么不能在跨项目场景中使用,要么在有效性和效率方面具有较低的性能。本文提出了一种基于多级签名匹配的测试用例推荐技术。本文提出的多级签名匹配包括三种严格级别不同的匹配策略,即0级精确匹配、1级模糊匹配和2级模糊匹配。对于开发人员给出的查询测试目标,0级精确匹配有助于检索准确的推荐(测试用例),而1级和2级模糊匹配有助于发现更丰富的相关推荐。我们进一步开发了一个名为MuTCR的原型,用于推荐测试用例。我们进行了全面的实验来评估MuTCR的有效性和效率。实验结果表明,与现有的方法相比,MuTCR可以为更多的测试目标推荐准确的测试用例。基于时间成本,MuTCR比最佳基线快三倍。用户研究也被执行,以证明MuTCR推荐的测试用例在实践中是有用的。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
FlakyCat: Predicting Flaky Tests Categories using Few-Shot Learning Evaluating the Trade-offs of Text-based Diversity in Test Prioritisation Cross-Project setting using Deep learning Architectures in Just-In-Time Software Fault Prediction: An Investigation AutoMetric: Towards Measuring Open-Source Software Quality Metrics Automatically Detecting Potential User-data Save & Export Losses due to Android App Termination
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1