arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.09614cs.SE
收藏

虚拟环境中自动驾驶汽车的单目标和多目标测试用例优先级排序

Single and Multi-objective Test Cases Prioritization for Self-driving Cars in Virtual Environments

Christian Birchler, Sajad Khatiri, Pouria Derakhshanfar, Sebastiano Panichella, Annibale Panichella

摘要:

使用模拟环境进行测试有助于识别自动驾驶汽车(SDC)的关键故障场景。基于模拟的测试比现场操作测试更安全,并且允许在部署之前检测软件缺陷。然而,这些测试是非常昂贵的,并且太多而不能在有限的时间限制内频繁地运行。在本文中,我们研究测试用例优先级技术,以提高检测SDC回归故障的能力与虚拟测试早期。我们的方法,被称为SDC-Prioritizer,根据我们设计的驾驶场景中使用的道路的静态特征,优先考虑SDC的虚拟测试。这些特性可以在不运行测试的情况下收集,这意味着它们不需要过去的执行结果。我们引入了两种进化的方法来优先考虑这些静态功能上计算的多样性度量(黑盒算法)的测试用例。这两种方法,称为SO-SDC-Prioritizer和MO-SDC-Prioritizer,分别使用单目标和多目标遗传算法,以找到执行较便宜的测试和最多样化的测试用例之间的权衡。我们在SDC域进行的实证研究表明,MO-SDC-Prioritizer显着提高了在相同的执行时间水平上检测安全关键故障的能力相比,基线:随机和基于贪婪的测试用例排序。此外,我们的研究表明,多目标元分析优于单目标的方法时,优先考虑基于模拟的测试SDC。MO-SDC-Prioritizer对测试用例进行优先级排序,在故障检测方面有很大的改进,而其开销(高达测试执行成本的0.45%)可以忽略不计。

英文摘要:

Testing with simulation environments helps to identify critical failing scenarios for self-driving cars (SDCs). Simulation-based tests are safer than in-field operational tests and allow detecting software defects before deployment. However, these tests are very expensive and are too many to be run frequently within limited time constraints. In this paper, we investigate test case prioritization techniques to increase the ability to detect SDC regression faults with virtual tests earlier. Our approach, called SDC-Prioritizer, prioritizes virtual tests for SDCs according to static features of the roads we designed to be used within the driving scenarios. These features can be collected without running the tests, which means that they do not require past execution results. We introduce two evolutionary approaches to prioritize the test cases using diversity metrics (black-box heuristics) computed on these static features. These two approaches, called SO-SDC-Prioritizer and MO-SDC-Prioritizer, use single-objective and multi-objective genetic algorithms, respectively, to find trade-offs between executing the less expensive tests and the most diverse test cases earlier. Our empirical study conducted in the SDC domain shows that MO-SDC-Prioritizer significantly improves the ability to detect safety-critical failures at the same level of execution time compared to baselines: random and greedy-based test case orderings. Besides, our study indicates that multi-objective meta-heuristics outperform single-objective approaches when prioritizing simulation-based tests for SDCs. MO-SDC-Prioritizer prioritizes test cases with a large improvement in fault detection while its overhead (up to 0.45% of the test execution cost) is negligible.

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

↑