...
首页> 外文期刊>Journal of software >Sequential Pattern Mining Based Test Case Regeneration
【24h】

Sequential Pattern Mining Based Test Case Regeneration

机译:基于顺序模式挖掘的测试用例再生

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

摘要

Automated test generation for object-oriented programs is an essential and yet a difficult task. Many automated test generation approaches produce test cases entirely from the program under test, without considering useful information from already created test cases. This paper presents an approach to regenerate test cases via exploiting frequently-used method call sequences from test repository. Particularly, for an object-oriented program under test, a sequential pattern mining strategy is employed to obtain frequent subsequences of method invocations as sequential patterns from corresponding test repository, and then a GA-based test case regeneration strategy is used to produce new test cases on the basis of the sequential patterns. A prototype called SPM-RGN is developed and is applied to generate test cases for actual Java programs. Empirical results show that SPM-RGN can achieve 47.5%, 11.2% and 4.5% higher branch coverage than three existing automated test generators. Besides, SPM-RGN produces 85.1%, 28.1% and 27.4% shorter test cases than those test generators. Therefore, the test cases generated by SPM-RGN are more effective and easier to understand.
机译:面向对象程序的自动测试生成是一项必不可少的任务。许多自动测试生成方法完全从被测程序生成测试用例,而没有考虑已创建测试用例的有用信息。本文提出了一种通过利用来自测试库的常用方法调用序列来重新生成测试用例的方法。特别是,对于被测试的面向对象程序,采用顺序模式挖掘策略从相应的测试存储库中获取方法调用的频繁子序列作为顺序模式,然后使用基于GA的测试案例再生策略来生成新的测试案例。在顺序模式的基础上。开发了一个称为SPM-RGN的原型,并将其用于生成实际Java程序的测试用例。实证结果表明,与三个现有的自动测试生成器相比,SPM-RGN可以实现47.5%,11.2%和4.5%的分支覆盖率更高。此外,SPM-RGN生成的测试用例比生成测试器的生成器短85.1%,28.1%和27.4%。因此,由SPM-RGN生成的测试用例更加有效并且更易于理解。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号