首页 > 解决方案 > 空手道:在两个不同的 url 上运行一个场景文件

问题描述

我的项目要求在两个不同的 url 上运行一个场景文件。两个 URL 的所有请求标头完全相同。

计划使用类似于下面

Scenario Outline: Test

Given url <testurls>
And path 'test'
When method GET
    Examples:
        |testurls  |
        |'https://test1.com' |
        |'https://test2.com' |

在空手道中还有其他更好的方法来处理它吗?

标签: karate

解决方案


这应该是最简单的方法。


推荐阅读