style(接口自动化): http协议变量端口问题修复
This commit is contained in:
parent
b9c31e3cc2
commit
2c7195f946
|
@ -294,7 +294,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
sampler.setPath(url);
|
sampler.setPath(url);
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
|
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
|
||||||
url.replaceAll(this.getPort(), "10990");
|
url = url.replaceAll(this.getPort(), "10990");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
URL urlObject = new URL(url);
|
URL urlObject = new URL(url);
|
||||||
|
|
Loading…
Reference in New Issue