fix(接口测试): 修复场景自定义请求 URL 参数修改不生效问题
【【接口测试】github#34568,【接口自动化】自定义请求的请求执行后,改成其他地址,点击保存后再次运行,请求内容显示发送的地址还是原本的。】 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001050158
This commit is contained in:
parent
7fb2100f1b
commit
8a6a798646
|
@ -402,7 +402,10 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
sampler.setProperty(HTTPSamplerBase.PATH, path);
|
sampler.setProperty(HTTPSamplerBase.PATH, path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
String envPath = this.path;
|
String envPath = this.isCustomizeReq() && BooleanUtils.isFalse(this.isRefEnvironment) && StringUtils.isNotBlank(this.url)
|
||||||
|
? this.url
|
||||||
|
: this.path;
|
||||||
|
|
||||||
// 有url则不拼接path 来源于调试请求
|
// 有url则不拼接path 来源于调试请求
|
||||||
if (StringUtils.isNotBlank(url) && StringUtils.isBlank(this.path)) {
|
if (StringUtils.isNotBlank(url) && StringUtils.isBlank(this.path)) {
|
||||||
envPath = this.url;
|
envPath = this.url;
|
||||||
|
|
Loading…
Reference in New Issue