首页 > 解决方案 > 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

标签: karate

解决方案


不会。原因是空手道提供了一种更简单的方法来将自定义 Java 逻辑注入测试。这是一个例子:https ://twitter.com/KarateDSL/status/1184450203614498817

有关详细说明,请阅读以下内容:https ://github.com/intuit/karate/issues/398 - 其中包含更多示例。


推荐阅读