FW: why JMeter "failed" to record Ajax requests?

上一篇 / 下一篇  2014-01-13 09:49:44 / 个人分类:Jmet

JMeter is a tool for testing server-side activity; as long as you record every request to server-side it doesn't care whatever happens on the client. Can you give details abt why JMeter "failed" to record Ajax requests?

I am trying to load tes**t a website where lot of images are called via *Ajax and the very first thing i.e. logging into the application opens up a pop up when we click on log in button. I tried Jmeter proxy setting*s to record it but failed. Also tried with **Badboy, and it didn't work out too. The limitations I have with me is I need to load test it with Jmeter only. Are there any plugins available which can be integrated to Jmeter so that AJAX and pop ups in an application can be handled in a much better way.

Please suggest if there is any way out.

Thanks in advance !!

In general, JMeter does not have a problem with Ajax or Popups - so there is no plugin to address such. Both recording and playback happens at the HTTP layer so things like popups are somewhat irrelevant and Ajax is more a matter of timing; but in both cases it is only the HTTP call that matters. So, if you are having a problem, it could be something else that is holding you up. Try playing with the Proxy settings or using a different browser, beyond that you would need to expand 'didn't work out' and 'it failed' into a more detailed problem statement!

One solution - regardless of your exact problem - is to build the testplan manually, this is often actually the easiest way to work with JMeter. You can use a tool like fiddler or charles to examine the traffic and create the requests directly based on what you see. You can also use browser dev tools to do this. You might instinctively think this is going to be difficult but it's not and the added bonus is that the process gives you a solid understanding of how whatever it is you are testing actually works - which is always nice to have.

Are you sure that you have included recording controller to your Jmeter thread group?

I think you are missing with you configuration for "recording controller" or "HTTP Request Sampler"

Some more information about your "didn't work" situation will be much more helpful.

I'll suggest that you should also have a look at the Jmeter Log file(jmeter.log) created in "Bin" folder to understand the root cause of of the issue.

 

 


TAG:

 

评分:0

我来说两句

日历

« 2024-04-20  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 33263
  • 日志数: 73
  • 建立时间: 2013-08-01
  • 更新时间: 2014-02-17

RSS订阅

Open Toolbar