fix(接口测试): 修改TCP端口录入方式支持字符串

This commit is contained in:
fit2-zhao 2022-04-13 18:37:06 +08:00 committed by TIanyang
parent a6ece1ad3c
commit 797f0ca702
7 changed files with 7 additions and 7 deletions

View File

@ -348,7 +348,7 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
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());

View File

@ -36,7 +36,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('api_test.request.tcp.port')" prop="port" label-width="60px">
<el-input-number v-model="request.port" controls-position="right" :min="0" :max="65535" size="small"/>
<el-input v-model="request.port" size="small"/>
</el-form-item>
</el-col>
</el-row>

View File

@ -8,7 +8,7 @@
<el-input v-model="request.server" maxlength="300" show-word-limit size="small"/>
</el-form-item>
<el-form-item :label="$t('api_test.request.tcp.port')" prop="port" label-width="60px">
<el-input-number v-model="request.port" controls-position="right" :min="0" :max="65535" size="small"/>
<el-input v-model="request.port" size="small"/>
</el-form-item>
<el-form-item>
<el-button size="small" type="primary" @click="stop" v-if="isStop">

View File

@ -10,7 +10,7 @@
</el-col>
<el-col :span="8">
<el-form-item :label="$t('api_test.request.tcp.port')" prop="port" label-width="60px">
<el-input-number v-model="config.port" controls-position="right" :min="0" :max="65535" :controls="false"/>
<el-input v-model="config.port"/>
</el-form-item>
</el-col>
</el-row>

View File

@ -16,7 +16,7 @@
</el-col>
<el-col :span="8">
<el-form-item :label="$t('api_test.request.tcp.port')" prop="port" label-width="60px">
<el-input-number v-model="config.port" controls-position="right" :min="0" :max="65535" :controls="false"/>
<el-input v-model="config.port"/>
</el-form-item>
</el-col>
</el-row>

View File

@ -19,7 +19,7 @@
</el-col>
<el-col :span="8">
<el-form-item :label="$t('api_test.request.tcp.port')" prop="port" label-width="60px">
<el-input-number v-model="request.port" controls-position="right" :min="0" :max="65535"/>
<el-input v-model="request.port"/>
</el-form-item>
</el-col>
</el-row>

View File

@ -16,7 +16,7 @@
</el-col>
<el-col :span="8">
<el-form-item :label="$t('api_test.request.tcp.port')" prop="port" label-width="60px">
<el-input-number v-model="config.port" controls-position="right" :min="0" :max="65535" :controls="false"/>
<el-input v-model="config.port"/>
</el-form-item>
</el-col>
</el-row>