fix(接口自动化): 修复jmx导入dubbo协议参数初始化问题

This commit is contained in:
fit2-zhao 2021-02-20 18:50:40 +08:00
parent 2cdad7e83c
commit 08a3c98ed6
1 changed files with 5 additions and 5 deletions

View File

@ -233,24 +233,24 @@ public class MsJmeterParser extends ScenarioImportAbstractParser {
elementNode.setConsumerAndService(consumerAndService);
List<MethodArgument> methodArguments = Constants.getMethodArgs(sampler);
List<KeyValue> methodArgs = new LinkedList<>();
if (CollectionUtils.isNotEmpty(methodArguments)) {
List<KeyValue> methodArgs = new LinkedList<>();
methodArguments.forEach(item -> {
KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue());
methodArgs.add(keyValue);
});
elementNode.setArgs(methodArgs);
}
elementNode.setArgs(methodArgs);
List<MethodArgument> arguments = Constants.getAttachmentArgs(sampler);
List<KeyValue> attachmentArgs = new LinkedList<>();
if (CollectionUtils.isNotEmpty(arguments)) {
List<KeyValue> methodArgs = new LinkedList<>();
arguments.forEach(item -> {
KeyValue keyValue = new KeyValue(item.getParamType(), item.getParamValue());
methodArgs.add(keyValue);
attachmentArgs.add(keyValue);
});
elementNode.setAttachmentArgs(methodArgs);
}
elementNode.setAttachmentArgs(attachmentArgs);
}
/**