This short tutorial attempts to explain the exact steps for JMeter’s proxy. For those new to Jmeter, one easy way to create a test plan is to use the Proxy. What the proxy does is it records the requests sent to the server. Jmeter’s proxy supports recording HTTP and HTTPS. Since HTTPS is secure, there are different ways to record the secured traffic . This tutorial will help with steps for recording HTTP traffic .
Basic Proxy Instructions
Note: make sure the include and exclude patterns are correct. Below are some common patterns for images and types of pages.
.* – all
.*.png – png images
.*.gif – gif images
.*.jpg – jpeg images
.*.php
.*.jsp
.*.html
.*.htm
.*.js
As a general tip, it is a good idea to set the homepage for your browser to a blank page. This way, it reduces the number of unwanted pages Jmeter records during the session. It is a good idea to try the proxy with different sites and get comfortable with different filtering patterns.
20.From the browser tool bar, click “tools -> internet options”. This should bring up the options.
21.Select the “connection” tab
22.Click “lan settings” button near the bottom.
23.On the connections tab, check “Use a proxy server for your LAN”. The address and port fields should be enabled now.
24.Address – enter “Localhost” or the IP address of your system 25.Port – enter “8080”.
26.Click “ok” button
27.Click “ok” button again. This should return you to the browser
28.In the “Address” bar at the top, enter “http://jakarta.apache.org/jmeter/index.html” and hit the “enter” key.
29.Click on a few links on Jmeter’s page.
30.Close internet explorer and bring up the Jmeter window.
Reviewing the Test Plan
Expand the thread group and there should be several samplers. At this point, the test plan can be saved as is. If you forget to add default http request settings, you will have to manually delete the servername, and port. In this sample, there aren’t any default request parameters. If a particular request parameter is required by all pages, the request defaults is where one would add the entries.
Running the Test
At this point, we are ready to run our test plan and see what happens. Save the test plan. When you’re ready to run the test, there’s two ways:
Before you start the test, select “aggregate report”. As the test runs, the statistics will change until the test is done. At the end of the test, the aggregate report should look like this.
While the test is running, in the upper right-hand corner, there should be a green square. When the test is done, the box should be grey.