Comparing Graph-Based Algorithms to Generate Test Cases from Finite State Machines

被引:6
|
作者
Mariano, Matheus Monteiro [1 ]
de Souza, Erica Ferreira [2 ]
Endo, Andre Takeshi [2 ]
Vijaykumar, Nandamudi Lankalapalli [3 ,4 ]
机构
[1] Natl Inst Space Res, Lab Comp & Appl Math, INPE Av Astronautas,1-758 Jardim Granja, BR-12227010 Sao Jose Dos Campos, SP, Brazil
[2] Fed Univ Technol, Dept Comp, UTFPR Av Alberto Carazzai 1640, BR-86300000 Cornelio Procopio, PR, Brazil
[3] Univ Fed Sao Paulo, ICT Inst Sci & Technol, Av Cesare Monsueto Giulio Lattes 1201, Sao Jose Dos Campos, Brazil
[4] Natl Inst Space Res, LABAC, Av Astronautas 1758, Sao Jose Dos Campos, Brazil
来源
JOURNAL OF ELECTRONIC TESTING-THEORY AND APPLICATIONS | 2019年 / 35卷 / 06期
关键词
Software testing; Model based testing; Finite state machine; Graph-based algorithms; SOFTWARE; COVERAGE; DESIGN;
D O I
10.1007/s10836-019-05844-6
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
Model-Based Testing (MBT) is a well-known technique that employs formal models to represent reactive systems' behavior and generates test cases. Such systems have been specified and verified using mostly Finite State Machines (FSMs). There is a plethora of test generation algorithms in the literature; most of them are based on graphs once an FSM can be formally defined as a graph. Nevertheless, there is a lack of studies on analyzing cost and efficiency of FSM-based test generation algorithms. This study compares graph-based algorithms adopted to generate test cases from FSM models. In particular, we compare the Chinese Postman Problem (CPP) and H-Switch Cover (HSC) algorithms with the well-known Depth-First Search (DFS) and Breadth-First Search (BFS) algorithms in the context of covering all-transitions and all-transition-pairs criteria in an FSM. First, a systematic literature mapping was conducted to summarize the methods that have been adopted in MBT, considering FSMs. Second, the main methods found were implemented and analyzed on randomly-generated FSMs, as well as real-world models that represent embedded systems of space applications. To make comparisons, we considered analyses in terms of cost (time), efficiency (mutant analysis) and characteristics of the generated test suites (number of test cases, average length of test cases, largest and smallest test cases, standard deviation and distribution of test cases). In general, CPP presented the best results in terms of number of test cases and test suite size. In addition, CPP also presented low distribution of average length compared to other algorithms.
引用
收藏
页码:867 / 885
页数:19
相关论文
共 50 条
  • [41] STP-based verification and synthesis of state opacity for logical finite state machines
    Han, Weiwei
    Li, Yi
    Zhang, Zhipeng
    Xia, Chengyi
    INFORMATION SCIENCES, 2023, 641
  • [42] The use of finite state machines for task-based machine toot control
    Kruth, JP
    Van Ginderachter, T
    Tanaya, PI
    Valckenaers, P
    COMPUTERS IN INDUSTRY, 2001, 46 (03) : 247 - 258
  • [43] Novel PUF-Based Error Detection Methods in Finite State Machines
    Hammouri, Ghaith
    Akdemir, Kahraman
    Sunar, Berk
    INFORMATION SECURITY AND CRYPTOLOGY - ICISC 2008, 2009, 5461 : 235 - 252
  • [44] Exposing SQL Injection Vulnerability through Penetration Test Based on Finite State Machine
    Liu, Lei
    Xu, Jing
    Guo, Chenkai
    Kang, Jiehui
    Xu, Sihan
    Zhang, Biao
    2016 2ND IEEE INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATIONS (ICCC), 2016, : 1171 - 1175
  • [45] An Autonomous Clock Gating Technique in Finite State Machines Based on Registers Partitioning
    Nag, Abhishek
    Pradhan, Sambhu Nath
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2016, 25 (05)
  • [46] A new look at the critical observability of finite state machines from an algebraic viewpoint
    Yan, Yongyi
    Deng, He
    Chen, Zengqiang
    ASIAN JOURNAL OF CONTROL, 2022, 24 (06) : 3056 - 3065
  • [47] Extended Finite State Machines-Based Testing Using Metaheuristic Search-Based Techniques: Issues, and Open Challenges
    Saeed, Aneesa
    Ab Hamid, Siti Hafizah
    2015 9TH MALAYSIAN SOFTWARE ENGINEERING CONFERENCE (MYSEC2015), 2015, : 25 - 30
  • [48] Generating Event Sequence-Based Test Cases Using GUI Runtime State Feedback
    Yuan, Xun
    Memon, Atif M.
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2010, 36 (01) : 81 - 95
  • [49] An approach to the inference of finite state machines based on a gravitationally-inspired search algorithm
    Spichakova, Margarita
    PROCEEDINGS OF THE ESTONIAN ACADEMY OF SCIENCES, 2013, 62 (01) : 39 - 46
  • [50] Exhaustive property oriented model-based testing with symbolic finite state machines
    Huang, Wen-ling
    Krafczyk, Niklas
    Peleska, Jan
    SCIENCE OF COMPUTER PROGRAMMING, 2024, 231