首页> 外文期刊>Information and software technology >Generating semantically valid test inputs using constrained input grammars
【24h】

Generating semantically valid test inputs using constrained input grammars

机译:使用约束输入语法生成语义有效的测试输入

获取原文
获取原文并翻译 | 示例
获取外文期刊封面目录资料

摘要

Context: Generating test cases based on software input interface is a black-box testing technique that can be made more effective by using structured input models such as input grammars. Automatically generating grammar-based test inputs may lead to structurally valid but semantically invalid inputs that may be rejected in early semantic error checking phases of a system under test. Objective: This paper aims to introduce a method for specifying a grammar-based input model with the model's semantic constraints to be used in the generation of positive test inputs. It is also important that the method can generate effective test suites based on appropriate grammar-based coverage criteria. Method: Formal specification of both input structure and input semantics provides the opportunity to use model instantiation techniques to create model instances that satisfy all specified constraints. The input interface of a subject system can be specified using a high-level specification scheme such as attribute grammars, and a transformation function from this scheme to an instantiable formal modeling language can generate the desired model instances. Results: We propose a declarative grammar-based input specification method that is based on a variation of attribute grammars and allows the user to specify input constraints in addition to input structure. The model can be instantiated automatically to generate structurally and semantically valid test inputs. The proposed method has the capability to specify test requirements and coverage criteria and use them to generate valid test suites that satisfy test coverage criteria requirements.Conclusion: The work presented in this paper provides a black-box test generation method for grammar-based software inputs that can automatically generate criteria-covering test suites.
机译:背景:基于软件输入接口生成测试用例是一种黑盒测试技术,可以通过使用结构化的输入模型(例如输入语法)来提高效率。自动生成基于语法的测试输入可能会导致结构有效但语义无效的输入,这些输入可能会在被测系统的早期语义错误检查阶段中被拒绝。目的:本文旨在介绍一种用于指定基于语法的输入模型的方法,该模型具有模型的语义约束,可用于生成肯定的测试输入。同样重要的是,该方法可以基于适当的基于语法的覆盖标准来生成有效的测试套件。方法:输入结构和输入语义的形式规范提供了使用模型实例化技术来创建满足所有指定约束的模型实例的机会。可以使用高级规范方案(例如属性语法)来指定主题系统的输入接口,并且从该方案到可实例化的形式化建模语言的转换函数可以生成所需的模型实例。结果:我们提出了一种基于声明式语法的输入指定方法,该方法基于属性语法的变体,并且允许用户指定除输入结构之外的输入约束。该模型可以自动实例化以生成结构上和语义上有效的测试输入。所提出的方法能够指定测试要求和覆盖标准,并使用它们来生成满足测试覆盖标准要求的有效测试套件。结论:本文介绍的工作为基于语法的软件输入提供了黑盒测试生成方法。可以自动生成包含条件的测试套件。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号