【24h】

Test Case Prioritization Using Test Similarities

机译:使用测试相似性测试案例优先级

获取原文

摘要

A classical heuristic in software testing is to reward diversity, which implies that a higher priority must be assigned to test cases that differ the most from those already prioritized. This approach is commonly known as similarity-based test prioritization (SBTP) and can be realized using a variety of techniques. The objective of our study is to investigate whether SBTP is more effective at finding defects than random permutation, as well as determine which SBTP implementations lead to better results. To achieve our objective, we implemented five different techniques from the literature and conducted an experiment using the defects4j dataset, which contains 395 real faults from six real-world open-source Java programs. Findings indicate that running the most dissimilar test cases early in the process is largely more effective than random permutation (Vargha-Delaney A [VDA]: 0.76-0.99 observed using normalized compression distance). No technique was found to be superior with respect to the effectiveness. Locality-sensitive hashing was, to a small extent, less effective than other SBTP techniques (VDA: 0.38 observed in comparison to normalized compression distance), but its speed largely outperformed the other techniques (i.e., it was approximately 5-111 times faster). Our results bring to mind the well-known adage, "don't put all your eggs in one basket". To effectively consume a limited testing budget, one should spread it evenly across different parts of the system by running the most dissimilar test cases early in the testing process.
机译:软件测试中的经典启发式是奖励多样性,这意味着必须分配更高的优先级以测试案例,这些情况与已经优先考虑的案例不同。该方法通常称为基于相似性的测试优先级(SBTP),并且可以使用各种技术实现。我们研究的目的是调查SBTP是否在发现比随机排列的缺陷更有效,以及确定哪个SBTP实现导致更好的结果。为实现我们的目标,我们从文献中实施了五种不同的技术,并使用缺陷4J数据集进行了实验,其中包含来自六个真实世界开源Java程序的395个真实故障。调查结果表明,在该过程的早期运行最差异的测试用例大大于随机排列(Vargha-Delaney A [VDA]:0.76-0.99使用归一化压缩距离观察)。没有发现技术在效果方面是优越的。在某种程度上,地区敏感散列比其他SBTP技术(与归一化压缩距离相比观察到的VDA:0.38),但其速度在很大程度上优于其他技术(即,大约5-111倍) 。我们的结果引起了众所周知的格言,“不要把所有的鸡蛋放在一个篮子里”。为了有效消耗有限的测试预算,通过在测试过程的早期运行最不相似的测试用例,人们应该将其均匀地扩展到系统的不同部分。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号