From cad9110d4a104523ca81906391acd8d45e38289f Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 7 Apr 2022 14:13:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E6=95=B0=E6=8D=AE=E6=89=A7?= =?UTF-8?q?=E8=A1=8CQUERY=E5=8F=82=E6=95=B0=E6=8B=BC=E6=8E=A5=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1011989 --user=赵勇 【接口测试】有个场景文件里显示请求有2个query参数,但是页面上只显示一个 https://www.tapd.cn/55049933/s/1130977 --- .../definition/request/sampler/MsHTTPSamplerProxy.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index b40af04acf..2862e40b55 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -388,11 +388,6 @@ public class MsHTTPSamplerProxy extends MsTestElement { this.useEnvironment = config.getConfig().get(this.getProjectId()).getApiEnvironmentid(); } String url = httpConfig.getProtocol() + "://" + httpConfig.getSocket(); - - // 补充如果是完整URL 则用自身URL - if (StringUtils.isNotEmpty(this.getUrl()) && ElementUtil.isURL(this.getUrl())) { - url = this.getUrl(); - } if (isUrl()) { if (this.isCustomizeReq() && StringUtils.isNotEmpty(this.getUrl())) { url = this.getUrl(); @@ -587,9 +582,6 @@ public class MsHTTPSamplerProxy extends MsTestElement { } return true; } - if (StringUtils.isNotEmpty(this.getUrl()) && ElementUtil.isURL(this.getUrl())) { - return true; - } return false; }