karate - 空手道:在两个不同的 url 上运行一个场景文件
问题描述
我的项目要求在两个不同的 url 上运行一个场景文件。两个 URL 的所有请求标头完全相同。
计划使用类似于下面
Scenario Outline: Test
Given url <testurls>
And path 'test'
When method GET
Examples:
|testurls |
|'https://test1.com' |
|'https://test2.com' |
在空手道中还有其他更好的方法来处理它吗?
解决方案
这应该是最简单的方法。
推荐阅读
- sql-server - 执行/竞争的存储过程顺序
- google-apps-script - 将“从电子表格创建多项选择表单问题”脚本转换为“创建复选框等” 脚本 - 错误?
- go - xsd-makepkg 包没有通过 go get 命令正确加载
- git - 如何临时删除未暂存的更改,然后再恢复它们
- substrate - 如何绑定到 0.0.0.0 而不是 localhost 以用于 Docker 目的
- java - 将 Java 对象列表序列化为 yaml 的最佳方法,使用 2 个换行符分隔每个生成的顶级对象节点
- python - 使用 numpy 高效计算多个点积
- javascript - JavaScript - 如何返回数组中的最大数?
- java - KafkaAvroDeserializer 因 Kyro 异常而失败
- javascript - 为Angular模板html提供动态ID