Reducing the Discard of MBT Test Cases

Thomaz Diniz, Everton L. G. Alves, Anderson G. F. Silva, W. Andrade
{"title":"Reducing the Discard of MBT Test Cases","authors":"Thomaz Diniz, Everton L. G. Alves, Anderson G. F. Silva, W. Andrade","doi":"10.5753/jserd.2020.602","DOIUrl":null,"url":null,"abstract":"Model-Based Testing (MBT) is used for generating test suites from system models. However, as software evolves, its models tend to be updated, which may lead to obsolete test cases that are often discarded. Test case discard can be very costly since essential data, such as execution history, are lost. In this paper, we investigate the use of distance functions and machine learning to help to reduce the discard of MBT tests. First, we assess the problem of managing MBT suites in the context of agile industrial projects. Then, we propose two strategies to cope with this problem: (i) a pure distance function-based. An empirical study using industrial data and ten different distance functions showed that distance functions could be effective for identifying low impact edits that lead to test cases that can be updated with little effort. We also found the optimal configuration for each function. Moreover, we showed that, by using this strategy, one could reduce the discard of test cases by 9.53%; (ii) a strategy that combines machine learning with distance values. This strategy can classify the impact of edits in use case documents with accuracy above 80%; it was able to reduce the discard of test cases by 10.4% and to identify test cases that should, in fact, be discarded.","PeriodicalId":189472,"journal":{"name":"J. Softw. Eng. Res. Dev.","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-08-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"J. Softw. Eng. Res. Dev.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.5753/jserd.2020.602","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Model-Based Testing (MBT) is used for generating test suites from system models. However, as software evolves, its models tend to be updated, which may lead to obsolete test cases that are often discarded. Test case discard can be very costly since essential data, such as execution history, are lost. In this paper, we investigate the use of distance functions and machine learning to help to reduce the discard of MBT tests. First, we assess the problem of managing MBT suites in the context of agile industrial projects. Then, we propose two strategies to cope with this problem: (i) a pure distance function-based. An empirical study using industrial data and ten different distance functions showed that distance functions could be effective for identifying low impact edits that lead to test cases that can be updated with little effort. We also found the optimal configuration for each function. Moreover, we showed that, by using this strategy, one could reduce the discard of test cases by 9.53%; (ii) a strategy that combines machine learning with distance values. This strategy can classify the impact of edits in use case documents with accuracy above 80%; it was able to reduce the discard of test cases by 10.4% and to identify test cases that should, in fact, be discarded.
减少MBT测试用例的丢弃
基于模型的测试(MBT)用于从系统模型生成测试套件。然而,随着软件的发展,它的模型倾向于被更新,这可能会导致过时的测试用例经常被丢弃。测试用例丢弃的代价可能非常高昂,因为基本数据(如执行历史)会丢失。在本文中,我们研究了使用距离函数和机器学习来帮助减少MBT测试的丢弃。首先,我们评估了在敏捷工业项目背景下管理MBT套件的问题。然后,我们提出了两种策略来应对这一问题:(i)基于纯距离函数的方法。一项使用工业数据和十种不同距离函数的实证研究表明,距离函数对于识别低影响编辑是有效的,这些编辑导致测试用例可以轻松更新。我们还找到了每个函数的最佳配置。此外,我们表明,通过使用这种策略,可以减少9.53%的测试用例丢弃;(ii)将机器学习与距离值相结合的策略。该策略可以对用例文档中编辑的影响进行分类,准确率在80%以上;它能够将测试用例的丢弃率降低10.4%,并识别出实际上应该被丢弃的测试用例。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信