【24h】

Towards Model-Driven Unit Testing

机译:进行模型驱动的单元测试

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

摘要

The Model-Driven Architecture (MDA) approach for constructing software systems advocates a stepwise refinement and transformation process starting from high-level models to concrete program code. In contrast to numerous research efforts that try to generate executable function code from models, we propose a novel approach termed model-driven monitoring. On the model level the behavior of an operation is specified with a pair of UML composite structure diagrams (visual contract), a visual notation for pre- and post-conditions. The specified behavior is implemented by a programmer manually. An automatic translation from our visual contracts to JML assertions allows for monitoring the hand-coded programs during their execution. In this paper1 we present how we extend our approach to allow for model-driven unit testing, where we utilize the generated JML assertions as test oracles. Further, we present an idea how to generate sufficient test cases from our visual contracts with the help of model-checking techniques.
机译:用于构建软件系统的模型驱动体系结构(MDA)方法倡导从高级模型到具体程序代码的逐步改进和转换过程。与尝试从模型生成可执行功能代码的众多研究工作形成对比,我们提出了一种称为模型驱动的监视的新颖方法。在模型级别,通过一对UML组合结构图(可视合同)指定操作的行为,该图形是前置条件和后置条件的可视表示法。指定的行为由程序员手动实现。从可视合同到JML断言的自动翻译可以在执行过程中监视手工编码的程序。在本文1中,我们介绍了如何扩展我们的方法以允许模型驱动的单元测试,其中我们将生成的JML断言用作测试预言。此外,我们提出了一个想法,即如何借助模型检查技术从可视合同中生成足够的测试用例。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号