arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.07994cs.SEcs.ROcs.SYeess.SY
收藏

使用混合模型进行CPS测试的测试用例生成与测试预言机支持

Test Case Generation and Test Oracle Support for Testing CPSs using Hybrid Models

North Carolina State University(北卡罗来纳州立大学);University of Nebraska-Lincoln(内布拉斯加大学林肯分校)

Zahra Sadri-Moshkenani, Justin Bradley, Gregg Rothermel

AI总结:

本文提出了一种基于混合模型的测试用例生成技术HYTEST,并配备相应的测试预言机,用于在CPSs开发早期生成测试用例,实证表明其检测故障的效果和效率优于基线技术。

摘要:

信息物理融合系统(CPSs)在医疗设备、自动驾驶车辆和智能家居等众多自主物理系统的行为中扮演着核心角色,其中许多系统是安全关键的。CPSs通常在开发周期的早期迭代地被规约为一系列不同层级的模型,这些模型可以通过仿真系统进行测试。其中一种模型是混合自动机;它们在CPS应用中经常被使用,并具有封装连续和离散CPS行为的优势。在测试CPSs时,工程师可以利用这些模型来生成针对这两种类型行为的测试用例。此外,由于这些模型在CPSs开发过程的早期就构建完成,它们允许在该过程的早期为这些CPSs生成测试用例,甚至在CPSs的仿真模型被设计出来之前。测试CPSs时的一个挑战是,即使在相同应用的测试场景下,这些系统的运行方式也可能不同。在这种情况下,我们不能采用使用预定确定性行为的测试预言机;相反,测试预言机应该考虑一组期望的行为,以确定CPS是否表现适当。在本文中,我们提出了一种测试用例生成技术HYTEST,它基于混合模型生成测试用例,并伴随适当的测试预言机,用于在CPSs开发周期的早期进行测试。为了评估HYTEST的有效性和效率,我们进行了一项实证研究,将该技术应用于几个CPSs,并测量了其检测这些CPSs中故障的能力以及执行测试过程所需的时间。研究结果表明,与我们比较的基线技术相比,HYTEST能够更有效、更高效地检测故障。

英文摘要:

Cyber-Physical Systems (CPSs) play a central role in the behavior of a wide range of autonomous physical systems such as medical devices, autonomous vehicles, and smart homes, many of which are safety-critical. CPSs are often specified iteratively as a sequence of models at different levels that can be tested via simulation systems at early stages of their development cycle. One such model is a hybrid automaton; these are used frequently for CPS applications and have the advantage of encapsulating both continuous and discrete CPS behaviors. When testing CPSs, engineers can take advantage of these models to generate test cases that target both types of these behaviors. Moreover, since these models are constructed early in the development process for CPSs, they allow test cases to be generated early in that process for those CPSs, even before simulation models of the CPSs have been designed. One challenge when testing CPSs is that these systems may operate differently even under an identically applied test scenario. In such cases, we cannot employ test oracles that use predetermined deterministic behaviors; instead, test oracles should consider sets of desired behaviors in order to determine whether the CPS has behaved appropriately. In this paper we present a test case generation technique, HYTEST, that generates test cases based on hybrid models, accompanied by appropriate test oracles, for use in testing CPSs early in their development cycle. To evaluate the effectiveness and efficiency of HYTEST, we conducted an empirical study in which we applied the technique to several CPSs and measured its ability to detect faults in those CPSs and the amount of time required to perform the testing process. The results of the study show that HYTEST was able to detect faults more effectively and efficiently than the baseline techniques we compare it to.

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

↑