Search code examples
c#iisjmeterautomated-testsiis-express

How to configure proxy for JMeter and Chrome and IIS Express


I run my solution on IIS Express with address http://localhost:58187/

I try to record some test using JMeter, so I configure Test Script Recorder as you can see below. Port for proxy is 8888.

enter image description here

After that I set proxy settings in Chrome as you see below.

enter image description here

After all configuration I click "Start" button in But when I go by browser into localhost address I get error ERR_CONNECTION_REFUSED. What made I wrong?


Solution

  • I believe your second screenshot contains the answer:

    IE Proxy settings

    Try unticking the highlighted box and that should be it.

    All other configuration seems to be fine (assuming you don't forget to start JMeter's proxy)

    Going forward I would recommend one of the following approaches:

    1. Use a browser which has its own proxy settings and don't inherit operating system proxy settings, i.e. Mozilla Firefox
    2. Use JMeter Chrome Extension for recording. In this case you won't have to worry about proxies and SSL certificates, just clicking a button in Chrome browser toolbar will trigger recording.