首页> 外文期刊>Information and software technology >Automated generation of test oracles using a model-driven approach
【24h】

Automated generation of test oracles using a model-driven approach

机译:使用模型驱动的方法自动生成测试预告片

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

摘要

Context: Software development time has been reduced with new development tools and paradigms, testing must accompany these changes. In order to release software products in a timely manner as well as to minimise the impact of possible errors introduced during maintenance interventions, testing automation has become a central goal. Whilst research has produced significant results in test case generation and tools for test case (re)-execution, one of the most important open problems in testing is the automation of oracle generation. The oracle decides whether the program under test has or has not behaved correctly and then issues a pass/fail verdict. In most cases, writing the oracle is a time-consuming activity that, moreover, is manual in most cases. Objective: This article automates two important steps in the test oracle: obtention of expected output and its comparison with the actual output, using a model-driven approach. Method: The oracle automation problem is resolved using a model-driven framework, based on OMG standards: UML is used as metamodel and QVT and M0F2Text as transformation languages. The automated testing framework takes the models that describe the system as input, using UML notation and derives from them the test model and then the test code, following a model-driven approach. Test oracle procedures are obtained from a UML state machine. Results: A complete executable test case at functional test level is obtained, composed of a test procedure with parametrized input test data and expected result automation. Conclusion: The oracle automation is obtained using a model-driven approach, test cases are obtained automatically from UML models. The model-driven testing framework was applied to an industrial application and has been useful to testing automation for the main functionalities in the system.
机译:上下文:新的开发工具和范例减少了软件开发时间,测试必须伴随这些变化。为了及时发布软件产品并最大程度地减少维护干预期间引入的可能错误的影响,测试自动化已成为中心目标。尽管研究在测试用例生成和用于测试用例(重新)执行的工具方面取得了显著成果,但测试中最重要的开放性问题之一是Oracle生成的自动化。 oracle决定被测程序是否正常运行,然后发出通过/失败判定。在大多数情况下,编写oracle是一项耗时的活动,而且在大多数情况下是手动的。目标:本文自动化了测试Oracle中的两个重要步骤:使用模型驱动的方法来达到预期输出并将其与实际输出进行比较。方法:基于OMG标准,使用模型驱动的框架解决oracle自动化问题:UML被用作元模型,QVT和M0F2Text被用作转换语言。自动化测试框架使用UML表示法将描述系统的模型作为输入,并采用模型驱动的方法从中得出测试模型,然后得出测试代码。测试oracle过程是从UML状态机获得的。结果:在功能测试级别上获得了完整的可执行测试用例,该用例由带有参数化输入测试数据和预期结果自动化的测试过程组成。结论:甲骨文自动化是使用模型驱动的方法获得的,测试用例是从UML模型自动获得的。模型驱动的测试框架已应用于工业应用,对于测试系统中主要功能的自动化很有用。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号