首页> 外文会议>Fourth IEEE International Conference on Software Testing, Verification, and Validation >An Approach for Search Based Testing of Null Pointer Exceptions
【24h】

An Approach for Search Based Testing of Null Pointer Exceptions

机译:基于搜索的空指针异常测试方法

获取原文

摘要

Uncaught exceptions, and in particular null pointer exceptions (NPEs), constitute a major cause of crashes for software systems. Although tools for the static identification of potential NPEs exist, there is need for proper approaches able to identify system execution scenarios causing NPEs. This paper proposes a search-based test data generation approach aimed at automatically identify NPEs. The approach consists of two steps: (i) an inter-procedural data and control flow analysis-relying on existing technology-that identifies paths between input parameters and potential NPEs, and (ii) a genetic algorithm that evolves a population of test data with the aim of covering such paths. The algorithm is able to deal with complex inputs containing arbitrary data structures. The approach has been evaluated on to test class clusters from six Java open source systems, where NPE bugs have been artificially introduced. Results show that the approach is, indeed, able to identify the NPE bugs, and it outperforms random testing. Also, we show how the approach is able to identify real NPE bugs some of which are posted in the bug-tracking system of the Apache libraries.
机译:未捕获的异常,尤其是空指针异常(NPE),是导致软件系统崩溃的主要原因。尽管存在用于静态识别潜在NPE的工具,但仍需要能够识别导致NPE的系统执行方案的适当方法。本文提出了一种基于搜索的测试数据生成方法,旨在自动识别NPE。该方法包括两个步骤:(i)基于现有技术的过程间数据和控制流分析,可识别输入参数与潜在NPE之间的路径,以及(ii)遗传算法,可通过以下步骤进化出一系列测试数据:覆盖这些路径的目的。该算法能够处理包含任意数据结构的复杂输入。已经对该方法进行了评估,以测试来自六个Java开源系统的类集群,其中人为地引入了NPE错误。结果表明,该方法确实能够识别NPE错误,并且其性能优于随机测试。此外,我们还将展示该方法如何识别真正的NPE错误,其中一些错误已发布在Apache库的错误跟踪系统中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号