基于Oracle的测试自动化系统
A Brief Survey on Oracle-based Test Adequacy Metrics
摘要:
代码覆盖率是一个流行的和广泛的测试充分性度量,它测量测试套件执行的程序代码的百分比。尽管代码覆盖率很受欢迎,但它有几个限制。其中一个主要的限制是,它没有提供任何关于测试神谕的质量或数量的见解,这是测试的核心组成部分。由于这种限制,一些研究表明,覆盖率是一个很差的测试充分性度量;因此,它不应该被用作测试套件的故障检测有效性的指标。为了解决这个问题,研究人员提出了扩展传统的结构化代码覆盖率,明确考虑测试预言机的质量。我们将这些扩展称为基于Oracle的代码覆盖率。这份调查报告研究了自2007年以来发布的基于甲骨文的覆盖技术。我们讨论每个指标的定义,方法,实验研究和研究结果。尽管基于甲骨文的覆盖度量被证明在检测故障方面比传统的覆盖更有效,但它们在软件工程社区中很少受到关注。我们提出了所有现有的基于Oracle的充分性度量在本文中,并相互比较的关键功能。我们观察到,不同的基于甲骨文的充分性度量在不同的覆盖域上运行,并使用不同的底层分析技术,使软件测试人员能够根据测试要求选择适当的度量。我们的论文提供了有价值的信息,基于甲骨文的方法的局限性,解决这可能有助于他们更广泛地采用软件测试自动化。
英文摘要:
Code coverage is a popular and widespread test adequacy metric that measures the percentage of program codes executed by a test suite. Despite its popularity, code coverage has several limitations. One of the major limitations is that it does not provide any insights into the quality or quantity of test oracles, a core component of testing. Due to this limitation, several studies have suggested that coverage is a poor test adequacy metric; therefore, it should not be used as an indicator of a test suite's fault detection effectiveness. To address this limitation, researchers have proposed extensions to traditional structural code coverage to explicitly consider the quality of test oracles. We refer to these extensions as oracle-based code coverage. This survey paper studies oracle-based coverage techniques published since their inception in 2007. We discuss each metric's definition, methodology, experimental studies, and research findings. Even though oracle-based coverage metrics are proven to be more effective than traditional coverage in detecting faults, they have received little attention in the software engineering community. We present all existing oracle-based adequacy metrics in this paper and compare the critical features against each other. We observe that different oracle-based adequacy metrics operate on different coverage domains and use diverse underlying analysis techniques, enabling a software tester to choose the appropriate metric based on the testing requirements. Our paper provides valuable information regarding the limitations of oracle-based methods, addressing which may help their broader adoption in software testing automation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。