Friday, November 25, 2011

Downloading & Installing JMeter on Windows

Now finally we will learn from where we should download JMeter and how to install it on your local Windows Machine.
But before that, we should know what are the basic requirements for installing JMeter and to run it on your local windows machine.


JMeter Requirements 

JMeter requires your computing environment meets some minimum requirements.

Java Version

• JMeter requires a fully compliant JVM 1.4 or higher.

• Version 2.2 and later no longer support Java 1.3.

• It is recommended to use JVM 1.5 to conduct HTTPS test with JMeter.

Operating System

• JMeter is a 100% Java application and should run correctly on any system that
has a compliant Java implementation.

• JMeter has been tested and works under:

• Unix (Solaris, Linux, Fedora etc)

• Windows (98, NT, XP, etc)

• OpenVMS Alpha 7.3+


Downloading and Installing JMeter

Jmeter is a Java application, so a JRE or SDK first needs to be installed with a JAVA_HOME environment variable.
Jmeter can be downloaded in the below link:


• Download Jmeter, and install by unzipping the .zip or .tgz file in any directory.
• Go to jakarta-jmeter Directory (Directory in which the .zip of .tgz file is unzipped)
• Type ./bin/jmeter on command prompt(for Unix) or Run bin/jmeter.bat (for Windows)
• JMeter is ready to test application.

When you run jmeter.bat file in bin directory of  jakarta-jmeter Directory, you will see the following JMeter Screen.

The user interface has two panes. The left pane displays the elements used in our testing. Initially, there are the Root and two sub-elements, Test Plan and WorkBench.
In this article we're only concerned with Test Plans. Add an element to a node by right-clicking it and selecting Add. To remove an element, select the element by clicking on it, then right-click on the element and choose the Remove option.

Test Plan: A test plan describes a series of steps JMeter will execute when run. A complete test plan will consist of one or more Thread Groups, logic conrollers, sample generating controllers, listeners, timers, assertions, and configuration elements.

WorkBench: Workbench is place where we store test elements which are saved and used in later stages. It has two elements which are HTTP proxy server and HTTP mirror server. Http proxy server is used for recording purpose.
To use it right click on workbench  then select Add --> Non-Test Elements --> HTTP Proxy Server.

This is how we install and run JMeter in windows.
I think its quite easy to download and install JMeter and even more if you get such stuffs which does your work more simpler.


47 comments:

  1. nice article..worth reading..nice guide for beginners

    ReplyDelete
  2. Thanks a lot for your valuable response. I will definitely visit your blog. Your comments are always welcome & valuable.

    ReplyDelete
  3. Hi Mahesh,
    i have installed Jmeter on windows8 system..and when i try to record the authenticated application, then its simply show blank screen instead of login pop-up....i dont know why, this is happenening in IE.
    In IE LAN settings, i have used '127.0.0.1' as address instead 'localhost' and am running on 8080

    Please suggest, how to get out from this problem...

    ReplyDelete
  4. I had double click the jmeter.bat in the apache jemeter, the command prompt opens and the message "Press any key to continue" appears but if I enter any key means the command prompt was closed and nothing happens

    ReplyDelete
    Replies
    1. i had the same problem .. when i try to open the jmeter.bat file

      Delete
    2. After double clicking jmeter.bat file, Does the command prompt show just "Press any key to continue" or is there anything else listed??

      Delete
    3. try opening 'ApacheJMeter.jar' file by double clicking on it.

      Delete
    4. Please check environment variables are set properly and than try with .bat file.

      Delete
    5. Are u running Jmeter on Windows 7 64 bit or 32 bit??

      Delete
  5. great blog for the first time users

    ReplyDelete
    Replies
    1. Thanks Tani for your valuable feedback.
      Also for more tools exposure please visit: http://sikuliscript.blogspot.in/ which is GUI automation tool.

      Delete
  6. good info it helped

    ReplyDelete
    Replies
    1. Thanks for your valuable feedback buddy.
      Also if you are interested in more tools exposure please visit: http://sikuliscript.blogspot.in/ which is GUI automation tool. The best part of it is, it can be integrated in your selenium scripts. That's Cool!!
      It's here - http://sikuliscript.blogspot.in/

      Delete
  7. very informative blog but my ques is...can't jmeter work on window7????

    ReplyDelete
    Replies
    1. Yes Ofcourse!!
      It works on Windows 7 and all the examples are on Windows 7.
      Thanks for your response.

      Delete
  8. Hello guys please suggest me how can i install jmeter 2.11 in windows 7 , 32 bit, i have already download it and open bin folder but bot show any install files

    ReplyDelete
  9. Thank you. Really Nice

    ReplyDelete
  10. Can Jmeter used for client -server architecture(windows application)?

    ReplyDelete
  11. Thanks - helped a bunch :)

    ReplyDelete
  12. hi how to show an external server for testing via jmeter ( windows 7)

    ReplyDelete
  13. Hello,
    I need run Jmeter on windows 8. Is a problem? Is totaly complatible 100%?

    thx

    ReplyDelete
  14. This article is very fruitful. Thanx for sharing.To read more about How to setup the environment for JMeter

    ReplyDelete
  15. Hi.

    I have installed Apache JMeter 2.13 on my system(OS-Windows 7).When trying to launch JMeter by clicking on jmter.bat file it displaying error
    "Error: Unable to access jarfile D:\apache-jmeter-2.13ApacheJMeter.jar
    errorlevel=1"

    Can someone help me out on this?

    ReplyDelete
  16. It was a great help!

    ReplyDelete
  17. I have downloaded Apache Jmeter version 3.0 from Apache site. Could you help me out where to find jmeter.bat file?

    ReplyDelete
  18. Helpful guidelines
    Thank you !!

    ReplyDelete