首页> 外文期刊>Software >A dynamic stochastic model for automatic grammar-based test generation
【24h】

A dynamic stochastic model for automatic grammar-based test generation

机译:用于基于语法的自动测试生成的动态随机模型

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

摘要

Grammar-based test generation provides a systematic approach to producing test cases from a given context-free grammar. Unfortunately, naive grammar-based test generation is problematic because of the fact that exhaustive random test case production is often explosive, and grammar-based test generation with explicit annotation controls often causes unbalanced testing coverage. In this paper, we present an automatic grammar-based test generation approach, which takes a symbolic grammar as input, requires zero control input from users, and produces well-distributed test cases. Our approach utilizes a novel dynamic stochastic model where each variable is associated with a tuple of probability distributions, which are dynamically adjusted along the derivation. We further present a coverage tree illustrating the distribution of generated test cases and their detailed derivations. More importantly, the coverage tree supports various implicit derivation control mechanisms. We implemented this approach in a Java-based system, named Gena. Each test case generated by Gena automatically comes with a set of structural features, which can play an important and effective role on automated failure causes localization. Experimental results demonstrate the effectiveness of our approach, the well-balanced distribution of generated test cases over grammatical structures, and a case study on grammar-based failure causes localization. Copyright (C) 2014 John Wiley & Sons, Ltd.
机译:基于语法的测试生成提供了一种系统的方法,可以根据给定的上下文无关语法生成测试用例。不幸的是,基于天真的文法的测试生成是有问题的,因为事实是详尽的随机测试用例的产生通常是爆炸性的,并且带有显式注释控件的基于文法的测试生成通常会导致测试覆盖范围不均衡。在本文中,我们提出了一种基于语法的自动测试生成方法,该方法以符号语法为输入,需要用户的零控制输入,并生成分布良好的测试用例。我们的方法利用了一种新颖的动态随机模型,其中每个变量都与一个概率分布元组相关联,该概率分布元组沿着推导进行动态调整。我们进一步提供了一个覆盖树,说明了生成的测试用例及其详细派生的分布。更重要的是,覆盖树支持各种隐式推导控制机制。我们在名为Gena的基于Java的系统中实现了此方法。 Gena生成的每个测试用例都会自动具有一组结构特征,这些特征可以在自动故障原因定位中发挥重要而有效的作用。实验结果证明了我们的方法的有效性,生成的测试用例在语法结构上的均衡分布以及基于语法的失败导致本地化的案例研究。版权所有(C)2014 John Wiley&Sons,Ltd.

著录项

  • 来源
    《Software》 |2015年第11期|1519-1547|共29页
  • 作者

    Guo Hai-Feng; Qiu Zongyan;

  • 作者单位

    Univ Nebraska, Dept Comp Sci, Omaha, NE 68182 USA;

    Peking Univ, Dept Informat, Beijing 100871, Peoples R China;

  • 收录信息 美国《科学引文索引》(SCI);美国《工程索引》(EI);
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

    grammar-based test generation; software testing; fault localization;

    机译:基于语法的测试生成;软件测试;故障定位;
  • 入库时间 2022-08-18 02:50:44

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号