Follow

Chrome Extension - Record

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.

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.
  • 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.

Settings:

  • 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.

Advanced Options:

  • Record Only Top Level Requests - This option sets the treatment of embedded objects on the page - such as images, CSS and Javascript files. If this button is checked: When the script is recorded it WILL NOT include requests for referenced objects. When the script is executed it WILL parse the HTML file and send requests for all referenced objects. If this button is not checked: When the script is recorded it WILL include requests for referenced objects. When the script is executed it WILL NOT parse the HTML file and send requests for all referenced objects.By default this option is checked.
  • 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 Cookies - This option enables you to record cookies that are used as part of the recorded traffic. The value of the recorded cookies will be used as the default value for the cookie manager that will be added to the script. This option is unchecked by default.
  • Edit Settings Before Running - 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

  1. Once installed, click the BlazeMeter icon on your chrome browser.
  2. 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
  3. Give your test a name.
  4. Include the data for the filter pattern.
  5. Check and edit the advance options as per your requirements.
  6. Click the 'Start' button.
  7. Browse through your application for the business flow that needs to be load tested.
  8. Use the 'Pause' button to pause in between recordings or, once you've finished recording, click the 'Stop' button.
  9. Click the 'Edit' button to edit the recording before uploading it. A new window will open with recorded steps.
  10. 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.
  11. Click the 'Export' button in the Chrome plugin to directly export the recording to a JMeter format.
  12. Click the 'Play' button in the Chrome plugin to directly run the recording in the cloud.

BlazeMeter Script Editor

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.

 
Want to learn more? Read our blog post, 6 Easy Steps to Testing Your Chrome Extension With Selenium.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.