Reputation: 6070
I tested with JMeter 2.5.1, 2.7, and 2.9
Chrome 29.1547.76, and
FF 23.0.1
OSX 10.7.5
Is there a limitation with Chrome on Mac 10.7 and JMeter recording the test clicks for my test plan? I have no problems using FF recording my few test clicks but Chrome does not record anything at all. I'm visiting the same urls in both browsers and the Test Plan is the same in JMeter.
I followed the directions in http://jmeter.apache.org/usermanual/jmeter_proxy_step_by_step.pdf.
A quick summary of what I did based on the tutorial above:
Configuring the browsers were slightly different. Not sure if this was the cause. Configuring FF, I went thru FireFox->Preferences->Network->Settings->Manual proxy configuration to change the proxy to my localhost and port 8080. FF records my clicks.
Configuring Chrome, it seems to use the global Network settings and not have its own settings like FF does (System Preferences->Network->Advanced->Proxies->Web Proxy (HTTP). Web Proxy server = localhost, port = 8080. Chrome doesn't record my clicks.
I also stopped the proxy to see what happens when browsing. FF does what I expected it to (gave a message saying proxy server is refusing connections and doesn't show me any pages I browse to). Chrome doesn't do what I expect and allows me to visit all the pages I enter.
I don't have an issue using FF to create my test plan but I'm just curious (and OCD) as to why Chrome doesn't work for me and if anyone else ran into the same problem. If someone knows the reason, please enlighten me. Thanks in advance for your help.
EDIT: I've also tried this with Safari and Opera and they also fail to get the test clicks recorded. The only browser that works is FF, which doesn't go thru the System Preferences->Network->etc to setup the proxy. FF has its own config for proxy setup Screenshot of my System Preferences->Network screen is this:
Screenshot of my JMeter proxy setup is this:
Also, I should have mentioned this earlier. I think I saw it in the user manual. When the proxy is stopped, FF doesn't allow me to access any web pages. When the proxy is started, FF then allowed me to access pages and recorded my browsing click. Chrome allowed me to access web pages, regardless of whether it was started or stopped, which should have been a sign it wasn't set up correct for whatever reason.
Upvotes: 0
Views: 6178
Reputation: 34566
Proxy recording has been greatly improved in upcoming 2.10 version.
Can you give it a try using nightly build ? Ensure you use a JDK 7 when running JMeter :
Installing JMeter runtime
Download the _bin and _lib files
Unpack the archives into the same directory structure
The other archives are not needed to run JMeter.
Also check that your system proxy setting do not exclude a localhost, see for example my Mac OSX config:
Finally ensure you didn't make any mistake if you configured URL patterns to include / Exclude, do a test without anything in these 2 fields to start with:
Edit: it might also be due to domain restrictions from work. After I rebooted the laptop, using the suggestions in this answer worked. After waiting ~15 min, it stopped working. There were other settings in System Preferences that I changed that got reverted to a default value after some time, which is why I think it's due to domain restrictions.
Upvotes: 3