首页> 外文期刊>Journal of logic and computation >Efficient generation of test data structures using constraint logic programming and program transformation
【24h】

Efficient generation of test data structures using constraint logic programming and program transformation

机译:使用约束逻辑编程和程序转换有效生成测试数据结构

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

摘要

The goal of Bounded-Exhaustive Testing (BET) is the automatic generation of all test cases satisfying a given invariant, within a given size bound. When the test cases have a complex structure, the development of correct and efficient generators becomes a very challenging task. In this article we use Constraint Logic Programming (CLP) to systematically develop generators of structurally complex test data structures. We follow a declarative approach that allows us to separate the issue of (i) defining the test data structure in terms of its properties, from that of (ii) efficiently generating data structure instances. This separation helps establish the correctness of the developed test case generators. We rely on a symbolic representation and we take advantage of efficient search strategies provided by CLP systems for generating test instances. Through a running example taken from the literature on BET, we illustrate our test generation framework and we show that CLP allows us to develop easily understandable and efficient test generators. Additionally, we propose a program transformation technique whose goal is to make the evaluation of these CLP-based generators much more efficient and we demonstrate its effectiveness on a number of complex test data structures.
机译:穷举测试(BET)的目标是在给定的大小范围内自动生成满足给定不变性的所有测试用例。当测试用例具有复杂的结构时,开发正确有效的生成器将成为一项非常具有挑战性的任务。在本文中,我们使用约束逻辑编程(CLP)来系统开发结构复杂的测试数据结构的生成器。我们遵循一种声明性方法,该方法允许我们将(i)根据其属性定义测试数据结构的问题与(ii)有效生成数据结构实例的问题分开。这种分离有助于确定开发的测试用例生成器的正确性。我们依靠符号表示,并且利用CLP系统提供的有效搜索策略来生成测试实例。通过一个有关BET文献的实例,我们说明了测试生成框架,并表明CLP使我们能够开发易于理解和有效的测试生成器。此外,我们提出了一种程序转换技术,其目标是使这些基于CLP的生成器的评估更加有效,并且在许多复杂的测试数据结构上证明其有效性。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号