Introducing the Holy Grail of Cloud Testing-The Drupal Module!
Lil' bit o' BlazeMeter History
Blazemeter is growing fast. Not too long ago, we launched our on-demand, self-service load testing JMeter cloud.
Why JMeter instead of purchasing some other proprietary tool?
The reason is obvious – JMeter is an open source tool and a damn good one. Users tune it to meet their own testing needs and then run developed scripts in the cloud without thinking about a huge testing lab. Recently, we unveiled BlazeMeter's free plugin for JMeter, which allows testing on local machines and analyzing results in the cloud.
We've taken the idea of simplifying the life of the developer a step further and now you don't have to be a JMeter OR a Drupal expert in order to use JMeter to load test your Drupal websites.
What does the BlazeMeter Drupal module mean to a Drupal user?
For a user to execute a load test properly, one must be able to write a test script, have numerous, willing servers (no, not the kind that bring your food), at their disposal and be able to configure it all into an efficient testing environment. Oh, and this fantastical environment should be able to figure out what in the dang nabbit is wrong with my website based on the results of the load test AND how to fix it.
As if mastering Drupal is not tough enough? Do I now need to be a performance expert?
Nope! The BlazeMeter Drupal module is the smooth, 60 year old scotch needed to assuage that headache. BlazeMeter's Drupal module, having an insight into your Drupal installation, generates a JMeter and a Selenium script for you automatically. It then provisions and configures a cluster of up to 60 dedicated servers ready to run on demand. All this is done automatically, in minutes, saving you days of scripting, provisioning, configuring and deciphering.
What else does BlazeMeter's Drupal module do?
Glad you asked. It creates unique new accounts in your Drupal database especially for your load test in order to generate unique virtual test users. It builds two user profiles: anonymous and authenticated. It takes care of the login process for authenticated users. It builds the script scenario according to best practices and 'loads' (get it?) of experience. Once you run the test and all these servers start hitting your website, you'll see a test report that clarifies what once seemed like a cluster of indecipherable data. And guess what? You can run these tests time and time again - just by pressing start. Kinda takes the load off, ay?
The BlazeMeter Drupal Module in Action
Let's say that you are an administrator of a Drupal based site, and you want to execute load tests against it on daily basis. All you need to do is to download Blazemeter's new Drupal module and install it onto your site. Then you’ll be able to execute load tests against your site right from the Drupal administration section.
Keep on reading or take a shortcut....scroll below and watch How to Install and Use BlazeMeter's Module for Drupal.
Installing & Enabling The Drupal Module
The Drupal module has been developed for use with Drupal 6.x and Drupal 7.x (and 8 as soon as it's released). If you don't already have Drupal installed, get to it...we'll wait.
So now that you have either Drupal 6.x or 7.x installed we’ll review how to install BlazeMeter's new module for Drupal users.
- Unzip blazemeter.6.x.zip to DRUPAL_DIRECTORY/sites/all/modules.
- Via left-sidebar go to “Administer”->“Site building”->”Modules”
- Scroll down to the end of page. There you will see the “Other” section. Switch on BlazeMeter check-box. Save changes.
- Unzip blazemeter.7.x.zip to DRUPAL_DIRECTORY/sites/all/modules.
- Via top-navigation bar go to “Modules”
- Scroll down to the end of page. There you will see the “Other” section. Switch on the BlazeMeter checkbox. Save changes.
Now open your php.ini file and verify that the following strings in the “Dynamic Extensions” section are not commented. If they are commented then uncomment them.
- extension = php_openssl.dll
- extension = php_curl.dll
Otherwise, you may receive the following error message:
That’s all about installing Blazemeter module, and now it’s time to see how it works.
Using BlazeMeter's new Drupal module
For Drupal 7.14 go to top-navigation bar and switch to “Configuration”.
In the bottom of page switch to “Blazemeter” section.
Drupal 6.26 go to the following menu item.
Our demo is on Drupal 7.14 to show and explain controls. (The module for Drupal 6.26 is the similar to Drupal 7.14).
The Blazemeter module for Drupal is divided into three sections.
This section consists of slider for setting a number of anonymous visitors for test. Below this slider you can see fields for entering page titles. You can type path to page in different variants: node_id or page title. You can only type node_id of existing page on the site. Otherwise, during saving form, you will receive the following error message:
You can add more than two pages by pressing “Add page” button.
This section consists of slider for setting a number of authenticated visitors for test. Below this slider you can see fields for entering page titles. You can type path to page in different variants: node_id or page title. You can only type node_id of existing page on the site. Otherwise, during saving form, you will receive the following error message:
You can add more than two pages by pressing “Add page” button.
The main difference of this section from Anonymous pages is that Blazemeter module will create a number of unique authenticated users with unique credentials in Drupal. These users will be used for the load test.
This section consists of several fields, that should be filled with necessary information. First you should choose Load Scenario – Load, Stress, Extreme Stress, theirs descriptions are provided in pop-up windows. After that you need to specify public domain name of your website. Please note that this doesn’t need to be a real domain. This is very important. It needs to be the domain name that your Drupal is expecting to see and is configured to use. Then specify public IP address of your site. Notice, that only IPv4 addresses are supported.
Specify the UserKey. You should obtain it from your Blazemeter profile. Test_ID will be defined by Blazemeter, you cannot change it. And the last field you will need to fillin is the Test Name. This name will appear in Tests & Reports.
Now you are ready to start testing OR click play to start watching the how-to vid clip.
Have you signed up for the latest BlazeMeter Webinar?
Topic: Using the free BlazeMeter plugin for effective JMeter performance reporting
Tuesday, July 31, 2012
9am-10am PST/12pm-1pm EST
Sign up for BlazeMeter's Webinar
Get more information on BlazeMeter's Webinar and other events.