fix(接口定义): 场景环境为空时提示步骤未选环境
--bug=1022967 --user=王孝刚 【接口测试】1.20版本,有个场景(保存过环境了)一执行就提示请重新选环境 https://www.tapd.cn/55049933/s/1335082
This commit is contained in:
parent
c58c98a3fe
commit
d819725441
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue