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

Intramorphic Testing:一种解决测试Oracle问题的新方法

Intramorphic Testing: A New Approach to the Test Oracle Problem

Manuel Rigger, Zhendong Su

摘要:

一个测试预言机决定了一个系统对于给定的输入是否正确地工作。自动化测试技术依赖于自动化测试预言机来测试系统,而无需用户交互。重要的自动化测试神谕家族包括差分测试和变形测试,它们都是黑盒方法;也就是说,它们提供了一个对系统内部不敏感的测试神谕。在这项工作中,我们提出了Intramorphic测试的白盒方法来解决测试预言的问题。为了实现Intramorphic测试方法,创建系统的修改版本,对于该修改版本,给定单个输入,可以提供将原始系统和修改系统的输出相关联的测试预言。作为一个具体的例子,通过在排序算法的实现中用更小的相等替换更小的相等运算符,可以预期修改后的实现的输出是原始实现的反向输出。在本文中,我们将介绍该方法,并通过一组用例对其进行说明。

英文摘要:

A test oracle determines whether a system behaves correctly for a given input. Automatic testing techniques rely on an automated test oracle to test the system without user interaction. Important families of automated test oracles include Differential Testing and Metamorphic Testing, which are both black-box approaches; that is, they provide a test oracle that is oblivious to the system's internals. In this work, we propose Intramorphic Testing as a white-box methodology to tackle the test oracle problem. To realize an Intramorphic Testing approach, a modified version of the system is created, for which, given a single input, a test oracle can be provided that relates the output of the original and modified systems. As a concrete example, by replacing a greater-equals operator in the implementation of a sorting algorithm with smaller-equals, it would be expected that the output of the modified implementation is the reverse output of the original implementation. In this paper, we introduce the methodology and illustrate it via a set of use cases.

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

↑