如何在空手道 DSL 中跨环境并行执行测试(多个功能文件)

How to execute tests (multiple feature files) across environments in parallel in Karate DSL

如何使用空手道 DSL 在多个环境中并行执行测试(功能文件)

我有两个功能文件需要在不同环境中并行执行。

使用第二个功能文件,并在 2 个场景中调用您想要的功能,但传递不同的参数。

您甚至可以使用 Scenario Outline,例如,请参见:

Scenario Outline:
  * call read('some.feature') <config>

Examples:
    | config |
    | { type: 'chrome' } | 
    | { type: 'chromedriver' } |
    | { type: 'geckodriver' } |