3

我正在编写一个空手道 DSL 测试来测试一个 Web 服务端点。我已经在 karate-config.js 文件中定义了我的 url 库。但是当我尝试在背景部分使用它时,我收到以下错误。请帮忙。在下面提供了我的功能文件。

错误:“必需的 (...)+ 循环与输入‘场景:’中的任何内容都不匹配”

Feature: Test Data Management service endpoints that perform different operations with EPR

    Background:
     url dataManagementUrlBase

    Scenario: Validate that the contractor's facility requirements are returned from EPR
    Given path 'facilities'
    And def inputpayload = read('classpath:dataManagementPayLoad.json')
    And request inputpayload
    When method post
    Then status 200
    And match $ == read('classpath:dataManagementExpectedJson.json')
4

1 回答 1

2

*url

Background:
* url dataManagementUrlBase
于 2017-10-18T18:08:40.797 回答