skip to main content
10.1145/3340433.3342820acmconferencesArticle/Chapter ViewAbstractPublication PagesfseConference Proceedingsconference-collections
research-article

Testing extended finite state machines using NSGA-III

Published:26 August 2019Publication History

ABSTRACT

Finite state machines (FSMs) are widely used in test data generation approaches. An extended finite state machine (EFSM) extends the FSM with memory (context variables), guards for each transition and assignment operations. In FSMs all paths are feasible, but the existence of context variables combined with guards in EFSMs can lead to infeasible paths. Using EFSMs in test data generation, we are dealing with feasibility problems. This paper presents a test suite generation algorithm for EFSMs. The algorithm produces a set of feasible transition paths (test cases) that cover all transitions using NSGA-III. We also measure the similarities between test cases from the generated test suite.

References

  1. {n.d.}. Metaheuristic Algorithms in Java,. http://jmetal.github.io/jMetal/Google ScholarGoogle Scholar
  2. Nesa Asoudeh and Yvan Labiche. 2014. Multi-objective Construction of an Entire Adequate Test Suite for an EFSM. In Proceedings of the 2014 IEEE 25th International Symposium on Software Reliability Engineering (ISSRE ’14). IEEE Computer Society, Washington, DC, USA, 288–299. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Wesley Klewerton Guez Assunção, Thelma Elita Colanzi, Silvia Regina Vergilio, and Aurora Pozo. 2014. A Multi-objective Optimization Approach for the Integration and Test Order Problem. Inf. Sci. 267 (May 2014), 119–139.Google ScholarGoogle Scholar
  4. Guillermo Campos Ciro, Frédéric Dugardin, Farouk Yalaoui, and Russell Kelly. 2016. A NSGA-II and NSGA-III comparison for solving an open shop scheduling problem with resource constraints. IFAC-PapersOnLine 49, 12 (2016), 1272–1277.Google ScholarGoogle ScholarCross RefCross Ref
  5. Kalyanmoy Deb and Himanshu Jain. 2014. An evolutionary many-objective optimization algorithm using reference-point-based nondominated sorting approach, part I: Solving problems with box constraints. IEEE Transactions on Evolutionary Computation 18, 4 (2014), 577–601.Google ScholarGoogle ScholarCross RefCross Ref
  6. Kalyanmoy Deb, Amrit Pratap, Sameer Agarwal, and TAMT Meyarivan. 2002. A fast and elitist multiobjective genetic algorithm: NSGA-II. IEEE transactions on evolutionary computation 6, 2 (2002), 182–197. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Karnig Derderian, Robert M. Hierons, Mark Harman, and Qiang Guo. 2010. Estimating the Feasibility of Transition Paths in Extended Finite State Machines. Automated Software Engg. 17, 1 (March 2010), 33–56. s10515-009-0057-9 Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Mark Harman and Phil McMinn. 2007. A theoretical & empirical analysis of evolutionary testing and hill climbing for structural test data generation. In Proceedings of the 2007 international symposium on Software testing and analysis. ACM, 73–83. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. AbdulSalam Kalaji, Robert Mark Hierons, and Stephen Swift. 2009. Generating Feasible Transition Paths for Testing from an Extended Finite State Machine (EFSM). In Proc. ICST’09. IEEE Computer Society, 230–239. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. Abdul Salam Kalaji, Robert M. Hierons, and Stephen Swift. 2011. An integrated search-based approach for automatic testing from extended finite state machine (EFSM) models. Information & Software Technology 53, 12 (2011), 1297–1318. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. Mohd Ehmer Khan and Farmeena Khan. 2012. A comparative study of white box, black box and grey box testing techniques. International Journal of Advanced Computer Sciences and Applications 3, 6 (2012), 12–1.Google ScholarGoogle Scholar
  12. Raluca Lefticaru and Florentin Ipate. 2012. An Improved Test Generation Approach from Extended Finite State Machines Using Genetic Algorithms. In Software Engineering and Formal Methods - 10th International Conference, SEFM 2012, Thessaloniki, Greece, October 1-5, 2012. Proceedings. 293–307. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. Melanie Mitchell. 1998. An introduction to genetic algorithms. MIT Press. Google ScholarGoogle Scholar
  14. Ana Turlea, Florentin Ipate, and Raluca Lefticaru. 2016. A Hybrid Test Generation Approach Based on Extended Finite State Machines. In Symbolic and Numeric Algorithms for Scientific Computing (SYNASC), 2016 18th International Symposium on. IEEE, 173–180.Google ScholarGoogle ScholarCross RefCross Ref
  15. Ana Turlea, Florentin Ipate, and Raluca Lefticaru. 2017. A Test Suite Generation Approach Based on EFSMs Using a Multi-objective Genetic Algorithm. In 19th International Symposium on Symbolic and Numeric Algorithms for Scientific Computing, SYNASC 2017, Timisoara, Romania, September 21-24, 2017. 153–160.Google ScholarGoogle ScholarCross RefCross Ref
  16. Ana Turlea, Florentin Ipate, and Raluca Lefticaru. 2018. Generating Complex Paths for Testing from an EFSM. In 2018 IEEE International Conference on Software Quality, Reliability and Security Companion, QRS Companion 2018, Lisbon, Portugal, July 16-20, 2018. 242–249.Google ScholarGoogle ScholarCross RefCross Ref

Index Terms

  1. Testing extended finite state machines using NSGA-III

    Recommendations

    Reviews

    Angelica de Antonio

    The goal of the paper is to describe how the non-dominated sorting genetic algorithm III (NSGA-III) algorithm generates test suites from extended finite-state machines (EFSMs). Each generated test case represents a feasible transition path on the EFSM. The ability to deal with feasibility is one advantage of using EFSMs instead of FSMs, thanks to the use of context variables and guards associated with transitions. NSGA-III is a genetic algorithm that has been applied to multi-objective problems. In its application for test case generation, three objectives are defined: "one objective for estimating the feasibility of each path, one objective for covering all transitions and minimizing the necessary paths, and the third objective [is the] minimization of similarities between tests." Chromosomes encode variable-length sets of paths where each gene is a list of integer numbers representing transitions. The solutions of the genetic algorithm are "those chromosomes that have only feasible paths and cover all transitions." An experiment was run with two different EFSMs, comparing the performance of the proposed algorithm with a previous proposal based on NSGA-II. The computation time was lower and the success rate (feasible and full coverage solutions) was higher. The paper is inspired by Kalaji et al. [1] and Asoudeh and Labiche [2], and is an evolution of two previous works by urlea published in 2017 and 2018. This clear and concise paper mainly addresses researchers in automated test case generation.

    Access critical reviews of Computing literature here

    Become a reviewer for Computing Reviews.

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      A-TEST 2019: Proceedings of the 10th ACM SIGSOFT International Workshop on Automating TEST Case Design, Selection, and Evaluation
      August 2019
      41 pages
      ISBN:9781450368506
      DOI:10.1145/3340433

      Copyright © 2019 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 26 August 2019

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader