使用JMeter的性能测试 [英] Performance testing using JMeter

查看:156
本文介绍了使用JMeter的性能测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写在JMeter的测试为我们的web应用程序,但有一个页面,该页面加载,然后做一个Ajax调用使用ExtJS的库加载额外的一块,我需要的时候那块负荷就知道了。我应该如何去这样做?可以JMeter的支持ExtJS的图书馆?还有什么我需要知道什么?

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?

搜索互联网,我发现了一些Ajax和JMeter的资源和一些ExtJS的和JMeter的来源,但我还没有找到这三个在一个地方。

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.

在此先感谢!

推荐答案

JMeter的HTTP请求工作在HTTP协议级别。它<一个href="http://wiki.apache.org/jmeter/JMeterFAQ#Does_JMeter_process_dynamic_pages_.28e.g._Javascript_and_applets.29"相对=nofollow>一无所知你的JS和Ajax。然而,它可以发送任何HTTP请求,包括AJAX之一。

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.

所以,你应该寻找什么要求发送的浏览器,当你做一些事情,涉及的Ext JS和创造的JMeter这样的请求。要做到这一点,您可以使用 HTTP代理服务器或看萤火虫或类似的事情您的浏览器。

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.

注意:其实JMeter的支持JavaScript的执行通过BSF支持(如看在的 BSF取样)。然而,它会使你的测试慢,所以我认为这将是最好不要使用它

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

这篇关于使用JMeter的性能测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆