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

变形测试中源测试用例生成策略的故障检测有效性

Fault Detection Effectiveness of Source Test Case Generation Strategies for Metamorphic Testing

Prashanta Saha, Upulee Kanewala

摘要:

变形测试是解决软件测试中的预言问题的一种著名方法。这种技术需要使用源测试用例作为后续测试用例生成的种子。测试用例的系统化设计是保证测试质量的关键。因此,源测试用例生成策略对变形测试的故障检测效果有很大影响。以往的变形测试研究大多使用随机测试数据或已有的测试用例作为源测试用例。针对变形测试的系统化源测试用例生成问题,目前的研究还很有限。本文综合评价了源测试用例生成技术对变形测试故障发现效果的影响。我们评估了行覆盖、分支覆盖、弱变异和随机测试生成策略在源测试用例生成中的有效性。实验进行了77个方法从4个开源代码库。我们的研究结果表明,通过系统地创建源测试用例,我们可以显着提高故障发现效率的变质测试。此外,在本文中,我们介绍了一个简单的变形测试工具,称为“METtester”,我们使用这些方法进行变形测试。

英文摘要:

Metamorphic testing is a well known approach to tackle the oracle problem in software testing. This technique requires the use of source test cases that serve as seeds for the generation of follow-up test cases. Systematic design of test cases is crucial for the test quality. Thus, source test case generation strategy can make a big impact on the fault detection effectiveness of metamorphic testing. Most of the previous studies on metamorphic testing have used either random test data or existing test cases as source test cases. There has been limited research done on systematic source test case generation for metamorphic testing. This paper provides a comprehensive evaluation on the impact of source test case generation techniques on the fault finding effectiveness of metamorphic testing. We evaluated the effectiveness of line coverage, branch coverage, weak mutation and random test generation strategies for source test case generation. The experiments are conducted with 77 methods from 4 open source code repositories. Our results show that by systematically creating source test cases, we can significantly increase the fault finding effectiveness of metamorphic testing. Further, in this paper we introduce a simple metamorphic testing tool called "METtester" that we use to conduct metamorphic testing on these methods.

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

↑