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 条
[1]  
Aarts E., 2003, Local search in combinatorial optimization
[2]  
Ali S., 2010, 201001 SIM RES LAB
[3]   A Systematic Review of the Application and Empirical Investigation of Search-Based Test Case Generation [J].
Ali, Shaukat ;
Briand, Lionel C. ;
Hemmati, Hadi ;
Panesar-Walawege, Rajwinder K. .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2010, 36 (06) :742-762
[4]  
[Anonymous], 2006, Introduction to Data Mining
[5]  
[Anonymous], 1994, Encyclopedia of software Engineering
[6]  
Arcuri Andrea, 2010, Proceedings of the Third IEEE International Conference on Software Testing, Verification and Validation (ICST 2010), P469, DOI 10.1109/ICST.2010.16
[7]  
ARCURI A, 2011, P ACM IEEE INT C SOF
[8]   Search based software testing of object-oriented containers [J].
Arcuri, Andrea ;
Yao, Xin .
INFORMATION SCIENCES, 2008, 178 (15) :3075-3095
[9]  
Binder RV., 1999, Testing Object-Oriented Systems: Models, Patterns, and Tools
[10]   On the use of a similarity function for test case selection in the context of model-based testing [J].
Cartaxo, Emanuela G. ;
Machado, Patricia D. L. ;
Oliveira Neto, Francisco G. .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2011, 21 (02) :75-100