JMeter may be used to test performance, to simulate a heavy load on a server, network or object to test its strength or to analyze overall performance under different load types.

First download and install all necessary packages:

1. Java
– Setup the environment variables

2. Jmeter

– Download Jmeter from following website, select the latest zip file:
Jmeter download

After download extract the downloaded zip file to folder C:\jmeter (or any favorite folder)
Extract Jmeter

Jmeter configuration tip:

By default, JMeter do not save threads count in JTL files. If you plan to work with JMeter JTL files, you should enable it by uncommenting in JMETER_INSTALL_DIR/bin/ the line:
and set it to true:

3. Download Badboy software from site:

Click on Download, fill the form and Click on Continue.

Badboy download page

Download the latest version

Badboy download

Install Badboy software, execute the downloaded .exe file.

4. Download Jmeter plug-ins from following website:

Jmeter plugin download

Extract the downloaded file and just copy the JAR files into JMeter’s lib/ext directory (C:\jmeter\lib\ext)

Creating and Running the application:

With Badboy software you can record your script. Start the installed software.

In the address bar enter the URL of a website or application you want to test.

To start recording just press the ENTER key.

To stop recording click on Record On /Off button.

Badboy script

After the script is recorded you have to import this script into Jmeter.

Click on File -> Export to Jmeter.

Select location, enter your Script Name and click on Save. The file will be saved with .JMX extension.

Export to Jmeter

Export to Jmeter

After the script is saved run JMeter:

Go to “bin” folder (C:\jmeter\bin) and execute Jmeter file

Import the recorded script into Jmeter:

– Click on File – Open. Navigate to the location where you saved the recorded file and click on it and click on Open.



After the script is loaded you can change the Thread group properties:

– Click on Thread group and the properties will be displayed in the right side window. Here you can change/define the Number of treads, Ramp-Up period and loop. The default value is 1.

The next step is Selecting the Result formats. Right click on Thread group. On padding menu click on Add – Sampler. From this list you can select the most appropriate Sampler(s) according to the results that you need.

Result Format

After you select the Result format you can now Start the Thread group:

Click on Run – Start(or just click on green play button). This will start the loaded script.

    2 Responses to “Getting started with JMeter”

  1. Dzmitry Kashlach says:

    In the latest versions of Jmeter we can record test-scenarios without BadBoy, just using HTTP Proxy server.
    Here is blog post about how to record Jmeter test plan.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>