关于空手道使用 URL 和查询参数的问题

Question about Karate using URL with query parameter

我正在尝试用空手道编写测试用例。 URL 有一个 '?'在里面,我不确定如何处理它。我已在下面的代码下方粘贴:

Feature: WorkOrder API


Background:
* configure ssl = true
* url 'http://blahblah/v1/workorders/activitydetails?WorkOrderID='

Scenario Outline: Get all the workorder activity details by valid workorder id

Given path <ID>
When method get
Then status <statuscode>
And assert response != null


Examples:
  |     ID      | statuscode |
  |  123456     |     200    |
  |  -56874     |     400    |
  |  1.2345     |     422    |
  |  'abcdefg'  |     422    |
  |  'd1d30ecc-a031-4f73-8687-e2b2f7e49c2b' | 422 |

我应该如何编写 URL 以便它可以检查我的示例?

没关系,我已经弄明白了。我不得不这样写:

Feature: WorkOrder API


Background:
* configure ssl = true
* url 'http://blahblah/v1/workorders/activitydetails?WorkOrderID='

Scenario Outline: Get all the workorder activity details by valid workorder id

Given path 'activitydetails'
And param WorkOrderID = <ID>
When method get
Then status <statuscode>
And assert response != null


Examples:
  |     ID      | statuscode |
  |  123456     |     200    |
  |  -56874     |     400    |
  |  1.2345     |     422    |
  |  'abcdefg'  |     422    |
  |  'd1d30ecc-a031-4f73-8687-e2b2f7e49c2b' | 422 |