Accelerating Finite State Machine-Based Testing Using Reinforcement Learning

被引:0
作者
Turker, Uraz Cengiz [1 ]
Hierons, Robert M. [2 ]
El-Fakih, Khaled [3 ]
Mousavi, Mohammad Reza [4 ]
Tyukin, Ivan Y. [5 ]
机构
[1] Univ Lancaster, Sch Comp & Commun, Lancaster LA1 4YW, England
[2] Univ Sheffield, Dept Comp Sci, Sheffield S10 2AH, England
[3] Amer Univ Sharjah, Dept Comp Sci & Engn, Sharjah 26666, U Arab Emirates
[4] Kings Coll London, Dept Informat, London WC2R 2LS, England
[5] Kings Coll London, Dept Math, London WC2R 2LS, England
基金
英国工程与自然科学研究理事会;
关键词
Finite state machines; reset sequences; state identification sequences; reinforcement learning; Q-value function; software engineering/software/program verification; software engineering/test design; software engineering/testing and debugging; RESET SEQUENCES; ALGORITHMS; IDENTIFICATION; AUTOMATA; SETS;
D O I
10.1109/TSE.2024.3358416
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:574 / 597
页数:24
相关论文
共 83 条
[1]  
Almulla H., 2021, arXiv
[2]   LEARNING REGULAR SETS FROM QUERIES AND COUNTEREXAMPLES [J].
ANGLUIN, D .
INFORMATION AND COMPUTATION, 1987, 75 (02) :87-106
[3]  
[Anonymous], 1992, RFC1350
[4]  
[Anonymous], 1991, P IJCAI
[5]  
[Anonymous], 1962, Introduction to the theory of finite-state machines
[6]  
[Anonymous], 1992, RFC793
[7]  
Bengtsson J., 1996, Hybrid Systems III. Verification and Control, P232, DOI 10.1007/BFb0020949
[8]  
Bhanpurawala A., 2022, arXiv, DOI [10.48550/arXiv.2210.05623, DOI 10.48550/ARXIV.2210.05623]
[9]   DISTINGUISHING SETS FOR OPTIMAL STATE IDENTIFICATION IN CHECKING EXPERIMENTS [J].
BOUTE, RT .
IEEE TRANSACTIONS ON COMPUTERS, 1974, C 23 (08) :874-877
[10]  
Boyan J. A., 1995, Advances in Neural Information Processing Systems 7, P369