用于大规模测试的Autosar库建模
Modelling of Autosar Libraries for Large Scale Testing
摘要:
我们展示了一个具体的方法和技术,基于模型的测试大型软件项目的快速检查工具,使用基于属性的规范。我们的规格是被测软件(SUT)的非常精确、状态完整的模型。在我们的方法中,我们定义(a)正式描述有效的函数调用序列(公共API),(b)后置条件,检查每个调用的有效性,(c)调用规范,定义和验证外部系统的相互作用(SUT调用外部API)。QuickCheck工具自动生成并执行这些规范中的测试。在商业上,这种方法和工具已被用于测试基于Autosar标准的工业开发的汽车库的大型部件。在本文中,我们使用Autosar指定的循环缓冲区来验证我们的方法,以证明QuickCheck基于模型的测试方法的能力。与商业QuickCheck模型相比,我们的示例很小,但忠实地解决了许多相同的挑战。
英文摘要:
We demonstrate a specific method and technology for model-based testing of large software projects with the QuickCheck tool using property-based specifications. Our specifications are very precise, state-full models of the software under test (SUT). In our approach we define (a) formal descriptions of valid function call sequences (public API), (b) postconditions that check the validity of each call, and (c) call-out specifications that define and validate external system interactions (SUT calling external API). The QuickCheck tool automatically generates and executes tests from these specifications. Commercially, this method and tool have been used to test large parts of the industrially developed automotive libraries based on the Autosar standard. In this paper, we exemplify our approach with a circular buffer specified by Autosar, to demonstrate the capabilities of the model-based testing method of QuickCheck. Our example is small compared to the commercial QuickCheck models, but faithfully addresses many of the same challenges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。