fix(接口定义): 场景环境为空时执行未提示当前没环境的步骤

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

View File

@ -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());