fix(接口自动化): 修复jmx导入dubbo协议参数初始化问题
This commit is contained in:
parent
2cdad7e83c
commit
08a3c98ed6
|
@ -233,24 +233,24 @@ public class MsJmeterParser extends ScenarioImportAbstractParser {
|
||||||
elementNode.setConsumerAndService(consumerAndService);
|
elementNode.setConsumerAndService(consumerAndService);
|
||||||
|
|
||||||
List<MethodArgument> methodArguments = Constants.getMethodArgs(sampler);
|
List<MethodArgument> methodArguments = Constants.getMethodArgs(sampler);
|
||||||
if (CollectionUtils.isNotEmpty(methodArguments)) {
|
|
||||||
List<KeyValue> methodArgs = new LinkedList<>();
|
List<KeyValue> methodArgs = new LinkedList<>();
|
||||||
|
if (CollectionUtils.isNotEmpty(methodArguments)) {
|
||||||
methodArguments.forEach(item -> {
|
methodArguments.forEach(item -> {
|
||||||
KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue());
|
KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue());
|
||||||
methodArgs.add(keyValue);
|
methodArgs.add(keyValue);
|
||||||
});
|
});
|
||||||
elementNode.setArgs(methodArgs);
|
|
||||||
}
|
}
|
||||||
|
elementNode.setArgs(methodArgs);
|
||||||
|
|
||||||
List<MethodArgument> arguments = Constants.getAttachmentArgs(sampler);
|
List<MethodArgument> arguments = Constants.getAttachmentArgs(sampler);
|
||||||
|
List<KeyValue> attachmentArgs = new LinkedList<>();
|
||||||
if (CollectionUtils.isNotEmpty(arguments)) {
|
if (CollectionUtils.isNotEmpty(arguments)) {
|
||||||
List<KeyValue> methodArgs = new LinkedList<>();
|
|
||||||
arguments.forEach(item -> {
|
arguments.forEach(item -> {
|
||||||
KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue());
|
KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue());
|
||||||
methodArgs.add(keyValue);
|
attachmentArgs.add(keyValue);
|
||||||
});
|
});
|
||||||
elementNode.setAttachmentArgs(methodArgs);
|
|
||||||
}
|
}
|
||||||
|
elementNode.setAttachmentArgs(attachmentArgs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue