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 @@ - +