From cdc76ba3ef9524cb5e297b5de33d509444ff339d Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 14 Feb 2023 15:34:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E7=8E=AF=E5=A2=83=E4=B8=BA=E7=A9=BA=E6=97=B6?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E6=9C=AA=E6=8F=90=E7=A4=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=B2=A1=E7=8E=AF=E5=A2=83=E7=9A=84=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1022967 --user=王孝刚 【接口测试】1.20版本,有个场景(保存过环境了)一执行就提示请重新选环境 https://www.tapd.cn/55049933/s/1335082 --- .../api/dto/definition/request/sampler/MsHTTPSamplerProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index 7ae434d36e..62121ac010 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -429,7 +429,7 @@ public class MsHTTPSamplerProxy extends MsTestElement { } else { String url = this.getUrl(); if (StringUtils.isEmpty(url)) { - MSException.throwException("请重新选择环境"); + MSException.throwException("当前步骤:" + this.getName() + " 环境为空,请重新选择环境"); } String envPath = url; sampler.setProperty("HTTPSampler.path", envPath, StandardCharsets.UTF_8.name());