fix(接口测试): 修复rest参数开启编码后无法引用到变量的缺陷
--bug=1021380 --user=王孝刚 【接口测试】rest参数中使用变量后开启编码,变量引用不到 https://www.tapd.cn/55049933/s/1320954
This commit is contained in:
parent
e54f206eee
commit
5e9100bb19
|
@ -555,8 +555,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
|||
String value = keyValue.getValue() != null && keyValue.getValue().startsWith("@") ?
|
||||
ScriptEngineUtils.buildFunctionCallString(keyValue.getValue()) : keyValue.getValue();
|
||||
value = keyValue.isUrlEncode() ? StringUtils.join(StringUtils.join("${__urlencode(", value), ")}") : value;
|
||||
String key = keyValue.isUrlEncode() ? StringUtils.join(StringUtils.join("${__urlencode(", keyValue.getName()), ")}") : keyValue.getName();
|
||||
keyValueMap.put(key, value);
|
||||
keyValueMap.put(keyValue.getName(), value);
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue