Skip to main navigation Skip to search Skip to main content

An integrated search-based approach for automatic testing from extended finite state machine (EFSM) models

  • Abdul Salam Kalaji*
  • , Robert Mark Hierons*
  • , Stephen Swift*
  • *Corresponding author for this work

Research output: Contribution to journal › Article › peer-review

Abstract

Context
The extended finite state machine (EFSM) is a modelling approach that has been used to represent a wide range of systems. When testing from an EFSM, it is normal to use a test criterion such as transition coverage. Such test criteria are often expressed in terms of transition paths (TPs) through an EFSM. Despite the popularity of EFSMs, testing from an EFSM is difficult for two main reasons: path feasibility and path input sequence generation. The path feasibility problem concerns generating paths that are feasible whereas the path input sequence generation problem is to find an input sequence that can traverse a feasible path.

Objective
While search-based approaches have been used in test automation, there has been relatively little work that uses them when testing from an EFSM. In this paper, we propose an integrated search-based approach to automate testing from an EFSM.

Method
The approach has two phases, the aim of the first phase being to produce a feasible TP (FTP) while the second phase searches for an input sequence to trigger this TP. The first phase uses a Genetic Algorithm whose fitness function is a TP feasibility metric based on dataflow dependence. The second phase uses a Genetic Algorithm whose fitness function is based on a combination of a branch distance function and approach level.

Results
Experimental results using five EFSMs found the first phase to be effective in generating FTPs with a success rate of approximately 96.6%. Furthermore, the proposed input sequence generator could trigger all the generated feasible TPs (success rate = 100%).

Conclusion
The results derived from the experiment demonstrate that the proposed approach is effective in automating testing from an EFSM.
Original languageEnglish
Pages (from-to)1297-1318
Number of pages22
JournalInformation and Software Technology
Volume53
Issue number12
Early online date16 Jun 2011
DOIs
Publication statusPublished - 31 Dec 2011

Keywords

  • automatic test derivation
  • feasible transition paths
  • search-based testing EFSM

Fingerprint

Dive into the research topics of 'An integrated search-based approach for automatic testing from extended finite state machine (EFSM) models'. Together they form a unique fingerprint.

Cite this