Accelerating Finite State Machine-Based Testing Using Reinforcement Learning
Uraz Cengiz Turker,Robert M. Hierons,Khaled El-Fakih,Mohammad Reza Mousavi,Ivan Y. Tyukin,Uraz Cengiz Türker
DOI: https://doi.org/10.1109/tse.2024.3358416
IF: 7.4
2024-03-19
IEEE Transactions on Software Engineering
Abstract:Testing is a crucial phase in the development of complex systems, and this has led to interest in automated test generation techniques based on state-based models. Many approaches use models that are types of finite state machine (FSM). Corresponding test generation algorithms typically require that certain test components, such as reset sequences (RSs) and preset distinguishing sequences (PDSs), have been produced for the FSM specification. Unfortunately, the generation of RSs and PDSs is computationally expensive, and this affects the scalability of such FSM-based test generation algorithms. This paper addresses this scalability problem by introducing a reinforcement learning framework: the Q-Graph framework for MBT. We show how this framework can be used in the generation of RSs and PDSs and consider both (potentially partial) timed and untimed models. The proposed approach was evaluated using three types of FSMs: randomly generated FSMs, FSMs from a benchmark, and an FSM of an Engine Status Manager for a printer. In experiments, the proposed approach was much faster and used much less memory than the state-of-the-art methods in computing PDSs and RSs.
engineering, electrical & electronic,computer science, software engineering