Achieving Scalable Model-Based Testing Through Test Case Diversity

被引:149
作者
Hemmati, Hadi [1 ,2 ]
Arcuri, Andrea [3 ]
Briand, Lionel [1 ,2 ]
机构
[1] Simula Res Lab, Fornebu, Norway
[2] Univ Oslo, N-0316 Oslo, Norway
[3] Simula Res Lab, N-1325 Lysaker, Norway
关键词
Verification; Test case selection; test case minimization; model-based testing; similarity function; search-based software engineering; TEST-SUITE REDUCTION; ALGORITHMS; PRIORITIZATION;
D O I
10.1145/2430536.2430540
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The increase in size and complexity of modern software systems requires scalable, systematic, and automated testing approaches. Model-based testing (MBT), as a systematic and automated test case generation technique, is being successfully applied to verify industrial-scale systems and is supported by commercial tools. However, scalability is still an open issue for large systems, as in practice there are limits to the amount of testing that can be performed in industrial contexts. Even with standard coverage criteria, the resulting test suites generated by MBT techniques can be very large and expensive to execute, especially for system level testing on real deployment platforms and network facilities. Therefore, a scalable MBT technique should be flexible regarding the size of the generated test suites and should be easily accommodated to fit resource and time constraints. Our approach is to select a subset of the generated test suite in such a way that it can be realistically executed and analyzed within the time and resource constraints, while preserving the fault revealing power of the original test suite to a maximum extent. In this article, to address this problem, we introduce a family of similarity-based test case selection techniques for test suites generated from state machines. We evaluate 320 different similarity-based selection techniques and then compare the effectiveness of the best similarity-based selection technique with other common selection techniques in the literature. The results based on two industrial case studies, in the domain of embedded systems, show significant benefits and a large improvement in performance when using a similarity-based approach. We complement these analyses with further studies on the scalability of the technique and the effects of failure rate on its effectiveness. We also propose a method to identify optimal tradeoffs between the number of test cases to run and fault detection.
引用
收藏
页数:42
相关论文
共 63 条
[41]  
Manning C.D., 2008, Introduction to Information Retrieval
[42]   An empirical study of test case filtering techniques based on exercising information flows [J].
Masri, Wes ;
Podgurski, Andy ;
Leon, David .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2007, 33 (07) :454-477
[43]  
MATHUR AP, 2008, FDN SOFTWARE TESTING
[44]   Call-stack coverage for GUI test suite reduction [J].
McMaster, Scott ;
Memon, Atif M. .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2008, 34 (01) :99-115
[45]   Evolutionary Algorithms for Constrained Parameter Optimization Problems [J].
Michalewicz, Zbigniew ;
Schoenauer, Marc .
EVOLUTIONARY COMPUTATION, 1996, 4 (01) :1-32
[46]  
Moscato P, 2010, INT SER OPER RES MAN, V146, P141, DOI 10.1007/978-1-4419-1665-5_6
[47]   Using component metadata to regression test component-based software [J].
Orso, Alessandro ;
Do, Hyunsook ;
Rothermel, Gregg ;
Harrold, Mary Jean ;
Rosenblum, David S. .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2007, 17 (02) :61-94
[48]  
Pender T., 2003, UML BIBLE
[49]  
Ramanathan MK, 2008, APPLIED COMPUTING 2008, VOLS 1-3, P667
[50]   Empirical studies of test-suite reduction [J].
Rothermel, G ;
Harrold, MJ ;
von Ronne, J ;
Hong, C .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2002, 12 (04) :219-249