SoapUI->如何在Rest请求中传递具有相同键的具有不同值的多个参数?

问题描述 投票:0回答:1

我正在使用SoapUI工具,我想在Rest请求中传递具有相同键的具有不同值的多个参数

示例-localhost:3030 / products?$ select [] =金霸王-AA电池(8包)&$ select [] =说明

SoapUi工具不允许输入相同的键(select []),它会引发错误-“属性名称存在!”

enter image description here

soapui web-api-testing
1个回答
0
投票

打开SOAP UI并浏览请求属性,转到“多值定界符”并设置一个值,比如说逗号(,)然后可以在实际值中放入逗号分隔的值。

在您的情况下,select=Duracell - AA Batteries (8-Pack), description将自动翻译为select=Duracell - AA Batteries (8-Pack)&select=description

© www.soinside.com 2019 - 2024. All rights reserved.