1
votes

I am trying to record any client-server activity in JMeter as a start for learning. I am doing this from a company network and hence have to go through proxy. Below are the steps I took for recording.

  • I read in JMeter documentation that for recording through proxy I have to invoke from command by giving the proper proxy. I used below code to invoke JMeter.

    jmeter -H "proxy address taken from Internet settings" -P "8080" -u "Domain*UserName*" -a "password".

    With this JMeter invokes fine and then I start the normal process of creating a thread group and a recording controller.

  • Now I am changing the internet setting in IE to local host and mentioning the port as given in JMeter (8080). I am keeping the proxy used as it is because without proxy no site will open except for the internal company sites.

  • Also I have imported the certificate which JMeter uses for the browsers.

2
Try using Chrome Extension.Masud Jahan
sorry. forgot to add the major issue. :)MitSM
Even after doing all this JMeter is not recording any client server traffic. I am just trying a normal hit by doing google.com.MitSM
Did you follow this?Masud Jahan
I am going through this now. Will let you know the outcome.MitSM

2 Answers

0
votes

This is now resolved

I added : JAVA_HOME variable in User environment variables with value pointing to jre installed on my machine C:\Program Files\Java\jdk1.8.0_60\jre

Also I had to select Java under HTTP Sampler Setting in HTTP(S) Test Script Recorder. (Though I don't get the purpose of this setting).

HTTP Sampler setting changed to Java

After doing above changes script is recording fine under company proxy.

-1
votes

I would recommend you to consider to use chrome extension for jMeter script recording without launching JMeter benefits: You can export the script written to JMeter and/or to cloud as well and run it on the cloud.