Test Generation Strategies for Building Failure Models and Explaining Spurious Failures

Author:

Jodat Baharin A.1,Chandar Abhishek1,Nejati Shiva1,Sabetzadeh Mehrdad1

Affiliation:

1. University of Ottawa, Canada

Abstract

Test inputs fail not only when the system under test is faulty but also when the inputs are invalid or unrealistic. Failures resulting from invalid or unrealistic test inputs are spurious. Avoiding spurious failures improves the effectiveness of testing in exercising the main functions of a system, particularly for compute-intensive (CI) systems where a single test execution takes significant time. In this paper, we propose to build failure models for inferring interpretable rules on test inputs that cause spurious failures. We examine two alternative strategies for building failure models: (1) machine learning (ML)-guided test generation and (2) surrogate-assisted test generation. ML-guided test generation infers boundary regions that separate passing and failing test inputs and samples test inputs from those regions. Surrogate-assisted test generation relies on surrogate models to predict labels for test inputs instead of exercising all the inputs. We propose a novel surrogate-assisted algorithm that uses multiple surrogate models simultaneously, and dynamically selects the prediction from the most accurate model. We empirically evaluate the accuracy of failure models inferred based on surrogate-assisted and ML-guided test generation algorithms. Using case studies from the domains of cyber-physical systems and networks, we show that our proposed surrogate-assisted approach generates failure models with an average accuracy of 83%, significantly outperforming ML-guided test generation and two baselines. Further, our approach learns failure-inducing rules that identify genuine spurious failures as validated against domain knowledge.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference92 articles.

1. (Accessed : June 2023 ). Autopilot online benchmark. https://www.mathworks.com/matlabcentral/fileexchange/41490-autopilot-demo-for-arp4754a-do-178c-and-do-331?focused=6796756&tab=model (Accessed: June 2023). Autopilot online benchmark. https://www.mathworks.com/matlabcentral/fileexchange/41490-autopilot-demo-for-arp4754a-do-178c-and-do-331?focused=6796756&tab=model

2. (Accessed : June 2023 ). Benchmark for Simulink models. https://github.com/anonpaper23/testGenStrat/tree/main/Benchmark/Simulink%20Models (Accessed: June 2023). Benchmark for Simulink models. https://github.com/anonpaper23/testGenStrat/tree/main/Benchmark/Simulink%20Models

3. (Accessed : June 2023 ). Code to generate results of each research questions. https://github.com/anonpaper23/testGenStrat/tree/main/Evaluation (Accessed: June 2023). Code to generate results of each research questions. https://github.com/anonpaper23/testGenStrat/tree/main/Evaluation

4. (Accessed : June 2023 ). Code to SoTA implementation for NTSS case study. https://github.com/anonpaper23/testGenStrat/blob/main/Code/NTSS/SoTA.py (Accessed: June 2023). Code to SoTA implementation for NTSS case study. https://github.com/anonpaper23/testGenStrat/blob/main/Code/NTSS/SoTA.py

5. (Accessed : June 2023 ). Code to SoTA implementation for Simulink model case study. https://github.com/anonpaper23/testGenStrat/blob/main/Code/Simulink/Algorithms/decisiontreeSoTA.m (Accessed: June 2023). Code to SoTA implementation for Simulink model case study. https://github.com/anonpaper23/testGenStrat/blob/main/Code/Simulink/Algorithms/decisiontreeSoTA.m

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3