A Global Algorithm for Model-Based Test Suite Generation

被引:21
作者
Hessel, Anders [1 ]
Pettersson, Paul [2 ]
机构
[1] Uppsala Univ, Dept Informat Technol, Uppsala, Sweden
[2] Malardalen Univ, Dept Comp Sci & Elect, Vasteras, Sweden
关键词
Model-Based Testing; Model Checking; Test Case Generation;
D O I
10.1016/j.entcs.2007.08.005
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Model-based testing has been proposed as a technique to automatically verify that a system conforms to its specification. A popular approach is to use a model-checker to produce a set of test cases by formulating the test generation problem as a reachability problem. To guide the selection of test cases, a coverage criterion is often used. A coverage criterion can be seen as a set of items to be covered, called coverage items. We propose an on-the-fly algorithm that generates a test suite that covers all feasible coverage items. The algorithm returns a set of traces that includes a path fulfilling each item, without including redundant paths. The reachability algorithm explores a state only if it might increase the total coverage. The decision is global in the sense that it does not only regard each individual local search branch in isolation, but the total coverage in all branches together. For simpler coverage criteria as location of edge coverage, this implies that each model state is never explored twice. The algorithm presented in this paper has been implemented in the test generation tool UPPAAL CO(sic)ER. We present encouraging results from applying the tool to a set of experiments and in an industrial sized case study.
引用
收藏
页码:47 / 59
页数:13
相关论文
共 32 条
[1]   A THEORY OF TIMED AUTOMATA [J].
ALUR, R ;
DILL, DL .
THEORETICAL COMPUTER SCIENCE, 1994, 126 (02) :183-235
[2]  
Behrmann G., 2002, Formal Techniques in Real-Time and Fault-Tolerant Systems. 7th International Symposium, FTRTFT 2002. Proceedings (Lecture Notes in Computer Science Vol.2469), P3
[3]  
Bengtsson J., 1996, Computer Aided Verification. 8th International Conference, CAV '96. Proceedings, P244
[4]  
Blom J, 2005, LECT NOTES COMPUT SC, V3395, P125
[5]   Conformance tests for real-time systems with timed automata specifications [J].
Cardell-Oliver, Rachel .
Formal Aspects of Computing, 2000, 12 (05) :350-366
[6]   A FORMAL EVALUATION OF DATA FLOW PATH SELECTION CRITERIA [J].
CLARKE, LA ;
PODGURSKI, A ;
RICHARDSON, DJ ;
ZEIL, SJ .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1989, 15 (11) :1318-1332
[7]  
Daws C, 1998, LECT NOTES COMPUT SC, V1384, P313, DOI 10.1007/BFb0054180
[8]  
Ernits JP, 2006, LECT NOTES COMPUT SC, V4262, P85
[9]  
Fernandez J.-C., 1997, SCI COMPUTER PROGRAM, V29
[10]   AN APPLICABLE FAMILY OF DATA FLOW TESTING CRITERIA [J].
FRANKL, PG ;
WEYUKER, EJ .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1988, 14 (10) :1483-1498