-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

JMeter Cookbook
By :

Recording test scripts is one you will be doing quite often. There are many alternatives to how we can record test scripts in JMeter.
In this recipe, we show you how to record test scripts with just a browser add-on installed on the Google Chrome browser. Perform the following steps:
You can download it from https://www.google.com/intl/en/chrome/browser/.
blazemeter
on the web store.Once installed, a new BlazeMeter icon will be placed in the top-right corner of your browser toolbar.
Exporting your recorded test plan requires a free account with BlazeMeter for you to be logged in.
Installing the BlazeMeter Chrome extension
The BlazeMeter Chrome extension should look similar to what is shown in the preceding screenshot. Using this extension, additional properties can be configured in the Advance section of the extension. The following is a screenshot of the extension:
Using the BlazeMeter Chrome extension
The browser extension captures the user interaction with the website in the JSON format as long as the recorder is on.
When the recording is stopped, no further user actions are captured. After the export button has been clicked on the JSON format is then converted to the XML format, which JMeter understands and can work with. The downloaded recorded script can then be edited and run within JMeter like any other script.
The extension allows you to selectively capture requests by providing you with the ability to pause recording in between the user interactions. It also allows you to filter out unwanted traffic you might not be interested in capturing in your test scripts through the include filter pattern text area.
Furthermore, the Advance menu option allows you to gain more control over which requests are captured in your script, allowing you to capture only the top-level requests (default), disable browser cache (default), disable recording cookies (default), and edit the setting before proceeding to run.
Finally, as BlazeMeter (one of the many providers offering distributed testing in the Cloud) provides this extension, it offers additional features including the following:
Change the font size
Change margin width
Change background colour