首页> 外文学位 >Enhancing test data generation using constraint programming.
【24h】

Enhancing test data generation using constraint programming.

机译:使用约束编程来增强测试数据的生成。

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

摘要

Testing is an important approach to uncover errors in software systems; but, effective testing can be time-consuming, cumbersome, and error-prone when done manually. One way to improve this process is to automate the generation of test data. Random generation of test data is easy to implement; it does not need explicit information about what methods expect, i.e., preconditions; and it can find errors that could be difficult to detect by manually writing test cases. However, it could be hard to generate valid test data when ignoring preconditions. For example, random generation may require a lot of time to produce a test case for a method whose precondition requires integers in a small range.; This work presents the design, implementation, and evaluation of a prototype to boost the performance of random testing for Java classes annotated with the Java Modeling Language---a specification language designed to document the behavior of Java modules. The prototype is based on a tool that performs pure random testing. The prototype guides the generation of values for primitive parameters by translating preconditions into constraint solving problems. Then, a constraint solver is used to find appropriate values for the test data. Experimental evaluation shows that the prototype finds at least the same number of bugs as the original pure-random tool but in much less time.
机译:测试是发现软件系统错误的重要方法。但是,手动进行有效的测试可能会非常耗时,麻烦且容易出错。改进此过程的一种方法是自动生成测试数据。随机生成测试数据易于实现;它不需要关于期望什么方法的明确信息,即前提条件;并且可以发现手动编写测试用例可能难以检测到的错误。但是,在忽略前提条件时可能很难生成有效的测试数据。例如,随机生成可能需要大量时间来产生一个方法的测试用例,该方法的前提条件是需要小范围内的整数。这项工作介绍了原型的设计,实现和评估,以提高对用Java建模语言(一种旨在记录Java模块行为的规范语言)注释的Java类进行随机测试的性能。该原型基于执行纯随机测试的工具。该原型通过将先决条件转换为约束求解问题来指导原始参数值的生成。然后,使用约束求解器为测试数据找到合适的值。实验评估表明,原型发现的错误数量至少与原始的纯随机工具相同,但所需的时间要少得多。

著录项

  • 作者

    Cortes, Antonio.;

  • 作者单位

    The University of Texas at El Paso.$bComputer Science.;

  • 授予单位 The University of Texas at El Paso.$bComputer Science.;
  • 学科 Computer Science.
  • 学位 M.S.
  • 年度 2008
  • 页码 88 p.
  • 总页数 88
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类 自动化技术、计算机技术;
  • 关键词

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号