Connectivity Testing Through Model-Checking
2004, Lecture Notes in Computer Science
https://doi.org/10.1007/978-3-540-30232-2_11Abstract
In this paper we show how to automatically generate test sequences that are aimed at testing the interconnections of embedded and communicating systems. Our proposal is based on the connectivity fault model proposed by , where faults may occur in the interface between the software and its environment rather than in the software implementation. We show that the test generation task can be carried out by solving a reachability problem in a system consisting essentially of a specification of the communicating system and its fault model. Our technique can be applied using most off-the-shelf model-checking tools to synthesize minimal test sequences, and we demonstrate it using the UppAal realtime model-checker. We present two algorithms for generating minimal tests: one for single faults and one for multiple faults. Moreover, we demonstrate how to exploit the unique time-and cost-planning-facilities of UppAal to derive cheapest possible test suites for restricted types of timed systems.
References (16)
- R. Alur and D. L. Dill. A Theory of Timed Automata. Theoretical Computer Science, 126(2):183-235, April 1994. 181
- P. Ammann, P. E. Black, and W. Majurski. Using model checking to generate tests from specifications. In ICFEM, page 46, 1998. 170, 178
- P. Ammann, W. Ding, and D. Xu. Using a model checker to test safety properties. 170
- G. Behrmann, A. Fehnker, T. Hune, K. G. Larsen, P. Pettersson, and J. Romijn. Efficient Guiding Towards Cost-Optimality in Uppaal. In T. Margaria and W. Yi, editors, TACAS 2001, number 2031 in LNCS, pages 174-188. Springer-Verlag, 2001. 182
- J. Callahan, F. Schneider, and S. Easterbrook. Automated software testing using modelchecking. In 1996 SPIN Workshop, August 1996. Also WVU Report NASA- IVV-96-022. 170
- A. Engels, L. Feijs, and S. Mauw:. Test generation for intelligent networks using model checking. In Ed Brinksma, editor, Tools and Algorithms for the Construc- tion and Analysis of Systems. TACAS'97, number 1217 in LNCS, 1997. 170
- A. Gargantini and C. L. Heitmeyer. Using model checking to generate tests from requirements specifications. In ESEC / SIGSOFT FSE, pages 146-162, 1999. 170
- Jens Chr. Godskesen. Complexity issues in connectivity testing. In Ed Brinksma and Jan Tretmans, editors, Proceedings of the Workshop on Formal Approaches to Testing of Software, FATES '01, (Aalborg, Denmark, August 25, 2001), 2001. 167, 168, 169, 180
- A. Hessel, K. G. Larsen, B. Nielsen, P. Pettersson, and A. Skou. Time-Optimal Test Cases for Real-Time Systems. In 3rd Intl. Workshop on Formal Approaches to Testing of Software (FATES 2003), Montréal, Québec, Canada, October 2003. 170, 181
- H. Hong, I. Lee, O. Sokolsky, and S. Cha. Automatic test generation from state- charts using model checking. In Ed Brinksma and Jan Tretmans, editors, Work- shop on Formal Approaches to Testing of Software, FATES '01, (Aalborg, Den- mark, August 25, 2001), 2001. 170
- H. S. Hong, I. Lee, O. Sokolsky, and H. Ural. A Temporal Logic Based Theory of Test Coverage and Generation. In J.-P. Katoen and P. Stevens, editors, TACAS 2002, pages 327-341. Kluwer Academic Publishers, April 2002. 170
- K. G. Larsen, G. Behrmann, E. Brinksma, A. Fehnker, T. Hune, P. Pettersson, and J. Romijn. As cheap as possible: Efficient cost-optimal reachability for priced timed automat. In G. Berry, H. Comon, and A. Finkel, editors, Proc. of CAV 2001, number 2102 in LNSC, pages 493-505. Springer-Verlag, 2001. 182
- K. G. Larsen, P. Pettersson, and W. Yi. UppAal in a Nutshell. International Journal on Software Tools for Technology Transfer, 1(1):134-152, 1997. 169
- Magee and Kramer. Concurrency: State Models and Java Programs. Wiley, 2002. 178
- M. P. E. Heimdahl and S. Rayadurgam and W. Visser and G. Devaraj and J. Gao. Auto-generating Test Sequences Using Model Checkers: A Case Study. In A. Petrenko and A. Ulrich, editors, 3rd Intl. Workshop on Formal Approaches to Testing of Software, FATES 2003, volume 2931 of LNCS, pages 42-59, Montréal, Québec, CA, 2004. 170
- J. G. Springintveld, F. W. Vaandrager, and P. R. D'Argenio. Testing timed au- tomata. Theoretical Computer Science, 254(1-2), March 2001. 181