首页 | 本学科首页   官方微博 | 高级检索  
     


A Global Algorithm for Model-Based Test Suite Generation
Authors:Anders Hessel  Paul Pettersson  
Affiliation:aDepartment of Information Technology, Uppsala University, Uppsala, Sweden;bDepartment of Computer Science and Electronics, Mälardalen University, Västeras, Sweden
Abstract: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 cotick, check marker. We present encouraging results from applying the tool to a set of experiments and in an industrial sized case study.
Keywords:Model-Based Testing   Model Checking   Test Case Generation
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号