JMeter Browser Recording


Here's the transcription for quick reference...

In the previous screen cast, we learned how to build a JMeter test find. Now, let's take a look at using the JMeter Proxy to record our actions on a browser to build a new test plan.

Okay, let's go ahead and start recording. First launch Jmeter and here we have test plan again. I'm going to test the new site called It's an online retail store. Let's give it a name, Softwarebugs basic checkout test and we'll add the usual element thread group and we are going to add the request to defaults. Back here, add, config element, HTTP request defaults and the domain name is and under development, port [inaudible 00:00:55], is port 3000.

Now we are going to add a new element called the recording controller. It's a place holder for the proxy server to record samples to. Has no effect during a test run and by default all recorded samples are saved under here. Okay. To add a controller, we are going to right click on thread group, we are going to add logic controller, and here we have the recording controller.

Let's go over to the work bench. This is a temporary place to store your test elements when not in use. One thing to know about with the work bench is that if you save your test find, items that you've place in here are not saved. However, you can save this independently of it by right clicking on it and save.

Okay, let's go ahead and add the proxy server. First, I'm going maximize the screen, right click on work bench, select non-test elements, and there is a proxy server. Going to find the port for the proxy server as 8181 for my laptop. You'll see here the target controller is already set to use the recording controller as with one here.

Now, I want the proxy server to listen to HTTP request, that include HTML in it or correction the .html file. I'm going to click add, and with the right expression I want to listen for everything that ends in .html. The next part is I can also tell [inaudible 00:02:23] to not listen to specific file request. It only provides address that excludes here. Java Script, CSS, flash files will not be listened to.

All right. See if it works when I go ahead and add a listener. There we go and view results in a tree. Now go back to the proxy server. I'm going to go ahead and start it.

Now, let's go ahead and configure our browser to go to the proxy server.

Okay, let's go ahead and open up our browser. Select Firefox, go to preferences, and I'm going to change the network to listen to the JMeter proxy server. It's local host and port 8181. Okay, let's go ahead and visit our It's port 3000, under development and there is the website.

Now, to list as record information, as the browser went through JMeter to the actual website, but notice as I mentioned earlier that everything that we record from the proxy when you place under the recording controller and currently there are no samplers. When we look at the results tree, we'll notice that in the request, there are no .html files. We have to go back to our proxy server and make adjustments to your URL patterns.

Now that we've added all of the URL patterns we are interested. Let's go ahead and record our script again. Let's reload the first page. Notice now in JMeter, the recording controller has actually recorded a sampler of the home page and we can verify the listener. All right, let's go ahead and click shop. Select a product. Add it to the cart. Continue shopping. Add another product and add that to the cart. Now that we've finished recording a basic script, let's go ahead and stop the proxy server.

That concludes using the JMeter proxy to record [00:04:54] script from the browser. Next time we'll continue developing the script as a website continues to be developed. Until then, have fun load testing your sites!


Billing Information

Credit Card Information