The Computer Journal Advance Access originally published online on May 20, 2008
The Computer Journal 2009 52(3):334-347; doi:10.1093/comjnl/bxn027
| ||||||||||||||||||||||||||||||||||||||||||||||||||
Test Selection for Hierarchical and Communicating Finite State Machines
Department of Computer Science, University of Pitesti, Str Targu din Vale 1, 0300 Pitesti, Romania
Corresponding author: florentin.ipate{at}ifsoft.ro
Received 7 June 2007; revised 8 February 2008
State-based languages are widely used for modelling systems that have an internal state, such as communications protocols and embedded control systems. As testing is a vital part of system development, this has led to much interest in testing from finite state machines (FSMs). However, complex systems are seldom designed in one step; usually, the design is constructed gradually, through a process of refinement. In the case of state-based models, this may lead to a hierarchy of machines. Furthermore, some of the components of the hierarchy may exhibit concurrent behaviour. In this paper, we present a method for generating tests for a hierarchical FSM by reusing and refining the tests for the FSM components of the hierarchy. The method is also adapted for testing a system of communicating FSMs, in which the communication is one-directional, from one master to one or more slaves.
Key Words: finite state machines testing specification-based testing