一句话:提出面向 Simulink 模型的自动变异体生成与测试执行工具 MUT4SLX,可快速注入 15 种基于真实故障的变异算子。
变异测试已在 C++ 等文本语言中支持 shift-left 测试策略,但 Simulink 等图形化建模语言缺乏足够的工具支持与经验报告。本文提出概念验证工具 MUT4SLX,用于 Simulink 模型的自动变异体生成与测试执行。该工具包含 15 个变异算子,这些算子根据从工业缺陷数据库中挖掘的真实故障建模;由于仅替换模块内参数值,注入速度较快。在直升机控制系统样本上的实验表明,MUT4SLX 能在不到一秒内注入 70 个变异体,总分析时间为 8.14 小时。
Several experience reports illustrate that mutation testing is capable of supporting a “shift-left” testing strategy for software systems coded in textual programming languages like C++. For graphical modelling languages like Simulink, such experience reports are missing, primarily because of a lack of adequate tool support. In this paper, we present a proof-of-concept (named MUT4S LX) for automatic mutant generation and test execution of Simulink models. MUT14SLX features 15 mutation operators which are modelled after realistic faults (mined from an industrial bug database) and are fast to inject (because we only replace parameter values within blocks). An experimental evaluation on a sample project (a Helicopter Control System) demonstrates that MUT4SLX is capable of injecting 70 mutants in less than a second, resulting in a total analysis time of 8.14 hours.