Simulation-based software testing supports engineers in finding faults in Simulink models. It typically relies on search algorithms that iteratively generate test inputs used to exercise models in simulation to detect design errors. While simulation-based software testing techniques are effective in many practical scenarios, they are typically not fully integrated within the Simulink environment and require additional manual effort. Many techniques require engineers to specify requirements using logical languages that are neither intuitive nor fully supported by Simulink, thereby limiting their adoption in industry. This work presents HECATE, a testing approach for Simulink models using Test Sequence and Test Assessment blocks from Simulink Test. Unlike existing testing techniques, HECATE uses information from Simulink models to guide the search-based exploration. Specifically, HECATE relies on information provided by the Test Sequence and Test Assessment blocks to guide the search procedure. Across a benchmark of 16 Simulink models from different domains and industries, our comparison of HECATE with the state-of-the-art testing tool S-TALIRO indicates that HECATE is both more effective (more failure-revealing test cases) and efficient (less iterations and computational time) than S-TALIRO for ~94% and ~81% of benchmark models respectively. Furthermore, HECATE successfully generated a failure-revealing test case for a representative case study from the automotive domain demonstrating its practical usefulness.
翻译:模拟软件测试方法通常依靠反复生成测试投入的搜索算法,这些算法用于模拟模拟模型,用于测试模型,以检测设计错误。模拟软件测试技术在许多实际情景中是有效的,但通常没有完全融入模拟链环境,需要额外的人工努力。许多技术要求工程师使用逻辑语言来具体要求,这些逻辑语言既不直观,也没有得到Simlink的充分支持,从而限制其在行业中的采用。这项工作提出了HECATE,这是使用Simlink测试的测试序列和测试评估块测试Simlink模型的测试方法。与现有的测试技术不同,HECATE使用Simlink模型的信息来指导基于搜索的探索。具体地说,HECATE依靠测试序列和测试组提供的信息来指导搜索程序。根据16种不直观的和不完全支持的Simmilling语言模型的基准,我们将HCATE与S-TALRO的状态测试工具S-TALRO的测试工具S-94测试案例和高效的S-IAL-TER 测试案例的测试模型和S-I-S-IL-S-S-SL-S-C-SAL-T-SAL-SL-C-T-SLV-S-SL-SI-T-SL-SLV-SL-SL-S-SL-S-S-S-S-S-S-S-S-S-SLY-S-S-S-S-S-S-S-S-SL-SL-SL-S-S-S-SL-SL-SL-S-S-L-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-S-