Monday, November 19, 2012

Overview Jmeter


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.

You can executed some steps such as:
Scenario:
1.       Run jmeter.bat
2.       Create Threat group
We need establish Thread Properties(example):
Numer of Threads(users): 100
Ram-up Period (in seconds): 1
Loop Count: 1





3.       Create Summary Report


4.       Setup HTTP Proxy server->Click [Start] button->Open website in Firefox->Finish click [Stop] button

5.       Run scenario


Good Luck!!!



1 comment:

  1. Change proxy before running
    Firefox->Tool->OPtions->Click [network]tab->settings->manual proxy configuaration

    ReplyDelete