路径中的多参数值未正确替换
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 调用中没有被正确替换
在运行之后发送到服务器的实际调用是
除了路径中的 '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
/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 调用中没有被正确替换
在运行之后发送到服务器的实际调用是
除了路径中的 '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