arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.06674cs.SEcs.FLcs.GTcs.LOcs.SYeess.SY
收藏

规范覆盖的自适应测试

Adaptive Testing for Specification Coverage

Ezio Bartocci, Roderick Bloem, Benedikt Maderbacher, Niveditha Manjunath, Dejan Ničković

摘要:

确保网络物理系统(CPS)的正确性是一项极具挑战性的任务,在实践中通常通过基于仿真的测试来解决。正式的规约语言,如信号时序逻辑(STL),用于数学表达CPS的要求,从而使仿真活动更系统和原则。我们提出了一种新的方法,自适应生成测试规格覆盖STL。为了实现这一目标,我们设计了合作的可达性游戏,我们结合数值优化来创建测试,探索系统的方式,行使规范的各个部分。据我们所知,我们的方法是第一个自适应测试方法,可以直接应用到MATLAB \texttrademark \; Simulink/Stateflow模型。我们实现了我们的方法在一个原型工具,并评估了几个说明性的例子和案例研究,从航空电子领域,证明了自适应测试的有效性(1)逐步建立一个测试用例,达到测试目标,(2)生成一个测试套件,增加规范的覆盖范围,(3)推断规范的哪一部分实际上是实现的。

英文摘要:

Ensuring correctness of cyber-physical systems (CPS) is an extremely challenging task that is in practice often addressed with simulation based testing. Formal specification languages, such as Signal Temporal Logic (STL), are used to mathematically express CPS requirements and thus render the simulation activity more systematic and principled. We propose a novel method for adaptive generation of tests with specification coverage for STL. To achieve this goal, we devise cooperative reachability games that we combine with numerical optimization to create tests that explore the system in a way that exercise various parts of the specification. To the best of our knowledge our approach is the first adaptive testing approach that can be applied directly to MATLAB\texttrademark\; Simulink/Stateflow models. We implemented our approach in a prototype tool and evaluated it on several illustrating examples and a case study from the avionics domain, demonstrating the effectiveness of adaptive testing to (1) incrementally build a test case that reaches a test objective, (2) generate a test suite that increases the specification coverage, and (3) infer what part of the specification is actually implemented.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑