首页> 外文会议>Pacific Rim International Conference Dependable Computing >A Framework for Inheritance Testing from VDM++ Specifications
【24h】

A Framework for Inheritance Testing from VDM++ Specifications

机译:VDM ++规格的继承测试框架

获取原文

摘要

The benefits offered by the use of formal methods are not limited to avoidance of specification errors and elimination of ambiguities only - a formal specification also provides a sound basis for generating test suites. Inheritance is a powerful mechanism in object-oriented paradigm by which a subclass inherits data and functionality of a super class. Testing of inheritance relationships is crucial in object-oriented testing, as an inheritance error may lead to subtle bugs such as due to overridden functionality. In this paper, we introduce a technique to generate test cases for inheritance testing, using a VDM++ formal specification. The proposed technique is based on the flattening of a VDM++ specification class, and then generating operation sequences from the trace structure specified in the VDM++ specification. The input space for each operation is partitioned, and a test model is constructed from the operation sequences and the input partitions. Test paths are generated from the test model, which cover the different operation sequences as well as the partitions. We also define various coverage criteria for test path generation.
机译:使用正式方法提供的益处不仅限于避免规范错误,并且仅消除歧义 - 正式规格还为生成测试套件提供了良好的基础。继承是面向对象范例的强大机制,子类属继承超级类的数据和功能。继承关系的测试在面向对象测试中至关重要,因为继承错误可能导致微妙的错误,例如由于覆盖功能。在本文中,我们使用VDM ++正式规范介绍了一种技术来生成继承测试的测试用例。所提出的技术基于VDM ++规范类的趋势,然后从VDM ++规范中指定的跟踪结构生成操作序列。每个操作的输入空间被分区,并且从操作序列和输入分区构建测试模型。从测试模型生成测试路径,该测试模型涵盖不同的操作序列以及分区。我们还定义了测试路径生成的各种覆盖标准。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号