register
other register

Friday, May 21, 2010

JMeter HTTP Proxy Server Settings

The procedures below shows how to set up a HTTP proxy server using JMeter together with Firefox.

At WorkBench, add a HTTP Proxy Server.



In the newly added HTTP Proxy Server control panel.

  • Add "text/html" in the Content-type filter include field, so that all the html format page request will be filtered in.
  • In the URL Patterns to Exclude, add .*\.jpg  .*\.js  .*\.png  .*\.gif  .*\.css

The url request containing these extension will not shown on the JMeter left panel, as we are not interested in requesting these files for our testing purpose.

  • Change "port" to 8090, if your application is running under 8080
  • Click Start to start the proxy server.



Launch Firefox, in the Tools -> Options -> Network -> Settings, set the Manual proxy configuration to:
HTTP Proxy: localhost
Port: 8090 (this should be the same as the setting in the JMeter HTTP Proxy Server setting)


Now type any web address in Firefox, you will see only those url (e.g. /myApp/myController/index) request interested to us will come through in the left panel of the JMeter.

If there are other url  request which are not interested to us, then simply add their url patterns to the URL Patterns to Exclude section in the HTTP Proxy Server settings in the JMeter.

p.s. remember to put port 80 in the port field in HttpRequest Client

There are video resources which give introductions on JMeter:

http://vimeo.com/10164982
http://vimeo.com/3453772

No comments: