简体   繁体   English

如何为JMeter和Chrome和IIS Express配置代理

[英]How to configure proxy for JMeter and Chrome and IIS Express

I run my solution on IIS Express with address http://localhost:58187/ 我在地址为http:// localhost:58187 /的 IIS Express上运行我的解决方案

I try to record some test using JMeter, so I configure Test Script Recorder as you can see below. 我尝试使用JMeter记录一些测试,因此我配置了Test Script Recorder,如下所示。 Port for proxy is 8888. 代理的端口是8888。

在此处输入图片说明

After that I set proxy settings in Chrome as you see below. 之后,如下所示,我在Chrome中设置了代理设置。

在此处输入图片说明

After all configuration I click "Start" button in But when I go by browser into localhost address I get error ERR_CONNECTION_REFUSED . 完成所有配置后,我单击“开始”按钮,但是当我通过浏览器进入本地主机地址时,出现错误ERR_CONNECTION_REFUSED What made I wrong? 是什么让我错了?

I believe your second screenshot contains the answer: 我相信您的第二张屏幕截图包含答案:

IE代理设置

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) 所有其他配置似乎都很好(假设您不要忘记启动JMeter的代理)

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, ie Mozilla Firefox 使用具有自己的代理设置且不继承操作系统代理设置的浏览器 ,即Mozilla Firefox
  2. Use JMeter Chrome Extension for recording. 使用JMeter Chrome扩展程序进行录制。 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. 在这种情况下,您不必担心代理和SSL证书,只需单击Chrome浏览器工具栏中的按钮即可触发录制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM