fix(接口定义): 场景环境为空时提示步骤未选环境

--bug=1022967 --user=王孝刚 【接口测试】1.20版本,有个场景(保存过环境了)一执行就提示请重新选环境
https://www.tapd.cn/55049933/s/1335082
This commit is contained in:
wxg0103 2023-02-14 15:32:05 +08:00 committed by wxg0103
parent c58c98a3fe
commit d819725441
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
url = url.replace(this.getPort(), "10990");
}
if (StringUtils.isEmpty(url)) {
MSException.throwException("请重新选择环境");
MSException.throwException("当前步骤:"+ this.getName() +" 环境为空,请重新选择环境");
}
String envPath = url;
sampler.setProperty("HTTPSampler.path", envPath, StandardCharsets.UTF_8.name());