arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.20692cs.SE
收藏

面向变质测试的测试充分性:准则、度量与启示

Test Adequacy for Metamorphic Testing: Criteria, Measurement, and Implication

An Fu, Chang-ai Sun, Jiaming Zhang, Huai Liu

AI总结:

本文针对变质测试缺乏充分性评估准则的问题,从被测软件必要性质的角度提出新的测试充分性准则和度量方法,实验证明该度量能有效反映测试套件的缺陷检测能力,为构建高质量 MT 测试套件提供指导。

摘要:

变质测试(MT)是一种简单而有效的技术,用于缓解软件测试中的预言机问题。MT 的基本思想是:通过检查多个测试输入(包括源输入和后续输入)及其执行的实际输出之间是否满足变质关系(MRs)来测试软件系统。由于 MRs 和源输入是 MT 的两个基本组成部分,已有大量工作致力于研究 MRs 的系统化识别和源输入的有效生成,这极大地丰富了 MT 自提出以来的基础理论。然而,很少有研究关注 MT 的测试充分性评估问题,这阻碍了对 MT 测试质量的客观度量以及测试套件的有效构建。尽管在传统软件测试语境中,已有多种测试充分性准则从不同角度规定了构成充分测试的测试要求,但这些准则与 MT 的关注点不一致——MT 的关注点是从必要性质的角度测试被测软件(SUT)。在本文中,我们提出了一组新的准则,从 SUT 所满足的必要性质的角度规定测试要求,并设计了一种测试充分性度量方法,该方法基于 MRs 和源输入两方面来评估充分性程度。实验结果表明,所提出的度量方法能够有效指示测试套件的缺陷检测有效性,即测试充分性越高的测试套件通常表现出越高的缺陷检测有效性。我们的工作尝试从一个新的角度评估 MT 的测试充分性,所提出的准则和度量为评估 MT 的测试质量提供了一种新方法,并为构建有效的 MT 测试套件提供了指导。

英文摘要:

Metamorphic testing (MT) is a simple yet effective technique to alleviate the oracle problem in software testing. The underlying idea of MT is to test a software system by checking whether metamorphic relations (MRs) hold among multiple test inputs (including source and follow-up inputs) and the actual output of their executions. Since MRs and source inputs are two essential components of MT, considerable efforts have been made to examine the systematic identification of MRs and the effective generation of source inputs, which has greatly enriched the fundamental theory of MT since its invention. However, few studies have investigated the test adequacy assessment issue of MT, which hinders the objective measurement of MT's test quality as well as the effective construction of test suites. Although in the context of traditional software testing, there exist a number of test adequacy criteria that specify testing requirements to constitute an adequate test from various perspectives, they are not in line with MT's focus which is to test the software under testing (SUT) from the perspective of necessary properties. In this paper, we proposed a new set of criteria that specifies testing requirements from the perspective of necessary properties satisfied by the SUT, and designed a test adequacy measurement that evaluates the degree of adequacy based on both MRs and source inputs. The experimental results have shown that the proposed measurement can effectively indicate the fault detection effectiveness of test suites, i.e., test suites with increased test adequacy usually exhibit higher effectiveness in fault detection. Our work made an attempt to assess the test adequacy of MT from a new perspective, and our criteria and measurement provide a new approach to evaluate the test quality of MT and provide guidelines for constructing effective test suites of MT.

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

↑