mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 12:39:12 +08:00
fix(接口测试): 修复自定义请求转接口用例问题
This commit is contained in:
parent
4960ab2c59
commit
d0a1bbc978
@ -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);
|
||||
}
|
||||
|
@ -142,6 +142,7 @@ export default {
|
||||
},
|
||||
saveAsApi() {
|
||||
this.currentProtocol = this.data.protocol;
|
||||
this.data.customizeReq = false;
|
||||
this.$refs.api.open(this.data);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user