karate - karate.robot can be accessed in .java or js files/ Can java or Js code call feature files?
问题描述
I had the following questions:
- I want to use Karate. robot in Java or Js files, is there a way to use it? can the robot interface be extended?
- Calling a feature file from Java code is possible?
TIA.
解决方案
Yes to both questions.
karate-robot
is a Maven artifact. And here is an example. Sorry JS is not an option. Maybe yes, because of something called "Graal", but not officially supported, and you are welcome to experiment.You can call a feature file from Java: https://github.com/intuit/karate#invoking-feature-files-using-the-java-api
推荐阅读
- python - 张量流模型的输出维度错误
- autofac - ASP.net core 3.0+ DependencyResolutionExcp 中的 Autofac:用于 InstancePerRequest 或 InstancePerMatchingLifeTimeScope
- html - 为什么不能结合 data-dismiss="alert" 和 input type = submit on one input type button
- elasticsearch - max virtual memory area vm.max_map_count [65530] 太低,增加到至少 [262144] - 永久解决方案
- laravel - Vue.js 和 Axios 获取 pdf 的速度很慢
- assembly - 我无法重置 GICv3 相关寄存器的值?
- c# - .net 没有字符串比较方法有效
- r - 如何创建循环以使我的代码在 R 中更高效?
- github - 如何推送或克隆 GitHub 私有仓库
- wpf - 禁用双击 Bing Map WPF 控件