BlazeMeter’s Google Chrome Extension allows you to test your application without prior scripting knowledge.
The extension offers two modes: Record and FollowMe. In this article, we will focus on the FollowMe mode. To read about the record mode, click here.
This mode eliminates the need for scripting entirely. Simply browse your site and a swarm of virtual users will follow and mimic your actions.
Note that most of the buttons are grayed out when you first open the extension.
This is because we first must specify a domain(s) to follow before we can get started, so in order to do so, we need to venture into the Advanced Options.
The above-pictured settings include:
- Concurrency - Set the number of concurrent (simultaneous) users you want performing the actions you’re recording. The number you set for this option is the maximum concurrent users you’ll be able to run during the test. (The number of concurrent users you can use depends on the terms of your BlazeMeter plan.)
- Load Origin - Where do you want your users to come from? Our load servers are set around the world so that you can simulate the most relevant traffic according to your needs.
- User Agent - Select your users’ agent, by which we mean what device or browser your users are using.
- Domains to Follow - A domain(s) must be specified in this field in order for the main buttons to become available for use. This will ensure that only activity directed to the specified domain(s) will be included in the recording. Note: do not include http(s) when entering a domain in this field.
- Disable Browser Cache - Checking this box will disable the browser’s cache during the recording. This option is especially important since cached objects are not recorded.
- Record Cookies - This option enables you to record cookies used as part of the recorded traffic. The value of the recorded cookies will be used as the default value for the cookie manager which will be added to the script.
Once a domain to follow has been specified, the run test button is now enabled.
Click it, and your swarm of virtual users will immediately begin following you (but only for the domain(s) you specified). Meanwhile, a new tab will automatically open in your Chrome browser, showing that the cloud session is about to start:
You can now switch to another tab and begin browsing your site. Meanwhile, note that more buttons have been enabled in the extension:
Explanations of these buttons follow:
- Stop recording - Stop the test, indicating you have finished recording.
- Pause the recording - Use this any time you need to pause the test. Click the run test button again once you are ready to resume.
- Click to view the report - Open the BlazeMeter test report in a new tab.
- Reset all options - This button resets everything, discarding any recording and settings and reverting the menu to its default state when you first opened it. It will only become available after you’ve stopped recording.
The BlazeMeter icon in your Chrome menu will blink when in standby mode, then will turn red when recording. As long as FollowMe is recording, you’ll see the test in BlazeMeter running, and after every new action you perform, you will see more samplers appear to reflect it under the Request Statistics tab in the test report:
“Samples” in this report refers to your swarm of users (the number of which was determined earlier when you configured the Concurrency advanced option) following you each step of the way.
Once you stop recording, you’ll see the BlazeMeter test stop accordingly. You may also notice the JMX button has been enabled, which to this point had been grayed out.
With the test recording finished, you can click this button to export the recording as a JMeter JMX file, which you can then edit or run in your local JMeter environment.
Finally, the BlazeMeter test that was automatically created during your recording is now available for reuse -- You can rerun the test anytime from BlazeMeter, and your swarm of users will behave exactly as they did the first time.