首页> 外文期刊>The Journal of Systems and Software >A uniform random test data generator for path testing*
【24h】

A uniform random test data generator for path testing*

机译:统一的随机测试数据生成器,用于路径测试*

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

摘要

Path-oriented Random Testing (PRT) aims at generating a uniformly spread out sequence of random test data that execute a single control flow path within a program. The main challenge of PRT lies in its ability to build efficiently such a test suite in order to minimize the number of rejects (test data that execute another control flow path). We address this problem with an original divide-and-conquer approach based on constraint reasoning over finite domains, a well-recognized Constraint Programming technique. Our approach first derives path conditions by using backward symbolic execution and computes a tight over-approximation of their associated subdomain by using constraint propagation and constraint refutation. Second, a uniform random test data generator is extracted from this approximated subdomain. We implemented this approach and got experimental results that show the practical benefits of PRT based on constraint reasoning. On average, we got a two-order magnitude CPU time improvement over standard Random Testing on a set of paths extracted from classical benchmark programs.
机译:面向路径的随机测试(PRT)旨在生成均匀分布的随机测试数据序列,这些序列在程序中执行单个控制流路径。 PRT的主要挑战在于其有效构建这样的测试套件的能力,以最大程度地减少废品(执行另一条控制流程的测试数据)的数量。我们使用一种基于有限域上的约束推理的原始分治方法来解决此问题,这是一种公认​​的约束编程技术。我们的方法首先通过使用后向符号执行来得出路径条件,并通过使用约束传播和约束反推来计算其关联子域的紧密过度逼近。其次,从该近似子域中提取统一的随机测试数据生成器。我们实施了这种方法,并获得了实验结果,这些结果表明了基于约束推理的PRT的实际好处。平均而言,在从经典基准测试程序中提取的一组路径上,与标准随机测试相比,我们在CPU时间上的改进为两个数量级。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号