路径中的多参数值未正确替换

Multi param values are not replaced properly in the path

我在 REST 调用中有多个参数,如下所示

/integration/live/rest/accessProfile?page=0&pageSize=10&sortBy=name&fieldList=name,id,date_created,date_modified,created_id,modified_id&filter=id% 20not%20equal%20to%20%27200%27%20AND%20id%20not%20equal%20to%20%27100%27%20AND%20id%20not%20equal%20to%20%27101%27%20AND%20id%20not% 20equal%20to%20%27102%27%20AND%20id%20not%20equal%20to%20%27103%27%20&getTotalRecordCo

我的代码是 * params { page: '0', pageSize: '10',sortBy: 'name', fieldList: ['name','id', 'date_created', 'date_modified', 'created_id', 'modified_id'], 过滤器: 'id%20not%20equal%20to%20%27200%27%20AND%20id%20not%20equal%20to%20%27100%27%20AND%20id%20not%20equal%20to%20%27101%27%20AND%20id%20not%20equal%20to%20%27102%27%20AND%20id%20not%20equal%20to%20%27103%27%20', getTotalRecordCount:true }

和路径“/integration/live/rest/accessProfile”

当我在 运行 测试用例中时,路径在 REST 调用中没有被正确替换

在运行之后发送到服务器的实际调用是

https://vm-trunk-wmic-01.eur.ad.sag/integration/live/rest/accessProfile?page=0&pageSize=10&sortBy=name&fieldList=name&fieldList=id&fieldList=date_created&fieldList=date_modified&fieldList=created_id&fieldList=modified_id&filter=id%2520not%2520equal%2520to%2520%2527200%2527%2520AND%2520id%2520not%2520equal%2520to%2520%2527100%2527%2520AND%2520id%2520not%2520equal%2520to%2520%2527101%2527%2520AND%2520id%2520not%2520equal%2520to%2520%2527102%2527%2520AND%2520id%2520not%2520equal%2520to%2520%2527103%2527%2520&getTotalRecordCount=true

除了路径中的 'fieldList' 参数外,所有参数都已正确替换。

我正在寻找正确的语法来传递我下面的 REST 调用

/integration/live/rest/accessProfile?page=0&pageSize=10&sortBy=name&fieldList=name,id,date_created,date_modified,created_id,modified_id&filter=id% 20not%20equal%20to%20%27200%27%20AND%20id%20not%20equal%20to%20%27100%27%20AND%20id%20not%20equal%20to%20%27101%27%20AND%20id%20not% 20equal%20to%20%27102%27%20AND%20id%20not%20equal%20to%20%27103%27%20&getTotalRecordCount=true

尝试:

* params { fieldList: 'name,id,date_created,date_modified,created_id,modified_id' }

编辑:请注意,逗号将根据 HTML 规范进行 URL 编码。如果你真的想要 "see" 逗号,请自己构建 url

有关执行此操作的 2 种方法的示例,请参阅此提交:https://github.com/intuit/karate/commit/14c6321606bb6bcb626614248f85cc8ea50c61b6