Monday, December 31, 2012

Hands-on with Jmeter Part 1

The Apache Jmeter is a well known Performance Testing Tool. Here is described how to install and configure the toll on the Windows environment.

Apache Jmeter Prerequisite 
First all all, we need to check the Java version installed on the windows. The Java version should be at least 1.5 or later. If the Java is not installed then install it by downloading from the www.java.com For running the Apache Jmeter uninterruptedly, we also need to set the Java Home Path and Java Class Path in the Windows Environment Variable.

To set the Java Home Path
  • Copy the JDK Base directory path installed on the Windows, the default JDK Base directory path is C:\Program Files\Java\jdk1.7.0_10 
  • Right click on My Computer
  • Click on the Properties
  • Click on the Advanced System Settings
  • Click on the Environment Variables button.
  • Click on the New button under the User Variables For User section.
  • Enter JAVA_HOME in the Variable Name field.
  • Paste the copied JDK Base directory path in the Variable Value field and click on the OK button.


To Set the Java Class Path
  • Copy the same JDK path installed on the windows with Bin directory, the default path in windows is C:\Program Files\Java\jdk1.7.0_10\bin 
  • Right click on My Computer
  • Click on the Properties
  • Click on the Advanced System Settings
  • Click on the Environment Variables button.
  • Select the Path Variable under the System Variables section.
  • Click on the Edit button in order to include the JDK Bin directory path.
  • Move to the end for the Variable Value field and put a semi-colon.
  • Now paste copied JDK Bin directory path and click on the OK button. 

 Now, we're all set to run the Apache Jmeter.
  • Extract the .zip file and navigate to the Bin directory of the Apache Jmeter.
  • Double click on the jmeter.bat file and the Apche Jmeter will be opened up.

All the best and start using the Jmeter!!