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 条
  • [31] Finite State Machine Based Countermeasure for Cryptographic Algorithms
    Attari, Sadegh
    Shahmirzadi, Aein Rezaei
    Salmasizadeh, Mahmoud
    Gholampour, Iman
    2017 14TH INTERNATIONAL ISC (IRANIAN SOCIETY OF CRYPTOLOGY) CONFERENCE ON INFORMATION SECURITY AND CRYPTOLOGY (ISCISC), 2017, : 58 - 63
  • [32] Assessing test suites of extended finite state machines against model- and code-based faults
    El-Fakih, K.
    Alzaatreh, Ayman
    Turker, Uraz Cengiz
    SOFTWARE TESTING VERIFICATION & RELIABILITY, 2022, 32 (07)
  • [33] Reusing Test Cases on Graph Product Line Variants: Results from a State-of-the-Practice Test Data Generation Tool
    Mendonca, Willian D. F.
    Assuncao, Wesley K. G.
    Vergilio, Silvia R.
    SAST 2019: PROCEEDINGS OF THE IV BRAZILIAN SYMPOSIUM ON SYSTEMATIC AND AUTOMATED SOFTWARE TESTING, 2019, : 52 - 61
  • [34] Synergizing Graph-Based Methods with Biologically Inspired Algorithms for Enhanced Robot Path Planning Efficiency
    Sellers, Timothy
    Lei, Tingjun
    Carruth, Daniel W.
    Luo, Chaomin
    UNMANNED SYSTEMS TECHNOLOGY XXVI, 2024, 13055
  • [35] Hardness of Deriving Invertible Sequences from Finite State Machines
    Hierons, Robert M.
    Mousavi, Mohammad Reza
    Thomsen, Michael Kirkedal
    Turker, Uraz Cengiz
    SOFSEM 2017: THEORY AND PRACTICE OF COMPUTER SCIENCE, 2017, 10139 : 147 - 160
  • [36] A Dependence Graph-based Test Coverage Analysis Technique for Object-Oriented Programs
    Najumudheen, E. S. F.
    Mall, Rajib
    Samanta, Debasis
    PROCEEDINGS OF THE 2009 SIXTH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: NEW GENERATIONS, VOLS 1-3, 2009, : 763 - +
  • [37] An Approach to Generate Safety Validation Test Cases from UML Activity Diagram
    Tiwari, Saurabh
    Gupta, Atul
    2013 20TH ASIA-PACIFIC SOFTWARE ENGINEERING CONFERENCE (APSEC 2013), VOL 1, 2013, : 189 - 198
  • [38] Modelling of Parameterized Discrete Control Algorithms With Use of Finite State Machines in TIA Portal Environment
    Andrzejewski, Grzegorz
    Zajac, Wojciech
    INTERNATIONAL JOURNAL OF ELECTRONICS AND TELECOMMUNICATIONS, 2018, 64 (02) : 249 - 254
  • [39] An Automated Approach to Generate Test Cases From Use Case Description Model
    Alrawashed, Thamer A.
    Almomani, Ammar
    Althunibat, Ahmad
    Tamimi, Abdelfatah
    CMES-COMPUTER MODELING IN ENGINEERING & SCIENCES, 2019, 119 (03): : 409 - 425
  • [40] From Statecharts into Model Checking: A Hierarchy-based Translation and Specification Patterns Properties to Generate Test Cases
    de Santiago Junior, Valdivino Alexandre
    Costa da Silva, Felipe Elias
    II BRAZILIAN SYMPOSIUM ON SYSTEMATIC AND AUTOMATED SOFTWARE TESTING (SAST 2017), 2017,