From 072efeaf86d7ba52b9af9e7c076685d94462f6a5 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 4 Feb 2021 12:50:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BD=BF=E7=94=A8java=E4=BD=9C=E4=B8=BAhttp-client=EF=BC=8C?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=BF=9E=E6=8E=A5=E8=B6=85=E6=97=B660s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../performance/parse/xml/reader/jmx/JmeterDocumentParser.java | 3 ++- .../performance/test/components/PerformanceAdvancedConfig.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java index 3d60763613..2cf3e78660 100644 --- a/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java +++ b/backend/src/main/java/io/metersphere/performance/parse/xml/reader/jmx/JmeterDocumentParser.java @@ -387,7 +387,8 @@ public class JmeterDocumentParser implements DocumentParser { element.appendChild(createStringProp(document, "HTTPSampler.contentEncoding", "")); element.appendChild(createStringProp(document, "HTTPSampler.path", "")); element.appendChild(createStringProp(document, "HTTPSampler.concurrentPool", "6")); - element.appendChild(createStringProp(document, "HTTPSampler.connect_timeout", "")); + element.appendChild(createStringProp(document, "HTTPSampler.implementation", "Java")); + element.appendChild(createStringProp(document, "HTTPSampler.connect_timeout", "60000")); element.appendChild(createStringProp(document, "HTTPSampler.response_timeout", "")); hashTree.appendChild(element); // 空的 hashTree diff --git a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue index 023fa1bad2..6c6348bc68 100644 --- a/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformanceAdvancedConfig.vue @@ -128,7 +128,7 @@ export default { components: {MsTableOperatorButton}, data() { return { - timeout: 2000, + timeout: 60000, responseTimeout: null, statusCode: [], domains: [],