Analysis of distance functions for similarity-based test suite reduction in the context of model-based testing

被引:22
作者
Victor Barbosa Coutinho, Ana Emilia [1 ]
Cartaxo, Emanuela Gadelha [1 ]
de Lima Machado, Patricia Duarte [1 ]
机构
[1] Fed Univ Campina Grande UFCG, Software Practices Lab SPLab, Campina Grande, PB, Brazil
关键词
Test suite reduction; Model-based testing; Distance functions; SELECTION;
D O I
10.1007/s11219-014-9265-z
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Test suite reduction strategies aim to produce a smaller and representative suite that presents the same coverage as the original one but is more cost-effective. In the model-based testing (MBT) context, reduction is crucial since automatic generation algorithms may blindly produce several similar test cases. In order to define the degree of similarity between test cases, researchers have investigated a number of distance functions. However, there is still little or no knowledge on whether and how they influence on the performance of reduction strategies, particularly when considering MBT practices. This paper investigates the effectiveness of distance functions in the scope of a MBT reduction strategy based on the similarity degree of test cases. We discuss six distance functions and apply them to three empirical studies. The first two studies are controlled experiments focusing on two real-world applications (and real faults) and ten synthetic specifications automatically generated from the configuration of each application (and faults randomly generated). In the third study, we also apply the reduction strategy to two subsequent versions of an industrial application by considering real faults detected. Results show that the choice of a distance function has little influence on the size of the reduced test suite. However, as reduced suites are different depending on the distance function applied, the choice can significantly affect the fault coverage. Moreover, it can also affect the stability of the reduction strategy regarding coverage of different sets of faults on different executions.
引用
收藏
页码:407 / 445
页数:39
相关论文
共 50 条
[41]   Model-based testing as a service [J].
Herbold, Steffen ;
Hoffmann, Andreas .
INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2017, 19 (03) :271-279
[42]   Compositionality in Model-Based Testing [J].
van Cuyck, Gijs ;
van Arragon, Lars ;
Tretmans, Jan .
TESTING SOFTWARE AND SYSTEMS, ICTSS 2023, 2023, 14131 :202-218
[43]   Similarity-based attribute reduction in rough set theory: a clustering perspective [J].
Jia, Xiuyi ;
Rao, Ya ;
Shang, Lin ;
Li, Tongjun .
INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2020, 11 (05) :1047-1060
[44]   Model-based testing as a service [J].
Steffen Herbold ;
Andreas Hoffmann .
International Journal on Software Tools for Technology Transfer, 2017, 19 :271-279
[45]   Reusable Model-Based Testing [J].
Olimpiew, Erika Mir ;
Gomaa, Hassan .
FORMAL FOUNDATIONS OF REUSE AND DOMAIN ENGINEERING, PROCEEDINGS, 2009, 5791 :76-85
[46]   Towards a Method for Combined Model-based Testing and Analysis [J].
Nielsen, Brian .
PROCEEDINGS OF THE 2014 2ND INTERNATIONAL CONFERENCE ON MODEL-DRIVEN ENGINEERING AND SOFTWARE DEVELOPMENT (MODELSWARD 2014), 2014, :609-618
[47]   Abstractions for Model-Based Testing [J].
Prenninger, Wolfgang ;
Pretschner, Alexander .
ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2005, 116 :59-71
[48]   RATE: A model-based testing approach that combines model refinement and test execution [J].
Bombarda, Andrea ;
Bonfanti, Silvia ;
Gargantini, Angelo ;
Lei, Yu ;
Duan, Feng .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2023, 33 (02)
[49]   AI-Based Enhancement of Test Models in an Industrial Model-Based Testing Tool [J].
Mohacsi, Stefan ;
Felderer, Michael .
2021 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2021), 2021, :636-638
[50]   Combining Model-Based and Risk-Based Testing for Effective Test Case Generation [J].
Gebizli, Ceren Sahin ;
Metin, Duygu ;
Sozer, Hasan .
2015 IEEE EIGHTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2015,