From 797f0ca7021f4e5b4424542497de189c7124edee Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 13 Apr 2022 18:37:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9TCP=E7=AB=AF=E5=8F=A3=E5=BD=95=E5=85=A5?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E6=94=AF=E6=8C=81=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/api/dto/automation/parse/MsJmeterParser.java | 2 +- .../api/automation/scenario/common/CustomizeReqInfo.vue | 2 +- .../components/api/definition/components/debug/DebugTcpPage.vue | 2 +- .../definition/components/environment/EnvironmentTcpConfig.vue | 2 +- .../api/definition/components/request/tcp/TcpConfig.vue | 2 +- .../api/test/components/request/ApiTcpRequestForm.vue | 2 +- .../components/api/test/components/request/tcp/TcpConfig.vue | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java index 0081c7ce9a..9f2f3614e8 100644 --- a/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java +++ b/backend/src/main/java/io/metersphere/api/dto/automation/parse/MsJmeterParser.java @@ -348,7 +348,7 @@ public class MsJmeterParser extends ApiImportAbstractParser { msTCPSampler.setName(tcpSampler.getName()); msTCPSampler.setType("TCPSampler"); msTCPSampler.setServer(tcpSampler.getServer()); - msTCPSampler.setPort(tcpSampler.getPort() + ""); + msTCPSampler.setPort(tcpSampler.getPropertyAsString(TCPSampler.PORT)); msTCPSampler.setCtimeout(tcpSampler.getConnectTimeout() + ""); msTCPSampler.setReUseConnection(tcpSampler.getProperty(TCPSampler.RE_USE_CONNECTION).getBooleanValue()); msTCPSampler.setNodelay(tcpSampler.getProperty(TCPSampler.NODELAY).getBooleanValue()); diff --git a/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue b/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue index 0bef243ad1..f9d3465353 100644 --- a/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue +++ b/frontend/src/business/components/api/automation/scenario/common/CustomizeReqInfo.vue @@ -36,7 +36,7 @@ - + diff --git a/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue index e4ff8fade7..472976ae69 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue @@ -8,7 +8,7 @@ - + diff --git a/frontend/src/business/components/api/definition/components/environment/EnvironmentTcpConfig.vue b/frontend/src/business/components/api/definition/components/environment/EnvironmentTcpConfig.vue index 6aeb70ee3d..14c6a71910 100644 --- a/frontend/src/business/components/api/definition/components/environment/EnvironmentTcpConfig.vue +++ b/frontend/src/business/components/api/definition/components/environment/EnvironmentTcpConfig.vue @@ -10,7 +10,7 @@ - + diff --git a/frontend/src/business/components/api/definition/components/request/tcp/TcpConfig.vue b/frontend/src/business/components/api/definition/components/request/tcp/TcpConfig.vue index ab8797fd87..ec95afb461 100644 --- a/frontend/src/business/components/api/definition/components/request/tcp/TcpConfig.vue +++ b/frontend/src/business/components/api/definition/components/request/tcp/TcpConfig.vue @@ -16,7 +16,7 @@ - + diff --git a/frontend/src/business/components/api/test/components/request/ApiTcpRequestForm.vue b/frontend/src/business/components/api/test/components/request/ApiTcpRequestForm.vue index c46815d06c..ec0c357682 100644 --- a/frontend/src/business/components/api/test/components/request/ApiTcpRequestForm.vue +++ b/frontend/src/business/components/api/test/components/request/ApiTcpRequestForm.vue @@ -19,7 +19,7 @@ - + diff --git a/frontend/src/business/components/api/test/components/request/tcp/TcpConfig.vue b/frontend/src/business/components/api/test/components/request/tcp/TcpConfig.vue index 6d768d5677..64175f2816 100644 --- a/frontend/src/business/components/api/test/components/request/tcp/TcpConfig.vue +++ b/frontend/src/business/components/api/test/components/request/tcp/TcpConfig.vue @@ -16,7 +16,7 @@ - +