fix(接口自动化): 修复导入jmx 超时时间丢失问题
This commit is contained in:
parent
b20a870581
commit
eed1a5e167
|
@ -214,6 +214,8 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
|
||||||
samplerProxy.getBody().setKvs(keyValues);
|
samplerProxy.getBody().setKvs(keyValues);
|
||||||
}
|
}
|
||||||
samplerProxy.setProtocol(RequestType.HTTP);
|
samplerProxy.setProtocol(RequestType.HTTP);
|
||||||
|
samplerProxy.setConnectTimeout(source.getConnectTimeout()+"");
|
||||||
|
samplerProxy.setResponseTimeout(source.getResponseTimeout()+"");
|
||||||
samplerProxy.setPort(source.getPropertyAsString("HTTPSampler.port"));
|
samplerProxy.setPort(source.getPropertyAsString("HTTPSampler.port"));
|
||||||
samplerProxy.setDomain(source.getDomain());
|
samplerProxy.setDomain(source.getDomain());
|
||||||
if (source.getArguments() != null) {
|
if (source.getArguments() != null) {
|
||||||
|
@ -239,6 +241,7 @@ public class MsJmeterParser extends ApiImportAbstractParser<ScenarioImport> {
|
||||||
samplerProxy.setMethod(source.getMethod());
|
samplerProxy.setMethod(source.getMethod());
|
||||||
if (this.getUrl(source) != null) {
|
if (this.getUrl(source) != null) {
|
||||||
samplerProxy.setUrl(this.getUrl(source));
|
samplerProxy.setUrl(this.getUrl(source));
|
||||||
|
samplerProxy.setPath(null);
|
||||||
}
|
}
|
||||||
samplerProxy.setId(UUID.randomUUID().toString());
|
samplerProxy.setId(UUID.randomUUID().toString());
|
||||||
samplerProxy.setType("HTTPSamplerProxy");
|
samplerProxy.setType("HTTPSamplerProxy");
|
||||||
|
|
Loading…
Reference in New Issue