首页> 外文会议>AICI 2011;International conference on artificial intelligence and computational intelligence >A Heuristic Test Data Generation Approach for Program Fault Localization
【24h】

A Heuristic Test Data Generation Approach for Program Fault Localization

机译:程序故障定位的启发式测试数据生成方法

获取原文

摘要

The aim of this paper is to improve the reliability of programs by generating test cases considering different execution paths of the program. The method introduced in this paper assumes that only a single failing run is available for the program and applies a genetic algorithm which searches for the most similar failing and passing runs in terms of their executed predicates. By contrasting the similar passing and failing runs, the predicates that are different in two executions could be reported as fault relevant ones. We have also applied the k-means clustering technique to partition test cases according to their corresponding execution paths in order to ensure about the quality of software and locate the existing faults of the program. To evaluate the accuracy of the proposed method, we have conducted some case studies on a number of Siemens programs including different faulty versions. The results show the capability of the proposed method in generating a wide variety of test cases which could cover different program execution paths. The results also show the effectiveness of the approach in localizing faults according to detected fault relevant predicates.
机译:本文的目的是通过考虑程序的不同执行路径来生成测试用例,从而提高程序的可靠性。本文介绍的方法假设该程序仅可使用一次失败运行,并应用了一种遗传算法,该算法根据执行谓词搜索最相似的失败运行和通过运行。通过对比相似的通过和失败运行,可以将两次执行中不同的谓词报告为与故障相关的谓词。我们还应用了k-means聚类技术根据测试用例的相应执行路径对测试用例进行分区,以确保软件的质量并定位程序的现有故障。为了评估该方法的准确性,我们对许多西门子程序进行了一些案例研究,包括不同的故障版本。结果表明,该方法具有生成各种测试用例的能力,这些用例可以覆盖不同的程序执行路径。结果还表明,该方法可根据检测到的故障相关谓词来定位故障。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号