空手道 API - 如何参数化下面的 Json post 请求

Karate API - How to parameterize below Json post request

如何在代码中参数化项目块:-

Scenario Outline: parameterization


* text query =
"""
{
    "add":"Product",
    "item":[
        {"pn":"12345","qn":1,"m":"mk"} 
      ]

}
"""
    Given url baseURL
    And request { query: '#(query)' }
    And header Accept = 'application/json'
    When method post
    Then status 200

    Examples:
      | item_num  |
      | 12345 |
      | 67890 |
Scenario Outline:
* def json = { add: 'Product', item: [{ pn: '<itemNum>', qn: 1, m: 'mk'}]}
* print json

Examples:
  | itemNum  |
  | 12345 |
  | 67890 |