karate - Custom Step Definitions for Karate to test Batch
问题描述
Would like to be able to create custom step definitions to be able to run a batch test. Is there a way to do this in karate?
Here is the example for the cucumber way: https://github.com/in-the-keyhole/khs-spring-boot-batch-cucumber-demo
解决方案
不会。原因是空手道提供了一种更简单的方法来将自定义 Java 逻辑注入测试。这是一个例子:https ://twitter.com/KarateDSL/status/1184450203614498817
有关详细说明,请阅读以下内容:https ://github.com/intuit/karate/issues/398 - 其中包含更多示例。
推荐阅读
- mysql - 如何将表与行值的条件连接起来?
- python - 跳过 NaN 值以获取距离
- fullcalendar - 其他显示器上的全日历刷新
- php - Codeigniter PostgreSQL 通过 CLI 运行不工作
- swift - UISegmentedControl iOS 13 SelectedTint 默认颜色
- salesforce - 文件格式和扩展名不匹配
- php - 如何使用平面 json 结果数组创建 PHP 自定义嵌套 json 数组
- python-3.x - __rrshift__ 可以接受多个参数吗?
- android - 如何在项目中设置 com.google.firebase:firebase-database 库
- c++ - 从 VSStudio 得到 C2628 奇怪的错误,所有分号都在那里