JMeter - How to handle Longpolling transport method

为君一笑 提交于 2019-12-11 11:04:53

问题


One of the Jmeter requests which I captured contains the 'LongPolling' transport method. So it takes high load time/latency.

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:


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

Notice that it'll be marked as failed due to java.net.ConnectException

If you want you can add a child JSR223 PostProcessor with the following code to mark it successful

prev.setSuccessful(true);

setSuccessful method can override results status



来源:https://stackoverflow.com/questions/49076634/jmeter-how-to-handle-longpolling-transport-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!