Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid JMeter recording server name or IP in each HTTP Request node?

Tags:

jmeter

I tried creating a test plan as explained here. But the only problem I am facing is each HTTP request recording the ServerName or IP, so if I change the server name from "HTTP Request Defaults", all HTTP request is not getting modified. Are there any ways to over come this issue?

like image 489
Venkat Sadasivam Avatar asked Jul 21 '10 02:07

Venkat Sadasivam


People also ask

How does JMeter recording work?

The Test Script Recorder in JMeter is designed to record such scenarios. So, your JMeter works like a proxy with the help of the HTTP(S) Test Script Recorder. A Proxy is a component which inserts between you and the remote server. It is similar to a man-in-the-middle attack but in this case, you are spying on yourself.

What is recording controller in JMeter?

Recording Controller: JMeter can record your Testing steps; a recording controller is a placeholder to store these recording steps.


2 Answers

In the future, create the "HTTP REQUEST DEFAULT" item BEFORE RECORDING, and fill in your server name and protocol into the Default Request. This will keep the domain from being populated in every recorded request.

like image 79
BlackGaff Avatar answered Jan 03 '23 06:01

BlackGaff


When you add each HTTP Request Sampler to the Thread Group, you can leave the Server Name or IP and Port fields blank. It will take these from the HTTP Request Defaults

If these were filled from recording, then the only way is to delete them from each sampler screen of the recorded jmx

like image 21
JoseK Avatar answered Jan 03 '23 06:01

JoseK