The Apache JMeter is a pure Java application developed by Apache foundation to test and measure the performance of web application and a variety of other test functions. It can be used to test the performance of static and dynamic resources, web dynamic applications using tests like performance test, functional test and load simulate test for ascertaining web performance.

Advantages of using JMeter
Since Apache JMeter is an open source application, it does not require any license to use it. The JMeter can function on various protocols like HTTP, JDBC, LDAP, SOAP, JMS, and FTP and supports the testing of web application and database server performance evaluation. One of the most important highlights of the Apache JMeter is the record and playback feature of the user activity on the browser. This software can also be integrated with various automation tools like Selenium and Bean shell.

How to Install
The installation of Jmeter is pretty straightforward. It does not take away a large chunk of your time or system memory. All you need is to run a .bat file on Windows or a .sh file on Linux system which is in the JMeter package.

You can download the JMeter package from this link. The latest JMeter version will only work if you have Java 8 or higher version installed. Once you have downloaded the files from the above link. Unzip those files. Open the folder apache- jmeter-4.0 –>bin → run Jmeter.bat

 

Run Jmeter.bat file and then the Apache JMeter will launch.

Some Basics of JMeter

Test Plan

In test plan, you can add the elements required for the test. To add a new test, click on test Plan on the right side to create.

Workbench

Workbench option can be seen only on the previous version of Jmeter. Workbench has been removed on the version 4. It simply provides a space to temporarily to store elements. The workbench contents will not be saved on the Jmeter. It only saves the test branch.

HTTP(S) proxy server testing using Apache JMeter Version 4

1) Run jmeter.bat file
2) Once the JMeter is launched, select test plan on the tree.
3) Right click on the Test plan and add a new thread group. Test Plan —> Add—>Thread(users)—>Thread Group.

4) Now select the Thread Group, Right click —> Add → Config Element —> HTTP request defaults.

5) Now right click on the Thread Group and add a recording controller like below image

Thread Group → Add–. Logic controller → Recording controller

6) Now right click on Test Plan –>Add–>Non-Test elements–>HTTP(s) Test script recorder.

7) On HTTP(S) Test Script Recorder, click on the add button –>Request filtering→ under the content type filter include the entry ; enter “.*\.php or *\.html

8) Now.Right click on HTTP(S) Test Script Recorder”and add a listener. Add -> Listener -> View Results Tree.

9) Now return to HTTP(S) Test Script Recorder, and click the “Start” button at the bottom. This will start the JMeter proxy server which is used to intercept the browser requests. A file called ApacheJMeterTemporaryRootCA.crt will be generated in jmeter/bin folder.

Thanks for dropping by. Ready for the next blog?

Microsoft Buys GitHub For $7.5 billion

Rahul
Author : Rahul
Written on : 11 Jun, 2018

Who we are ?

Founded in 2010, we are a team of a sysadmins with super awesome server management skills who likes to give super quality support at super affordable price.

Services