fix(测试跟踪): 点击树菜单,列表恢复到列表
This commit is contained in:
parent
12f1c60a0f
commit
8f06031cec
|
@ -183,9 +183,16 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
if (!url.startsWith("http://") && !url.startsWith("https://")) {
|
if (!url.startsWith("http://") && !url.startsWith("https://")) {
|
||||||
url = "http://" + url;
|
url = "http://" + url;
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
|
||||||
|
url.replaceAll(this.getPort(), "10990");
|
||||||
|
}
|
||||||
URL urlObject = new URL(url);
|
URL urlObject = new URL(url);
|
||||||
sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8"));
|
sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8"));
|
||||||
sampler.setPort(urlObject.getPort());
|
if (urlObject.getPort() > 0 && urlObject.getPort() != 10990 && StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
|
||||||
|
sampler.setPort(urlObject.getPort());
|
||||||
|
} else {
|
||||||
|
sampler.setProperty("HTTPSampler.port", this.getPort());
|
||||||
|
}
|
||||||
sampler.setProtocol(urlObject.getProtocol());
|
sampler.setProtocol(urlObject.getProtocol());
|
||||||
String envPath = StringUtils.equals(urlObject.getPath(), "/") ? "" : urlObject.getPath();
|
String envPath = StringUtils.equals(urlObject.getPath(), "/") ? "" : urlObject.getPath();
|
||||||
sampler.setPath(envPath);
|
sampler.setPath(envPath);
|
||||||
|
|
|
@ -285,6 +285,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
nodeChange(node, nodeIds, pNodes) {
|
nodeChange(node, nodeIds, pNodes) {
|
||||||
|
this.activeName = "default";
|
||||||
this.selectNodeIds = nodeIds;
|
this.selectNodeIds = nodeIds;
|
||||||
this.selectNode = node;
|
this.selectNode = node;
|
||||||
this.selectParentNodes = pNodes;
|
this.selectParentNodes = pNodes;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2115bd28a90854d2b6276a90878934715498c584
|
Subproject commit 07951ba17aef6f29e50cfd68e40de3266f9a60cd
|
Loading…
Reference in New Issue