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 条
  • [21] Parallel Algorithms for Testing Finite State Machines: Generating UIO Sequences
    Hierons, Robert M.
    Turker, Uraz Cengiz
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2016, 42 (11) : 1077 - 1091
  • [22] A bounded incremental test generation algorithm for finite state machines
    Pap, Zoltan
    Subramaniam, Mahadevan
    Kovacs, Gabor
    Nemeth, Gabor Arpad
    TESTING OF SOFTWARE AND COMMUNICATING SYSTEMS, PROCEEDINGS, 2007, 4581 : 244 - +
  • [23] Model-based test case generation from UML sequence diagrams using extended finite state machines
    Mauricio Rocha
    Adenilso Simão
    Thiago Sousa
    Software Quality Journal, 2021, 29 : 597 - 627
  • [24] Model-based test case generation from UML sequence diagrams using extended finite state machines
    Rocha, Mauricio
    Simao, Adenilso
    Sousa, Thiago
    SOFTWARE QUALITY JOURNAL, 2021, 29 (03) : 597 - 627
  • [25] Assesing professional skills in a multi-scale environment by means of graph-based algorithms
    Maria Alvarez-Rodriguez, Jose
    Colomo-Palacios, Ricardo
    2014 EUROPEAN NETWORK INTELLIGENCE CONFERENCE (ENIC), 2014, : 106 - 113
  • [26] Graph-based resource allocation algorithms for multiuser downlink MIMO-OFDMA networks
    Zaki, Ahmed N.
    Fapojuwo, Abraham O.
    WIRELESS COMMUNICATIONS & MOBILE COMPUTING, 2015, 15 (02) : 243 - 259
  • [27] ReFSM: Reverse engineering from protocol packet traces to test generation by extended finite state machines
    Lin, Ying-Dar
    Lai, Yu-Kuen
    Bui, Quan Tien
    Lai, Yuan-Cheng
    JOURNAL OF NETWORK AND COMPUTER APPLICATIONS, 2020, 171
  • [28] Testing as collecting of evidence: An integrated approach to test generation for finite state machines
    Kapus-Kolar, Monika
    COMPUTER JOURNAL, 2007, 50 (03) : 315 - 331
  • [29] Validated Test Models for Software Product Lines: Featured Finite State Machines
    Fragal, Vanderson Hafemann
    Simao, Adenilso
    Mousavi, Mohammad Reza
    FORMAL ASPECTS OF COMPONENT SOFTWARE (FACS 2016), 2017, 10231 : 210 - 227
  • [30] Knowledge graph-based manufacturing process planning: A state-of-the-art review
    Xiao, Youzi
    Zheng, Shuai
    Shi, Jiancheng
    Du, Xiaodong
    Hong, Jun
    JOURNAL OF MANUFACTURING SYSTEMS, 2023, 70 : 417 - 435