Background:
* url "https://abc.testrail.net/index.php?"
Scenario: : Create CHECK
Given path'/api/v2/get_case/121'
And header Content-Type = 'application/json'
When method GET
Then print response
以下是我运行上述代码时 API 命中的 url https://abc.testrail.net/index.php/api/v2/get_case/121?
预期的网址 https://abc.testrail.net/index.php?/api/v2/get_case/121
由于这是一个不寻常的(在我看来是一个设计糟糕的(URL方案,请不要使用path
并手动形成URL。这不是空手道的问题。
Background:
* def baseUrl = "https://freshwave.testrail.net/index.php?/api/v2/"
Scenario: : Create CHECK
Given url baseUrl + 'get_case/121'
And header Content-Type = 'application/json'
When method GET
Then print response