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 条
  • [1] Comparing Graph-Based Algorithms to Generate Test Cases from Finite State Machines
    Matheus Monteiro Mariano
    Érica Ferreira de Souza
    André Takeshi Endo
    Nandamudi Lankalapalli Vijaykumar
    Journal of Electronic Testing, 2019, 35 : 867 - 885
  • [2] Analyzing graph-based algorithms employed to generate test cases from finite state machines
    Mariano, Matheus Monteiro
    Souza, Erica F.
    Endo, Andre T.
    Vijaykumar, Nandamudi L.
    2019 20TH IEEE LATIN AMERICAN TEST SYMPOSIUM (LATS), 2019,
  • [3] H-Switch Cover: a new test criterion to generate test case from finite state machines
    de Souza, Erica Ferreira
    de Santiago Junior, Valdivino Alexandre
    Vijaykumar, Nandamudi Lankalapalli
    SOFTWARE QUALITY JOURNAL, 2017, 25 (02) : 373 - 405
  • [4] H-Switch Cover: a new test criterion to generate test case from finite state machines
    Érica Ferreira de Souza
    Valdivino Alexandre de Santiago Júnior
    Nandamudi Lankalapalli Vijaykumar
    Software Quality Journal, 2017, 25 : 373 - 405
  • [5] Graph-based evolutionary algorithms
    Bryden, Kenneth Mark
    Ashlock, Daniel A.
    Corns, Steven
    Willson, Stephen J.
    IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2006, 10 (05) : 550 - 567
  • [6] Prioritized Variable-length Test Cases Generation for Finite State Machines
    Rechtberger, Vaclav
    Bures, Miroslav
    Ahmed, Bestoun S.
    Belkhier, Youcef
    Nema, Jiri
    Schvach, Hynek
    2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2022), 2022, : 11 - 20
  • [7] Synthesis of distinguishing test cases for timed finite state machines
    M. L. Gromov
    N. V. Yevtushenko
    Programming and Computer Software, 2010, 36 : 216 - 224
  • [8] Using data mining techniques to generate test cases from graph transformation systems specifications
    Araghi, Maryam Asgari
    Rafe, Vahid
    Khendek, Ferhat
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (01)
  • [9] Using data mining techniques to generate test cases from graph transformation systems specifications
    Maryam Asgari Araghi
    Vahid Rafe
    Ferhat Khendek
    Automated Software Engineering, 2024, 31
  • [10] Overview of Test Coverage Criteria for Test Case Generation from Finite State Machines Modelled as Directed Graphs
    Rechtberger, Vaclav
    Bures, Miroslav
    Ahmed, Bestoun S.
    2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2022), 2022, : 207 - 214