如何从场景大纲中获取一列的值作为空手道中的数组

How to get values for one column from scenario outline as an array in Karate

我有一个request.json如下

    {
    "country":"#(country)",
    "states":["#(states)"]
    }

我的专题文件

    Scenario outline: test

    *def req = call('request.json')
    And request req
    When method post

    Examples:
    |country|states|
    |India|delhi,goa|

使用上面的代码我得到了

    {
    "country":"India",
    "states":["delhi,goa"]
    }

但我希望我的请求如下所示

    {
    "country":"India",
    "states":["delhi","goa"]
    }

有什么直接的方法可以达到上面的要求吗

进行此更改:

Examples:
|country|states!|
|India|['delhi','goa']|

参考:https://github.com/intuit/karate#scenario-outline-enhancements