Simulation platforms facilitate the development of emerging Cyber-Physical Systems (CPS) like self-driving cars (SDC) because they are more efficient and less dangerous than field operational test cases. Despite this, thoroughly testing SDCs in simulated environments remains challenging because SDCs must be tested in a sheer amount of long-running test cases. Past results on software testing optimization have shown that not all the test cases contribute equally to establishing confidence in test subjects' quality and reliability, and the execution of "safe and uninformative" test cases can be skipped to reduce testing effort. However, this problem is only partially addressed in the context of SDC simulation platforms. In this paper, we investigate test selection strategies to increase the cost-effectiveness of simulation-based testing in the context of SDCs. We propose an approach called SDC-Scissor (SDC coSt-effeCtIve teSt SelectOR) that leverages Machine Learning (ML) strategies to identify and skip test cases that are unlikely to detect faults in SDCs before executing them. Our evaluation shows that SDC-Scissor outperforms the baselines. With the Logistic model, we achieve an accuracy of 70%, a precision of 65%, and a recall of 80% in selecting tests leading to a fault and improved testing cost-effectiveness. Specifically, SDC-Scissor avoided the execution of 50% of unnecessary tests as well as outperformed two baseline strategies. Complementary to existing work, we also integrated SDC-Scissor into the context of an industrial organization in the automotive domain to demonstrate how it can be used in industrial settings.
翻译:尽管如此,在模拟环境中彻底测试SDC仍具有挑战性,因为SDC必须在大量长期测试案例中测试SDC。以往的软件测试优化结果显示,并非所有测试案例都同样有助于建立对测试对象质量和可靠性的信心,执行“安全和非信息”测试案例都可以跳过,以减少测试努力。然而,这一问题仅部分在SDC模拟平台中得到解决。在本文件中,我们调查测试选择战略以提高模拟测试的成本效益,因为SDC必须在大量长期测试案例中测试SDC。我们提出一种叫做SDC-Scissor(SDC cott-efficeCtIve teSlotOR)的方法,利用机器学习(ML)战略来识别和跳过测试案例,无法在SDC中发现故障。我们的评估显示,SDC-Sterrial-Screax在50DC的模拟平台中,SecriformalS-CrickrationS,在具体测试中将S-descrial-reck a cload-rodeal rodument of Scial-rickal-deal-rofrial-to the rocal rocal-rocal-rocal rocal roisal-to extracudris-to the rolational-rocustrisal-toisal-toxisal-to the rogal-toisaliz besilational-toisalizationsilizal lautisal-totings)的测试,在80-一个成本测试了80-一个成本测试的基线中可以用来到一个成本测试。