使用 JMeter 对 JMS 消息队列进行功能测试

发布于 2024-07-17 06:50:45 字数 115 浏览 2 评论 0原文

我有一个 REST 服务,为了响应请求,在 JMS 队列上发布一条消息。 所有主要的 http 功能测试都是使用 JMeter 完成的,所以我想知道是否有人已成功从 JMeter 中的现有队列中提取 JMS 消息?

I've got a REST service that in response to a request, posts a message on a JMS queue. All of the main http functional testing is done using JMeter, so I was wondering if anyone has successfully pulled a JMS message off an existing queue in JMeter?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的往事 2024-07-24 06:50:45

JMeter 不会做这样的事情,但是您编写的用于扩展 MessageListener、向队列注册并让 JMeter 在 JUnit 测试中实例化的类当然可以。 我建议您将消费和测试分开。 编写 MessageListener,让它工作,然后弄清楚如何将其连接到 JMeter。

JMeter will do no such thing, but a class that you write to extend MessageListener, register with the queue, and have JMeter instantiate in a JUnit test certainly can. I'd recommend that you keep the consuming and testing separate. Write that MessageListener, get it working, and then figure out how to wire it into JMeter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文