fix(接口测试): 修复导入数据执行QUERY参数拼接错误问题
--bug=1011989 --user=赵勇 【接口测试】有个场景文件里显示请求有2个query参数,但是页面上只显示一个 https://www.tapd.cn/55049933/s/1130977
This commit is contained in:
parent
05a8fc5695
commit
cad9110d4a
|
@ -388,11 +388,6 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
this.useEnvironment = config.getConfig().get(this.getProjectId()).getApiEnvironmentid();
|
this.useEnvironment = config.getConfig().get(this.getProjectId()).getApiEnvironmentid();
|
||||||
}
|
}
|
||||||
String url = httpConfig.getProtocol() + "://" + httpConfig.getSocket();
|
String url = httpConfig.getProtocol() + "://" + httpConfig.getSocket();
|
||||||
|
|
||||||
// 补充如果是完整URL 则用自身URL
|
|
||||||
if (StringUtils.isNotEmpty(this.getUrl()) && ElementUtil.isURL(this.getUrl())) {
|
|
||||||
url = this.getUrl();
|
|
||||||
}
|
|
||||||
if (isUrl()) {
|
if (isUrl()) {
|
||||||
if (this.isCustomizeReq() && StringUtils.isNotEmpty(this.getUrl())) {
|
if (this.isCustomizeReq() && StringUtils.isNotEmpty(this.getUrl())) {
|
||||||
url = this.getUrl();
|
url = this.getUrl();
|
||||||
|
@ -587,9 +582,6 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotEmpty(this.getUrl()) && ElementUtil.isURL(this.getUrl())) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue