首页> 外文OA文献 >Testing from Structured Algebraic Specifications: The Oracle Problem
【2h】

Testing from Structured Algebraic Specifications: The Oracle Problem

机译:从结构代数规范进行测试:Oracle问题

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

Work in the area of specification-based testing has pointed out that testing can be effectively used to verify programs against formal specifications. The aim is to derive test information from formal specifications so that testing can be rigorously applied whenever full formal verification is not cost-effective. However, there are still several obstacles to be overcome in order to establish testing as a standard in formal frameworks. Accurate interpretation of test results is an extremely critical one. ududThis thesis is concerned with testing programs against structured algebraic specifications where axioms are expressed in first-order logic with equations, the usual connectives and quantifiers. The main issue investigated is the so-called oracle problem, that is, whether a decision procedure can be defined for interpreting the results of tests according to a formal specification. In this context, testing consists in checking whether specification axioms are satisfied by programs. Consequently, tests exercise operations referred to by the axioms and oracles evaluate the axioms according to the results produced by the tests. ududThe oracle problem for flat (unstructured) specifications often reduces to the problem of comparing two values of a non-observable sort, namely the equality problem, and also how to deal with quantifiers which may demand infinite test sets. Equality on non-observable sorts is interpreted up to behavioural equivalence with observational equivalence as an important special case. However, a procedure for implementing such a behavioural equality may be hard to define or even impossible. In this thesis, a solution to the oracle problem for flat specifications is presented which tackles the equality problem by using a pair of approximate equalities, one finer than behavioural equality and one coarser, and taking the syntactic position of quantifiers in formulae into account. ududAdditionally, when structured specifications are considered, the oracle problem can be harder. The reason is that specifications may be composed of parts over different signatures, and the structure must be taken into account in order to interpret test results according to specification axioms. Also, an implementation of hidden (non-exported) symbols may be required in order to check axioms which refer to them. Two solutions to the oracle problem for structured specifications are presented in this thesis based on a compositional and a non-compositional style of testing, namely structured testing and flat testing respectively. Structured testing handles the oracle problem more effectively than flat testing and under fewer assumptions. ududFurthermore, testing from structured specifications may require an approach which lies in between flat and structured testing. Therefore, based on normalisation of ordinary specifications, three normal forms are presented for defining a more practical and combined approach to testing and also coping more effectively with the oracle problem. The use of normal forms gives rise to a style of testing called semi-structured testing where some parts of the specification are replaced by normal forms and the result is checked using structured testing. Testing from normal forms can be very convenient whenever the original specification is too complex or oracles cannot be defined from it.
机译:基于规范的测试领域的工作已经指出,测试可以有效地用于根据正式规范验证程序。目的是从正式规范中获取测试信息,以便在完全正式验证不划算的情况下都可以严格应用测试。但是,要在正式框架中将测试确立为标准,仍然有许多障碍需要克服。对测试结果的准确解释是至关重要的。 ud ud本论文涉及针对结构化代数规范的测试程序,其中公理以一阶逻辑,方程式,常用连接词和量词表示。研究的主要问题是所谓的预言问题,即,是否可以定义一个决策程序来根据正式规范解释测试结果。在这种情况下,测试包括检查程序是否满足规范公理。因此,公理和预言家所指的测试练习操作根据测试产生的结果来评估公理。 ud ud扁平(非结构化)规范的oracle问题通常简化为比较两个不可观察类型的值的问题,即相等性问题,以及如何处理可能需要无限测试集的量词。在不可观察的种类上的平等被解释为行为对等,观察对等是一个重要的特例。但是,实现这种行为平等的过程可能很难定义,甚至是不可能的。本文提出了一种针对扁平规格的oracle问题的解决方案,该方案通过使用一对近似等式来解决相等性问题,该一对等式比行为等式更精细,而一个较粗化,并且考虑了量词在公式中的句法位置。 ud ud此外,考虑结构化规范时,oracle问题可能会更加棘手。原因是规范可能由不同签名的部分组成,并且必须考虑结构以便根据规范公理解释测试结果。同样,可能需要实现隐藏(未导出)符号,以便检查引用它们的公理。本文基于组合测试和非组合测试两种形式,针对结构化规格的oracle问题提出了两种解决方案,分别是结构化测试和扁平化测试。结构化测试比平面测试更有效地处理Oracle问题,并且假设更少。 ud ud此外,根据结构化规范进行测试可能需要一种介于平面测试和结构化测试之间的方法。因此,基于普通规范的规范化,提出了三种规范形式,用于定义一种更实用,更组合的测试方法,并且还可以更有效地应对Oracle问题。正常形式的使用产生了一种称为半结构化测试的测试样式,其中规范的某些部分被正常形式代替,并且使用结构化测试来检查结果。每当原始规范太复杂或无法从中定义预言时,使用范式进行测试会非常方便。

著录项

  • 作者

    Machado Patricia D L;

  • 作者单位
  • 年度 2000
  • 总页数
  • 原文格式 PDF
  • 正文语种 {"code":"en","name":"English","id":9}
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号