Prioritized Variable-length Test Cases Generation for Finite State Machines

03/17/2022
by   Vaclav Rechtberger, et al.
0

Model-based Testing (MBT) is an effective approach for testing when parts of a system-under-test have the characteristics of a finite state machine (FSM). Despite various strategies in the literature on this topic, little work exists to handle special testing situations. More specifically, when concurrently: (1) the test paths can start and end only in defined states of the FSM, (2) a prioritization mechanism that requires only defined states and transitions of the FSM to be visited by test cases is required, and (3) the test paths must be in a given length range, not necessarily of explicit uniform length. This paper presents a test generation strategy that satisfies all these requirements. A concurrent combination of these requirements is highly practical for real industrial testing. Six variants of possible algorithms to implement this strategy are described. Using a mixture of 180 problem instances from real automotive and defense projects and artificially generated FSMs, all variants are compared with a baseline strategy based on an established N-switch coverage concept modification. Various properties of the generated test paths and their potential to activate fictional defects defined in FSMs are evaluated. The presented strategy outperforms the baseline in most problem configurations. Out of the six analyzed variants, three give the best results even though a universal best performer is hard to identify. Depending on the application of the FSM, the strategy and evaluation presented in this paper are applicable both in testing functional and non-functional software requirements.

READ FULL TEXT
research
07/25/2022

Novel Strategy Generating Variable-length State Machine Test Paths

Finite State Machine is a popular modeling notation for various systems,...
research
05/20/2020

Alternative Effort-optimal Model-based Strategy for State Machine Testing of IoT Systems

To effectively test parts of the Internet of Things (IoT) systems with a...
research
05/25/2021

Complete Requirements-based Testing with Finite State Machines

In this paper, new contributions to requirements-based testing with dete...
research
05/01/2023

Efficient dynamic model based testing using greedy test case selection

Model-based testing (MBT) provides an automated approach for finding dis...
research
09/21/2022

PTSG: a test generation tool based on extended finite state machine

The Extended Finite State Machine (EFSM) is one of the most popular mode...
research
08/20/2020

Model-based Automated Testing of Mobile Applications: An Industrial Case Study

Automatic testing of mobile applications has been a well-researched area...
research
02/22/2021

Towards Evidence-based Testability Measurements

Evaluating Software testability can assist software managers in optimizi...

Please sign up or login with your details

Forgot password? Click here to reset