问题
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