[英]FIX Protocol Testing on Jmeter?
Hello Everyone I just want to ask is there's a way we can execute FIX Protocol testing using Jmeter?大家好,我只想问有没有一种方法可以使用 Jmeter 执行 FIX 协议测试? Currently were using a tool and I just want to convert using Jmeter.目前正在使用工具,我只想使用 Jmeter 进行转换。 Your response is highly appreciated.非常感谢您的回复。 Thankyou谢谢
Current Tool:当前工具:
Note: The Request data uses also the JSON format注意:请求数据也使用 JSON 格式
Expected Result: I want to convert this request/response via Jmeter.预期结果:我想通过 Jmeter 转换此请求/响应。
I'm not aware of any existing plugins, however you can use a Java client library like QuickFIX/J and write the code for sending messages using JSR223 Sampler and Groovy language我不知道有任何现有插件,但是您可以使用 Java 客户端库(如QuickFIX/J)并编写代码以使用JSR223 Sampler和Groovy 语言发送消息
Code examples can be found in the user manual , here is an example for sending the message just in case:代码示例可以在用户手册中找到,这里是发送消息的示例,以防万一:
import quickfix.*;
Message message = new Message();
// BeginString
message.getHeader().setField(new StringField(8, "FIX.4.2"));
// SenderCompID
message.getHeader().setField(new StringField(49, "TW"));
// TargetCompID, with enumeration
message.getHeader().setField(new StringField(56, "TARGET"));
// MsgType
message.getHeader().setField(new CharField(35, 'F'));
// OrigClOrdID
message.setField(new StringField(41, "123"));
// ClOrdID
message.setField(new StringField(11, "321"));
// Symbol
message.setField(new StringField(55, "LNUX"));
// Side, with value enumeration
message.setField(new CharField(54, Side.BUY));
// Text
message.setField(new StringField(58, "Cancel My Order!"));
Session.sendToTarget(message);
Alternatively you can create your own plugin for JMeter to make scripts creation and execution easier and faster或者,您可以为 JMeter 创建自己的插件,以使脚本创建和执行更容易和更快
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.