使用jmeter进行HL7性能测试

HL7 performance testing with jmeter

我是 JMeter 的新手,正在尝试发送 HL7 消息来测试应用程序的性能。不幸的是我没有在互联网上找到太多信息。
我的第一个问题是——JMeter 是否支持发送 HL7 消息。如果是,那么我需要任何插件吗?
我正在使用 TCP sampler 发送消息,这是正确的方法吗?

使用这个 JMeter TCPClient plugin for TCP sampler for sending messages over MLLP to a HL7 接口引擎。

  1. 克隆插件仓库。
  2. 使用 Maven 构建 - mvn install
  3. 复制编译好的插件jar文件到<jmeter_home>/lib/
  4. 重新启动 JMeter
  5. 新建Thread Group
  6. 添加一个TCP Sampler到线程组
  7. nl.avisi.jmeter.mllpsampler.MllpTCPClient 指定为 TCP Sampler 中的 TCP client classname
  8. TCP Sampler中输入hostnameportnumber,添加HL7短信,设置无延迟
  9. 开火!

此外,查看这篇文章以获取有关以下内容的更多信息:
Performance testing of Health Care Applications

JMeter 支持其 Samplers, some protocols are available via JMeter Plugins

底层的协议

调查Application Infrastructure

JMeter 支持所有提到的协议。


关于 TCP - 我们不知道,也就是说,您可能只需要模仿 TCP 传输,或者您可能必须考虑上述所有因素。以更简洁的方式仔细检查您的 NFRs and determine which protocol(s) is(are) in scope and once done you should be able to proceed with the coding. Remember one small requirement which applies to all load tests: a test conducted by the load test tool must represent the real-life application usage as close as possible. So if you have only TCP requests in scope - TCP Sampler might be a viable approach, however personally I would go for HAPI library using JSR223 Sampler or JUnit Request sampler - this way you will be able to perform parameterization/correlation much easier as you will be able to build messages / parse responses