JMeter Tutorial — Script Recording

CyberShadow

--

To carry out Load/Performance testing on any web-app, first, the tester has to understand the traffic communication of the web-app and the server. For this, we use script recorder in JMeter to capture the network traffic.

To do so, follow the following steps:

Step 1 — Start JMeter.

Step 2 — Create a Thread Group from Add -> Thread (Users) by right-clicking the Test Plan.

Adding Thread Group

Step 3 — Create a Recording Controller from Add -> Logic Controller section by right-clicking the Thread Group.

Adding Recording Controller

Step 4 — Create a HTTP(S) Test Script Recorder from Add -> Non-Test Elements by right-clicking the Test Plan.

Adding HTTP(S) Test Script Recorder

Step 5 — Configure the HTTP(S) Test Script Recorder by setting the port as 8888 and check ‘Start/Stop’ checkbox.

Step 6 — Configure proxy to ‘localhost’ and port ‘8888’ in the web browser.

Step 7 — Start the HTTP(S) Test Script Recorder by clicking ‘Start’ button in JMETER.

Step 8 — Navigate to the web app under test and perform the desired actions.

Step 9 — Stop the HTTP(S) Test Script Recorder.

Step 10 — Now, the recorded requests can be observed under the Recording Controller. We can use this recorded script for Load/Performance testing.

Thank you for reading this blog! I hope that it has been helpful and that you have gained valuable insight. I appreciate your support and look forward to provide more helpful tips and advice in the future.

--

--

No responses yet

Write a response