Timed Model-Based Mutation Operators for Simulink Models

Jian Chen,Manar H. Alalfi,Thomas R. Dean
DOI: https://doi.org/10.48550/arXiv.2301.00835
2023-01-03
Abstract:Model-based mutation analysis is a recent research area, and real-time system testing can benefit from using model mutants. Model-based mutation testing (MBMT) is a particular branch of model-based testing. It generates faulty versions of a model using mutation operators to evaluate and improve test cases. Mutation testing is an effective way to ensure software correctness and has been applied to various application areas. Simulink is a vital modeling language for real-time systems. This paper introduces Simulink model mutation analysis to improve Model-in-the-loop (MIL) testing. We propose a set of Simulink mutation operators based on AUTOSAR, which reflects the temporal correctness when a Simulink model is mapped to Operating System tasks. We implement a mutation framework that generates mutants for implicit clock Simulink models. Finally, we demonstrate how this framework generates mutants to reveal task interference issues in the simulation. Our work integrates the Simulink model with the timed systems to better support mutation testing automation.
Software Engineering
What problem does this paper attempt to address?
The problem that this paper attempts to solve is how to improve the effectiveness of Model - in - the - loop (MIL) tests through model - based mutation testing (MBMT) in real - time systems, especially during the process of model development using Simulink. Specifically, the paper focuses on how to generate mutants of Simulink models to uncover task interference problems and verify whether these mutants can help improve test cases, thereby ensuring the correctness and reliability of the software. This involves several key aspects: 1. **Task Interference in Real - Time Systems**: In real - time systems, interference between tasks may lead to latency or other performance issues. The paper proposes a set of time - based task models to reflect the time correctness when Simulink models are mapped to real - time operating system (RTOS) tasks. 2. **Mutation Operators for Simulink Models**: The paper proposes a series of mutation operators for Simulink models. These operators are based on the AUTOSAR standard and aim to simulate various property changes of tasks, such as task offset, period, execution time, priority, jitter, and shared memory access. 3. **Automated Mutation Testing Framework**: The paper also implements a mutation testing framework that can automatically generate variants of implicit - clock Simulink models to evaluate and improve test cases, especially in the MIL test phase. 4. **Verification and Application**: Finally, the paper shows how to use the proposed framework to generate variants to uncover task interference problems in simulations, thereby verifying the effectiveness of the framework. Through these methods, the paper aims to provide an effective means to ensure that the software in real - time systems is not only logically correct but also can meet time constraints in the actual operating environment, which is particularly important for safety - critical applications such as automotive electronics.