fix(接口定义): 场景环境为空时执行未提示当前没环境的步骤
--bug=1022967 --user=王孝刚 【接口测试】1.20版本,有个场景(保存过环境了)一执行就提示请重新选环境 https://www.tapd.cn/55049933/s/1335082
This commit is contained in:
parent
fff38e2ca8
commit
cdc76ba3ef
|
@ -429,7 +429,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
} else {
|
} else {
|
||||||
String url = this.getUrl();
|
String url = this.getUrl();
|
||||||
if (StringUtils.isEmpty(url)) {
|
if (StringUtils.isEmpty(url)) {
|
||||||
MSException.throwException("请重新选择环境");
|
MSException.throwException("当前步骤:" + this.getName() + " 环境为空,请重新选择环境");
|
||||||
}
|
}
|
||||||
String envPath = url;
|
String envPath = url;
|
||||||
sampler.setProperty("HTTPSampler.path", envPath, StandardCharsets.UTF_8.name());
|
sampler.setProperty("HTTPSampler.path", envPath, StandardCharsets.UTF_8.name());
|
||||||
|
|
Loading…
Reference in New Issue