首页    期刊浏览 2024年07月05日 星期五
登录注册

文章基本信息

  • 标题:Sequential Pattern Mining Based Test Case Regeneration
  • 本地全文:下载
  • 作者:He, Wei ; Zhao, Ruilian
  • 期刊名称:Journal of Software
  • 印刷版ISSN:1796-217X
  • 出版年度:2013
  • 卷号:8
  • 期号:12
  • 页码:3105-3113
  • DOI:10.4304/jsw.8.12.3105-3113
  • 语种:English
  • 出版社:Academy Publisher
  • 摘要: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.
  • 关键词:test case regeneration;object-oriented software;sequential pattern;Genetic Algorithms;test repository
国家哲学社会科学文献中心版权所有