I am new to JMeter and trying to run a test from behind a corporate proxy. I read on the same from apache site and followed the same process so as to run the test. However, i am still unable to record a test from behind the proxy.
This message always appears after pressing on 'Start' recording:
After that, I have changed apache port to 8000 as in below and made it different
This time after pressing on start was this message
You need to install CA certificate to the browser If you have installed JMeter then map for folder structure in windows, to find the root ca certificate, please follow the below steps & Choose the following options:-
Tools / Options
Advanced / Certificates
Import certificate from path ...\JMeter\bin\ApacheJMeterTemporaryRootCA.crt
Browse to the JMeter launch directory, and click on the file ApacheJMeterTemporaryRootCA.crt, press Open
Click View and check that the certificate details agree with the ones displayed by the JMeter Test Script Recorder
If OK, select "Trust this CA to identify web sites", and press OK
Change default JMeter HTTP(S) Test Script Recorded port to be different from default 8080. The easiest and quickest option is using "Recording" template (File -> Templates -> Recording). See How to Save ‘Loads’ of Time Using JMeter's Template Feature for instructions on using existing and creating new templates.
Configure your browser to use localhost as a proxy host and port 8888. Make sure that "no proxy for" input is blank or doesn't contain stuff like 127.0.0.1, localhost, ::1
If you're sitting behind the corporate proxy - you can "tell" JMeter to use your company proxy settings via the following command-line arguments:
-H, --proxyHost <argument>
Set a proxy server for JMeter to use
-P, --proxyPort <argument>
Set proxy server port for JMeter to use
-N, --nonProxyHosts <argument>
Set nonproxy host list (e.g. *.apache.org|localhost)
-u, --username <argument>
Set username for proxy server that JMeter is to use
-a, --password <argument>
First add a Recording Controller in your Thread Group.
Next add a HTTP(s) test script recorder in the work bench.
Click on the HTTP(s) test script recorder .
In the Global Settings, change port from 8080 to any other number say - 7777.
Go to Mozilla Firefox Options.
Go to Advanced settings.
Go to Network tab.
Go to Connection Settings.
Change to Manual proxy settings and change to port to 7777
Save the settings.
What was happening when you were trying to run the script earlier.
Actually the port on which you are trying to run the script on, is already in use by some other application and that is why you are getting the error.