Testing AJAX Call Performance Through JMeter

I am doing performance testing for an application with AJAX calls. I can record the same requests, but I can not fulfill them. Can someone help me fulfill AJAX requests please?

Do I need to use an additional plugin for this? If so, what are they and how do I use them.

+4
source share
2 answers

I do not know about existing plugins that are capable of handling AJAX calls. Technically, AJAX requests are basic HTTP requests, but they must be executed in parallel using one additional thread for each call.

JMeter, , JSR223 Sampler AJAX. AJAX Transaction Controller, .

JMeter Sampler, AJAX.

2 . AJAX/XHR JMeter.

+8

, , . , , . cookie//:

https://github.com/blackboard/jmeter-common/tree/master/src/main/java/blackboard/jmeter/sampler/ConcurrentHttpRequests

p.s. processResult ConcurrentHttpRequestsSampler.java, jmeter -, ConcurrentHttpRequests:

try{
    jmeterContextOfParentThread.getVariables().put(subResult.getSampleLabel()+"_responseBody",new String(subResult.getResponseData(),"UTF-8"));
  }
  catch(java.io.UnsupportedEncodingException e) {
    jmeterContextOfParentThread.getVariables().put(subResult.getSampleLabel()+"_responseBody","Unable to read response data");
  }
+1

All Articles