JMeter Introduction - free website performance test

Introduction to JMeter

In this introduction to JMeter, we will cover the below topics:

  1. A Brief About  JMeter

  2. Interesting Facts of JMeter

  3. Capabilities of JMeter

  4. Scope of JMeter

  5. Download and Install JMeter

  6. JMeter First Look

JMeter Introduction - free website performance test

 

A Brief About JMeter

Apache JMeter is free and open source Performance testing tool written in Java. Hence, JMeter is one of the tool typically used to do free website performance test to measure the web page performance. The first version of JMeter was introduced in Dec 15, 1998 by Stefano Mazzocchi. It’s a great tool for performance testing and widely used in the market as compared to other performance testing tools.

It can be used for different types of performance test, which includes:

  • Load test
  • Stress test
  • Endurance test
  • Volume test
  • Spike test

 

Interesting Facts of JMeter

  • Open source under GPL license – JMeter built by Apache under GPL compatible license, which makes it free and open source. Without any licensing constraint you can use and tweak it. Due to this companies using JMeter for performance testing has increased the scope of job opportunities.
  • Script without coding it – You will find it interesting that JMeter scripts are platform independent. Scripts are not written in Java or any other language. Instead, scripts are created in XML format, which could easily be transported to any machine.
  • Easy to learn – There are a lot of people having a fear that JMeter is a hard tool to learn, trust me you don’t have to be a superman to learn JMeter. JMeter is actually one of the simplest tools to learn.

 

Capabilities of JMeter

JMeter has all the capabilities of performance testing tool it could create complex scripts, generating huge load or creating reports.

  • Complex scripts made easy with powerful GUI – You can create complex scripts using conditions, looping, validations, logic etc. with a wide range of controllers in JMeter. You could also write custom code within the script if required.
  • Unlimited load generation – You can generate unlimited number of virtual users. But at the same time you have to acquire enough hardware for JMeter to generate virtual users.
  • Extensive reporting metrics – JMeter gives lot of information to evaluate on the performance of the application which includes response time, errors, standard deviation, 90 percentile, throughput, response message, response code and other useful information.
  • Automate multiple protocols – JMeter supports a wide range of protocols like http/https, FTP, REST / SOAP, JDBC, LDAP, JMS, POP3, SMTP, IMAP, TCP, Shell scripts, Java objects etc.
  • Easy to develop JMeter plugins – JMeter allows to add custom features without editing anything in the code but by just creating the custom plugins

 

Scope of Jmeter

Like any other tool, there are some limitations with JMeter as well. Performance testing of below mentioned applications is not possible through JMeter

  • SAP
  • Oracle EBS
  • RDP
  • Desktop applications
  • Citrix
  • Flex

There is a company, Ubikloadpack that gives support to some additional protocols by their paid plugins like FLEX / Adobe AIR, video streaming, GWT Plugin etc.

Though JMeter gives you reporting feature but that is not very rich and interactive as compared to other paid tools, but if you use SAAS service like LoadSkull or Blazemeter you could get nice graphs and interactive reporting.

As JMeter support http and other mostly used protocols. It captures the huge market and services like LoadSkull whichmakes it easy to use by eliminating the limitations of JMeter

 

Let’s download and install JMeter

You can download JMeter directly from Apache JMeter website . Download the binaries Zip file for windows, not the source.

It’s only a few Mbs in size. Once it is downloaded, you just have to unzip it and you are good to go.

NOTE: As JMeter is written in java, you must have Java installed on your machine to run JMeter. In some cases, you may also have to add Java path into environment variables.

One’s it’s done you are good to start with JMeter. JMeter GUI is very easy to use and can easily be learned.

VSTS, New Test

How to Record the HTTP Traffic using VSTS and Internet Explorer

VSTS is an IDE that is generally used by the .Net Developers but, the ultimate edition of the VSTS got the ability to Load Test the web application.

Today, we will see How to record the HTTP traffic using VSTS and internet explorer.

Step – 1: To start with the recording the HTTP traffic from VSTS you first need to install/enable the Web Test Recorder extension in internet explorer.

IE_Add-ons

To do this open Manage Add-ons in internet explorer and enable Web Test Recorder

IE_Add-ons1

Step – 2: Once Enabled close the Manage Add-ons window and also the IE Browser.

Step – 3: Now open the VSTS Ultimate edition, it has the load testing capabilities

Step – 4: Once you get the VSTS installed you have to create a New load test but when you open it first time after installation you have to select the default environment setting, choose any option, I have chosen the ‘general Development Settings’

Step – 5: Create a New Test
New Test

Step – 6: Select ‘Web Performance Test’
Web Performance Test

Step – 7: Now, give the Project name and click create
Project Name

Step – 8: You can now record the website that you want to load test, to start recording press record button
Start Recording

 

Best of luck. :)