arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.12003cs.SEcs.FL
收藏

基于属性的测试工具在变胞测试中的应用

Application of property-based testing tools\\ for metamorphic testing

Nasser Alzahrani, Maria Spichkova, James Harland

摘要:

变形测试(Metamorphic Testing,MT)是一种通用的软件系统测试方法,它适用于“非可测试”的软件系统,而"经典“测试方法在这种系统中很难应用。机器翻译是解决测试预言问题和测试用例生成问题的有效方法。测试预言问题是当很难确定一个特定测试用例的正确预期输出或确定实际输出是否与预期结果一致时。MT的核心概念是变形关系(MR),它提供了被测系统的形式化规格说明。MT中的一个挑战是\emph{effective test generation}。基于属性的测试(PBT)是一种测试方法,其中测试用例是根据软件的期望属性生成的。在某种意义上,MT可以被看作是PBT的一种非常特殊的类型。在本文中,我们展示了如何使用PBT工具自动测试生成和验证的MT。除了自动化的好处,所提出的方法显示了如何结合通用PBT与MT在相同的测试框架。

英文摘要:

Metamorphic testing (MT) is a general approach for the testing of a specific kind of software systems -- so-called ``non-testable'', where the ``classical'' testing approaches are difficult to apply. MT is an effective approach for addressing the test oracle problem and test case generation problem. The test oracle problem is when it is difficult to determine the correct expected output of a particular test case or to determine whether the actual outputs agree with the expected outcomes. The core concept in MT is metamorphic relations (MRs) which provide formal specification of the system under test. One of the challenges in MT is \emph{effective test generation}. Property-based testing (PBT) is a testing methodology in which test cases are generated according to desired properties of the software. In some sense, MT can be seen as a very specific kind of PBT.\\ In this paper, we show how to use PBT tools to automate test generation and verification of MT. In addition to automation benefit, the proposed method shows how to combine general PBT with MT under the same testing framework.

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

↑