fix(接口测试): 修复自定义请求转接口用例问题

This commit is contained in:
fit2-zhao 2022-02-23 18:06:36 +08:00 committed by fit2-zhao
parent 4960ab2c59
commit d0a1bbc978
2 changed files with 2 additions and 1 deletions

View File

@ -388,7 +388,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
url = this.getUrl();
}
if (isUrl()) {
if (this.isCustomizeReq()) {
if (this.isCustomizeReq() && StringUtils.isNotEmpty(this.getUrl())) {
url = this.getUrl();
sampler.setProperty("HTTPSampler.path", url);
}

View File

@ -142,6 +142,7 @@ export default {
},
saveAsApi() {
this.currentProtocol = this.data.protocol;
this.data.customizeReq = false;
this.$refs.api.open(this.data);
}
}