BlazeMeter's Chrome extension let you test your application without prior scripting knowledge.
The extension offers two modes: Record and FollowMe
In this article, we will focus only on the Record Mode.
This mode creates a JMeter script and automatically uploads it to BlazeMeter, where you can execute it with a single click, or export it as a JMeter .jmx file.
Here are the different fields/options available - and an explanation of each:
- Enter the Name of Test - Insert your test name here
- Start - Click this button to start recording HTTP(S) for the test
- Stop - Click this button to stop recording the test
- Pause - Pause the test recording
- Edit - Edit the recording before uploading it (See 'BlazeMeter Script Editor' below)
- Export - Export the recording to a JMeter file format
- Reset - Click this to reset all settings
- Play - Click this button to adjust the test properties and run from the cloud
- Concurrency - Set the number of concurrent users you'd like to be followed by. The number of concurrent users depends on the terms of your BlazeMeter plan. The number you set is the maximum number you'll be able to run during the test.
- Load Origin - Where do you want your followers to come from? Our load servers are set around the world so you can simulate the most relevant traffic according to your needs.
- User Agent - Select your followers’ user agent. You can choose any mobile device or web browser.
- Include Filter Pattern - By default, we don't filter the requests included in the recording. However, by modifying the regular expressions in this field, you can change which requests your browser will include. Only requests which match the patterns will be included (i.e. you can ensure that you only include requests to one domain.) Check out Google's guide to creating these filter patterns. This field is very important as you probably don't want to record your Gmail, Facebook or even BlazeMeter traffic. If you forgot to set this field, DON'T WORRY. You'll be presented with the option to select which domains to include and to exclude before the test actually runs.
- Disable Browser Cache - Setting this option will disable the browser cache during the recording. This option is very important as cached objects are not recorded.This option is checked by default.
- Record AJAX Requests -
- Update Settings Before Running Test - Setting this option will enable you to change the test settings before running. Through the BlazeMeter interface, you can control properties like ramp up time, test duration, load distribution between engines and much more. This option is checked by default.
Record a Test
- Once installed, click the BlazeMeter icon on your chrome browser.
- If your browser isn’t logged into your BlazeMeter account, click Login. If you don’t have an account, simply register for a free BlazeMeter account
- Give your test a name.
- Include the data for the filter pattern.
- Check and edit the advanced options as per your requirements.
- Click the 'Start' button.
- Browse through your application for the business flow that needs to be load tested.
- Use the 'Pause' button to pause in between recordings or, once you've finished recording, click the 'Stop' button.
- Click the 'Edit' button to edit the recording before uploading it. A new window will open with recorded steps.
- In the editor window, you'll have the option to export to a JSON or JMX file and to click the 'Play' button to execute it in the cloud.
- Click the 'Export' button in the Chrome plugin to directly export the recording to a JMeter format.
- Click the 'Play' button in the Chrome plugin to directly run the recording in the cloud.
BlazeMeter Script Editor
In the Chrome Extension's recording panel, you can click on the 'Edit' button to edit the test before it is exported.
Also, this view enables you to export your recording to either JMX format, JSON or YAML (to run using Taurus)
The Domain Selector
DON'T WORRY if you forget to set the 'include field'. You'll be presented with the option to select which domains to include and to exclude before the test actually runs.