In this blog we will learn about “JMeter Script Recording Configuration”
Introduction
HTTP(S) Test Script Recorder can be used to record all the requests which your web or mobile application is making to server.JMeter is one of the most preferred tools for software testing approaches. The Test Script Recorder in JMeter is designed to record such scenarios.
A Proxy is a component which inserts between you and the remote server.
Let’s start the steps of JMeter Script Recording Configuration.
Create a test Plan
Add a Thread Group
- Right-click on Test Plan
- Mouse over Add >
- Mouse over Threads (Users) >
- Click on Thread Group
Set the Thread Group properties with the following values:
- Number of Threads (users): Set this to 100.
- Ramp-Up Period (in seconds): Set this to 2.
- Loop Count: Leave this set to 1.

Add an HTTP Request Defaults
Now let’s add HTTP Request Defaults to Thread Group:
- Select Thread Group, then right-click it
- Mouse over Add >
- Mouse over Config Element >
- Click on HTTP Request Defaults
In HTTP Request Defaults, under the Web Server section, fill in the Server Name or IP field with the name or IP address of the web server you want to test.

Add a Recording Controller
Now let’s add a Recording Controller to Thread Group:
- Select Thread Group, then right-click it
- Mouse over Add >
- Mouse over Logic Controller >
- Click on Recording Controller
The Recording Controller is where recorded HTTP Request samplers will be created. The next step is to set up an HTTP(S) Test Script Recorder.

Add HTTP(S) Test Script Recorder
Now add the an HTTP(S) Test script recorder
- Select WorkBench, then right-click it
- Mouse over Add >
- Mouse over Non-Test Elements >
- Click on HTTP(S) Test Script Recorder

Configure Browser for Proxy Settings
- Steps to set proxy in Mozilla are-
- Open the Mozilla Firefox browser settings and select preferences
- In General, click on “Settings” button under sub heading “Network Proxy”.

- Click on Manual proxy configuration radio button
- Now type 127.0.0.1 in the HTTP Proxy textbox and any available port in Port textbox like 8080

Once You made changes then click on “OK” button.
Click on Start button: a dialog should show up asking to install CA Root Certificate. This certificate must be installed within the web browser to support recording HTTPS traffic.

JMeter generates a Root Certificate Authority within the <JMETER_HOME>/bin folder. You should find a file named ApacheJMeterTemporaryRootCA.crt in this folder. Let’s see how to install it in common web browsers.
Select Privacy & Security settings and scroll-down to the bottom of the page,

Click on View Certificates then click on Import,

Select the Apache JMeter TemporaryRootCA.crt located in <JMETER_HOME>/bin folder. (<JMETER_HOME> is where JMeter is installed)
And You should see the certificate within the Certificate Manager

After that browse the url in firefox browser. And then navigate the field which one you want to test. Then stop the request from jmeter.

Above you can see the request under recording controller.
Thanks for reading. I hope it will help you.
what is work bench?
why we select work bench?