首页> 外文期刊>Journal of systems and software >Modelling dynamic memory management in constraint-based testing
【24h】

Modelling dynamic memory management in constraint-based testing

机译:在基于约束的测试中为动态内存管理建模

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

摘要

Constraint-based testing (CBT) is the process of generating test cases against a testing objective by using constraint solving techniques. When programs contain dynamic memory allocation and loops, constraint reasoning becomes challenging as new variables and new constraints should be created during the test data generation process. In this paper, we address this problem by proposing a new constraint model of C programs based on operators that model dynamic memory management. These operators apply powerful deduction rules on abstract states of the memory enhancing the constraint reasoning process. This allows to automatically generate test data respecting complex coverage objectives. We illustrate our approach on a well-known difficult example program that contains dynamic memory allocation/deallocation, structures and loops. We describe our implementation and provide preliminary experimental results on this example that show the highly deductive potential of the approach.
机译:基于约束的测试(CBT)是通过使用约束解决技术针对测试目标生成测试用例的过程。当程序包含动态内存分配和循环时,约束推理变得具有挑战性,因为应该在测试数据生成过程中创建新变量和新约束。在本文中,我们通过基于对动态内存管理进行建模的运算符提出一种新的C程序约束模型来解决此问题。这些运算符将强大的推论规则应用于内存的抽象状态,从而增强了约束推理过程。这样可以自动生成尊重复杂覆盖目标的测试数据。我们在一个著名的困难示例程序中说明我们的方法,该程序包含动态内存分配/重新分配,结构和循环。我们描述了我们的实现并在此示例上提供了初步的实验结果,这些结果表明了该方法的高度演绎潜力。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号