diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index 9a439d9003..59d3770e67 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -397,6 +397,9 @@ public class MsHTTPSamplerProxy extends MsTestElement { url = url.replace(this.getPort(), "10990"); } try { + if (StringUtils.startsWithAny(url, "http://", "https://")) { + url = "http://" + url; + } URL urlObject = new URL(url); sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8")); diff --git a/frontend/src/business/components/track/module/TestCaseNodeTree.vue b/frontend/src/business/components/track/module/TestCaseNodeTree.vue index 445e93ec22..94ce4d07d8 100644 --- a/frontend/src/business/components/track/module/TestCaseNodeTree.vue +++ b/frontend/src/business/components/track/module/TestCaseNodeTree.vue @@ -184,6 +184,7 @@ export default { }, list() { if (this.projectId) { + this.caseCondition.casePublic = false; this.result = getTestCaseNodesByCaseFilter(this.projectId, this.caseCondition, data => { this.treeNodes = data; this.treeNodes.forEach(node => {