简体   繁体   English

空手道与类型配置的集成

[英]Karate integration with type config

can we use any config framework like type config for java in karate?我们可以在空手道中使用任何配置框架,例如 java 的类型配置吗? it can be used to pick up the values of keys mentioned in configuration file as per requirement.we have been using rest assured and type config.它可用于根据要求获取配置文件中提到的键的值。我们一直在使用 rest 并输入配置。

One word of advice is you need to un-learn a lot of "Java things" when you start with Karate.一个忠告是,当您开始学习空手道时,您需要取消学习很多“Java 知识”。 There is no need for type-config.不需要类型配置。 Please see the documentation: https://github.com/intuit/karate#configuration请参阅文档: https://github.com/intuit/karate#configuration

Also see this example for a example of "picking up keys" like you say: https://stackoverflow.com/a/49693808/143475另请参阅此示例以获取您所说的“拾取密钥”示例: https://stackoverflow.com/a/49693808/143475

If you have a specific need, please ask a new question, and provide good examples.如果您有特定需求,请提出一个新问题,并提供很好的示例。 Anything is possible in Karate.在空手道中一切皆有可能。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 空手道 - karate.configure('headers', { Accept: 'application/json' }); 在 karate-config.js 文件中无法识别。 它说缺少导入语句 - Karate - karate.configure('headers', { Accept: 'application/json' }); is not recognized in karate-config.js file. It says missing import statements 如何在空手道特征文件中传递体型? - how to pass body type in Karate feature file? 空手道 0.9.5.RC5 - “重试直到”函数以某种方式不尊重我在 karate-config.js 中的“重试”配置 - Karate 0.9.5.RC5 - 'retry until' function somehow does not respect my 'retry' configuration in karate-config.js 我得到 {"__type":"ResourceNotFoundException","message":"User pool client clientId does not exist."} while obtaing access token in karate API - I'm getting {"__type":"ResourceNotFoundException","message":"User pool client clientId does not exist."} while obtaing access token in karate API 错误 - 无法转换,不是 json 字符串:[类型:INPUT_STREAM,值:空手道框架中的 java.io.BufferedInputStream@5f8890c2 - Error - cannot convert, not a json string: [type: INPUT_STREAM, value: java.io.BufferedInputStream@5f8890c2 in karate framework 解析空手道中的动态响应 - Parsing Dynamic response in Karate 空手道 API:忽略“?” 在网址中 - Karate API: Ignore the '?' in the url 是空手道支持 &lt;= 运算符匹配 - is karate support <= operator matching 空手道异常 &#39;com.intuit.karate.exception.KarateException - Karate exception 'com.intuit.karate.exception.KarateException 在空手道中使用 cURL 实现 API 自动化 - Using cURL for API automation in Karate
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM