首页> 外国专利> Framework for testing logic of code based on model elements

Framework for testing logic of code based on model elements

机译:基于模型元素的代码逻辑测试框架

摘要

Various embodiments of systems and methods to provide a testing framework for testing code are described herein. In one aspect, a request to test at least a portion of code is received. A test model composed of model elements representing the portion of the code, code on which the portion of the code depends and one or more preexisting test doubles is generated. An option is provided to define one or more test double elements, in the test model, corresponding to the code on which the portion of the code depends. Further, an option is provided to alter dependencies between the model elements and the defined one or more test double elements in the test model. Furthermore, new one or more code artefacts are generated based on the test model and the generated new one or more code artefacts are executed to test logic of the portion of the code.
机译:本文描述了提供用于测试代码的测试框架的系统和方法的各种实施例。一方面,接收到测试至少一部分代码的请求。生成一个测试模型,该模型由代表代码部分的模型元素,代码部分所依赖的代码以及一个或多个预先存在的测试双精度组成。提供了一个选项,用于定义测试模型中与代码部分所依赖的代码相对应的一个或多个测试双重元素。此外,提供了一个选项来更改模型元素与测试模型中已定义的一个或多个测试双重元素之间的依赖性。此外,基于测试模型生成新的一个或多个代码伪像,并且执行所生成的新的一个或多个代码伪像以测试代码部分的逻辑。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号