JMeter-如何处理Longpolling传输方法 [英] JMeter - How to handle Longpolling transport method
问题描述
我捕获的一个Jmeter请求包含"LongPolling"传输方法.因此,这需要很高的加载时间/延迟.
One of the Jmeter requests which I captured contains the 'LongPolling' transport method. So it takes high load time/latency.
我不想在请求中有这么高的延迟. 我如何在JMeter中处理这种情况.我已经尝试过"bzm-Parallel Controller",但没有成功.
I don't want to have this much of high latency in the request. How can I handle this situation in JMeter. I have already tried 'bzm-Parallel Controller' and it was not success.
推荐答案
您可以插入父级(右键单击)运行时控制器只需1秒钟,它将执行您的长请求,但仅等待1秒钟并继续下一个请求
You can Insert Parent (Right Click) a Runtime Controller with 1 second, it'll execute your long request, but will wait only 1 second and continue to next requests
请注意,由于java.net.ConnectException
如果需要,您可以添加带有以下内容的子 JSR223 PostProcessor 标记成功的代码
If you want you can add a child JSR223 PostProcessor with the following code to mark it successful
prev.setSuccessful(true);
setSuccessful 方法可以覆盖结果状态
setSuccessful method can override results status
这篇关于JMeter-如何处理Longpolling传输方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!