How to work with JMeter

Working With JMeter
In my previous blog, I have explained What is What is JMeter?? Now let’s move forward to one level up and see how to work with JMeter.

    1. How to Download JMeter?
      Download JMeter from the link given below:-

        1. Download and install either the latest JRE or JDK. JMeter is totally based on Java application so it’s necessary to have Java on the system as a prerequisite.
        2. Go to Apache JMeter and search for Binary to download, just check once that the downloaded file is always the latest version of JMeter….
        3. Extract the folder and place the folder in the desired location.
        4. Open extracted JMeter folder and search for the .bat file in your folder.C:\Users\Downloads\apache-jmeter-3.3\apache-jmeter-3.3 \bin\jmeter.bat

      jmeter window

      jmeter window

        1. The JMeter window will appear.

      jmeter window

    2. How to create a Test plan?As the JMeter window appears, one can see the hierarchy of a default test plan present in the left panel of JMeter window.

      Rename the Test plan. You can change the name of the test plan through the Name: textbox. to see the reflection of the name, just click on the workbench and go back to the new name of the test plan, and you can see the reflection as below.

      jmeter window

    3. How to create Thread Group?
      1. Thread group is a part of the test plan that needs to be added to the created test plan.
      2. The main element of the test plan is the Thread Group, which contains all the samplers, listeners and controllers.Here in JMeter, all the element nodes are added by right-clicking on the desired node.jmeter window


        1. Right-click on the Sample Test (our Test Plan) now navigate to >
        2. Add >
        3. Threads (Users) >
        4. Click on Thread Group option.
          The Thread Group, gets added to the Test Plan (Sample Test) node.
      3. We can also change the name of the Thread Group according to the project for which we are creating the Performance report.
    4. How to add Request sampler?
      1. Samplers help JMeter to send the request to the server and wait for the response. They are executed in the same manner as they are added to the hierarchy.
      2. To Add Request Sampler under Thread Group:- Steps:-
        1. Right click on thread group in the left panel and go to ADD >
        2. Config Element >
        3. HTTP Request Defaults >
          Here “HTTP Request Defaults” sampler gets added.
      3. After the “HTTP Request Defaults“ has been added.
      4. Now, under the Web Server section, add the domain name and path.
      5. Go to “Server Name or IP:” and enter the domain name.
      6. Go to “Path:” and enter backslashThe backslash describes the root pages on the server, it also decides that the pages that are sent, are the default pages of the site or not.
    5. How to add recording controller?
      1. As the test plan has been added, now add a recording controller in the thread group.
      2. Recording controller helps to record the website navigation steps easily, that can be used for load testing purpose.
      3. To add recording controller follow below steps :-
        Steps :-

        1. Right click on thread group in the left panel and go to ADD >
        2. Select Logic Controller >
        3. Click on Recording Controller >
      4. The recording controller is a placeholder where the proxy server can save all the recorded requests.
    6. How to add Listeners?
      1. Listeners are mainly added to see the result of all the recorded script in a single report.
      2. As “View result in table” is added, one can use other listeners such as an Aggregate graph, Summary report etc. whichever suits your test case.
    7. How to add HTTP(s) Test Script Recorder?
      1. All the recorded proxy server requests are placed under HTTP proxy server, which comes under Workbench and in JMeter’s new version, the HTTP Proxy server is replaced by the name HTTP(s) Test Script Recorder.Note: – The items added under workbench does not get saved, if you want to save the record, right-click on Workbench, and select the option Save Selection As….and the workbench gets saved to the desired location.
      2. In the HTTP(S) Test Script page you need to make some changes as:-
        • Change the port no. as 8080 so that we serve only single port for JMeter.
      3. If needed change “Request filtering” setting. Here we can add URL pattern which are written in regular expressions below:-
          • URL pattern to include by using (.*).
          • URL pattern to Exclude (*.gif), (*.png)

        This can be useful to include the type of request you want to include in recording (e.g. *.html, *.php, etc) and exclude the type of URL pattern request (e.g. *.jpg, *.png, *.js,*.gif etc).

        • Target Controller specifies where the recorded script will be added.
      4. Now add a listener again under HTTP (S) Test Script Recorder to see the complete recorded report.
    8. How to set proxy setting in browser ?
      1. As all the elements of the recording script are set, we just need to make minor changes in the browser.
          • Open Firefox
          • Go to Options
          • Under that advance setting
          • Select Network option
          • In network, go to connection, click on setting and change the setting as mentioned below.
          • Select “Manual proxy configuration”
          • Enter localhost in “HTTP Proxy” box.
          • Change the Port to “8080” for all types of proxy.

        Now, finally, after adding all the elements and performing all the necessary changes, we can start recording the script according to our test scenario.

      1. Have any query or need more information about JMeter? Contact us today at

+1 -484-876-1867

      1. or

send us a message

Related Posts

Leave a comment