首页> 外文期刊>Empirical Software Engineering >Static test case prioritization using topic models
【24h】

Static test case prioritization using topic models

机译:使用主题模型对静态测试用例进行优先级排序

获取原文
获取原文并翻译 | 示例
           

摘要

Software development teams use test suites to test changes to their source code. In many situations, the test suites are so large that executing every test for every source code change is infeasible, due to time and resource constraints. Development teams need to prioritize their test suite so that as many distinct faults as possible are detected early in the execution of the test suite. We consider the problem of static black-box test case prioritization (TCP), where test suites are prioritized without the availability of the source code of the system under test (SUT). We propose a new static black-box TCP technique that represents test cases using a previously unused data source in the test suite: the linguistic data of the test cases, i.e., their identifier names, comments, and string literals. Our technique applies a text analysis algorithm called topic modeling to the linguistic data to approximate the functionality of each test case, allowing our technique to give high priority to test cases that test different functionalities of the SUT. We compare our proposed technique with existing static black-box TCP techniques in a case study of multiple real-world open source systems: several versions of Apache Ant and Apache Derby. We find that our static black-box TCP technique outperforms existing static black-box TCP techniques, and has comparable or better performance than two existing execution-based TCP techniques. Static black-box TCP methods are widely applicable because the only input they require is the source code of the test cases themselves. This contrasts with other TCP techniques which require access to the SUT runtime behavior, to the SUT specification models, or to the SUT source code.
机译:软件开发团队使用测试套件来测试对其源代码的更改。在许多情况下,测试套件太大,以至于由于时间和资源的限制,无法对每个源代码更改执行每个测试。开发团队需要确定其测试套件的优先级,以便在执行测试套件的尽早发现尽可能多的不同故障。我们考虑静态黑盒测试用例优先级划分(TCP)的问题,在这种情况下,对测试套件进行优先级排序,而无法获得被测系统(SUT)的源代码。我们提出了一种新的静态黑盒TCP技术,该技术使用测试套件中以前未使用的数据源来表示测试案例:测试案例的语言数据,即其标识符名称,注释和字符串文字。我们的技术将一种称为主题建模的文本分析算法应用于语言数据,以近似每个测试用例的功能,从而使我们的技术能够为测试SUT不同功能的测试用例赋予较高的优先级。在多个真实世界的开源系统的案例研究中,我们将提议的技术与现有的静态黑盒TCP技术进行了比较:几种版本的Apache Ant和Apache Derby。我们发现,我们的静态黑盒TCP技术优于现有的静态黑盒TCP技术,并且与两种现有的基于执行的TCP技术相比具有可比或更好的性能。静态黑盒TCP方法之所以广泛适用,是因为它们所需的唯一输入就是测试用例本身的源代码。这与需要访问SUT运行时行为,SUT规范模型或SUT源代码的其他TCP技术形成对比。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号