首页> 外文期刊>Software >JCrasher: an automatic robustness tester for Java
【24h】

JCrasher: an automatic robustness tester for Java

机译:JCrasher:Java的自动鲁棒性测试器

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

摘要

JCrasher is an automatic robustness testing tool for Java code. JCrasher examines the type information of a set of Java classes and constructs code fragments that will create instances of different types to test the behavior of public methods under random data. JCrasher attempts to detect bugs by causing the program under test to 'crash', that is, to throw an undeclared runtime exception. Although in general the random testing approach has many limitations, it also has the advantage of being completely automatic: no supervision is required except for off-line inspection of the test cases that have caused a crash. Compared to other similar commercial and research tools, JCrasher offers several novelties: it transitively analyzes methods, determines the size of each tested method's parameter-space and selects parameter combinations and therefore test cases at random, taking into account the time allocated for testing; it defines heuristics for determining whether a Java exception should be considered as a program bug or whether the JCrasher supplied inputs have violated the code's preconditions; it includes support for efficiently undoing all the state changes introduced by previous tests; it produces test files for JUnit, a popular Java testing tool; and it can be integrated in the Eclipse IDE.
机译:JCrasher是用于Java代码的自动鲁棒性测试工具。 JCrasher检查一组Java类的类型信息,并构建代码片段,这些代码片段将创建不同类型的实例,以测试随机数据下公共方法的行为。 JCrasher试图通过使被测程序“崩溃”(即引发未声明的运行时异常)来检测错误。尽管通常来说,随机测试方法有很多局限性,但它也具有全自动的优势:除了对导致崩溃的测试用例进行离线检查之外,不需要任何监督。与其他类似的商业和研究工具相比,JCrasher提供了一些新颖性:它可传递性地分析方法,确定每种测试方法的参数空间的大小,并选择参数组合,从而在考虑分配给测试时间的情况下随机选择测试用例;它定义了启发式方法,以确定是否应将Java异常视为程序错误或JCrasher提供的输入是否违反了代码的前提条件;它包括对有效撤销先前测试引入的所有状态更改的支持;它为流行的Java测试工具JUnit生成测试文件;它可以集成在Eclipse IDE中。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号