基于自动生成与人工定义的适应度函数驱动的搜索软件测试
Search-based Software Testing Driven by Automatically Generated and Manually Defined Fitness Functions
AI总结:
本文提出ATheNA框架,结合自动生成与人工定义的适应度函数,驱动搜索软件测试,其Simulink实例ATheNA-S在多个模型上生成更多揭示故障的测试用例,且性能与基线相当。
摘要:
基于搜索的软件测试(SBST)通常依赖适应度函数来引导搜索探索,以发现软件故障。定义适应度函数主要有两种技术:(a)从系统需求规格说明中自动计算适应度函数,以及(b)人工设计适应度函数。这两种技术各有优势。前者利用系统需求中的信息,将搜索引导至输入域中更可能包含故障的部分。后者则利用工程师的领域知识。我们提出了ATheNA,一个新颖的SBST框架,它结合了从需求规格说明中自动生成的适应度函数和工程师人工定义的适应度函数。我们设计并实现了ATheNA-S,一个针对Simulink模型的ATheNA实例。我们通过考虑来自不同领域的大量模型来评估ATheNA-S。我们的结果表明,ATheNA-S比现有的基线工具生成了更多揭示故障的测试用例,并且ATheNA-S与基线工具在运行时性能上的差异在统计上不显著。我们还评估了ATheNA-S在应用于两个代表性案例研究时能否生成揭示故障的测试用例:一个来自汽车领域,一个来自医疗领域。我们的结果表明,ATheNA-S在我们的案例研究中成功揭示了一个需求违规。
英文摘要:
Search-based software testing (SBST) typically relies on fitness functions to guide the search exploration toward software failures. There are two main techniques to define fitness functions: (a) automated fitness function computation from the specification of the system requirements, and (b) manual fitness function design. Both techniques have advantages. The former uses information from the system requirements to guide the search toward portions of the input domain more likely to contain failures. The latter uses the engineers' domain knowledge. We propose ATheNA, a novel SBST framework that combines fitness functions automatically generated from requirements specifications and those manually defined by engineers. We design and implement ATheNA-S, an instance of ATheNA that targets Simulink models. We evaluate ATheNA-S by considering a large set of models from different domains. Our results show that ATheNA-S generates more failure-revealing test cases than existing baseline tools and that the difference between the runtime performance of ATheNA-S and the baseline tools is not statistically significant. We also assess whether ATheNA-S could generate failure-revealing test cases when applied to two representative case studies: one from the automotive domain and one from the medical domain. Our results show that ATheNA-S successfully revealed a requirement violation in our case studies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。