fix(接口自动化): 修复导入jmx 超时时间丢失问题

This commit is contained in:
fit2-zhao 2021-03-31 12:03:26 +08:00
parent b20a870581
commit eed1a5e167
1 changed files with 3 additions and 0 deletions

View File

@ -214,6 +214,8 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
samplerProxy.getBody().setKvs(keyValues);
}
samplerProxy.setProtocol(RequestType.HTTP);
samplerProxy.setConnectTimeout(source.getConnectTimeout()+"");
samplerProxy.setResponseTimeout(source.getResponseTimeout()+"");
samplerProxy.setPort(source.getPropertyAsString("HTTPSampler.port"));
samplerProxy.setDomain(source.getDomain());
if (source.getArguments() != null) {
@ -239,6 +241,7 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
samplerProxy.setMethod(source.getMethod());
if (this.getUrl(source) != null) {
samplerProxy.setUrl(this.getUrl(source));
samplerProxy.setPath(null);
}
samplerProxy.setId(UUID.randomUUID().toString());
samplerProxy.setType("HTTPSamplerProxy");