【问题标题】:How to merge multiple feature file in mock server using karate?如何使用空手道在模拟服务器中合并多个特征文件?
【发布时间】:2020-09-22 06:31:45
【问题描述】:

我正在使用 runner 类如下: https://github.com/intuit/karate/blob/master/examples/consumer-driven-contracts/payment-producer/src/test/java/payment/producer/mock/PaymentContractAgainstMockTest.java

现在我有多个要在单个运行器中使用的模拟功能文件。我从 0.9.6 发行说明中了解到这是可用的,但我不确定我必须对此文件进行哪些更改? https://github.com/intuit/karate/blob/master/examples/consumer-driven-contracts/payment-producer/src/test/java/payment/producer/mock/PaymentContractAgainstMockTest.java

同样需要帮助。

【问题讨论】:

    标签: karate


    【解决方案1】:

    FeatureServer.start(files, 0, false, null) 可以将List<File> 作为第一个参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-13
      • 2018-04-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多