Performance testing using JMeter

爷,独闯天下 提交于 2019-12-11 12:55:45

问题


I am writing a test in JMeter for our web app, but there is one page that loads and then makes an Ajax call using extjs libraries to load an additional piece, and I need to know when that piece loads. How should I go about doing this? can JMeter support extjs libraries? What else do I need to know?

Searching the internet I've found some ajax and JMeter resources and a few extjs and JMeter sources, but I have yet to find all three in one place.

Thanks in advance!


回答1:


JMeter's HTTP request works at HTTP protocol level. It knows nothing about your JS and ajax. However, it can send any http requests, including ajax one.

So you should look what requests sends browser when you do something involving Ext JS and create such requests in JMeter. To do it you can use HTTP Proxy Server or look in Firebug or similar thing in your browser.

Note: actually JMeter supports Javascript execution through BSF support (look e.g. at BSF Sampler). However, it will make your test slower so I think it will be better not to use it



来源:https://stackoverflow.com/questions/13366171/performance-testing-using-jmeter

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