I have a site that sits within corporate firewall. When I start JMeter with corporate proxy address defined (ie parameters in command line) and start recording a scenario, page gets blocked by corporate proxy - address not recognised. When I start JMeter with no proxy defined though and record the website activity, I see the basic html page (just a border) but no content is loaded - basically because the main content is from external resources and blocked (because no corporate proxy details were supplied I believe- don't have error message immediately to hand). Is there any way to specify domains that should be excluded from using corporate proxy when recording? Why does this issue not occur other times? I'm assuming that plenty of our internal sites use external resources, eg .js packages? Am using FoxyProxy Chrome addin for ref. Am trying the Blazemeter AutoCorrelation tool for recording. Thanks
- Make sure to import JMeter's certificate into the browser. The file is called
ApacheJMeterTemporaryRootCA.crtand it's generated in "bin" folder of your JMeter installation when you start HTTP(S) Test Script Recorder. See HTTPS recording and certificates chapter of JMeter Documentation for more details.
- Clear your browsing history
- There is no need to use any add-in, just configure Chrome to use JMeter as the proxy. Alternatively go for the browser which has independent proxy configuration like Firefox. Also set JMeter to use your corporate proxy. There is a way to specify host(s) for which proxy will not be used (the connection will be direct). However it means that these requests will not be intercepted
- I don't think you should record and especially replay external resources for the internal application, you should exclude them from recording and replaying scope