我刚开始学习JMeter . 我正在尝试使用JMeter来记录我的公司网站,.NET Web应用程序 .
My issue is that : For security, to access the websites, we have to config "Manual proxy configuration" to 10.x.x.x:3128. However, to record in JMeter I have to change the config to localhost, port 3128.
在我将配置更改为localhost之后,我单击HTTP Test Script Recorder的“开始”按钮,然后单击任何链接,显示“授权”对话框,尽管我输入了正确的用户名/密码,但仍然会收到401未经授权的错误 .
我尝试使用HTTP授权管理器,HTTP请求默认值或HTTP请求,但它们不起作用 .
任何人都可以帮我吗?
1 回答
如果您的公司使用代理进行Internet访问,您可以“告诉”JMeter也使用此代理 . 所以你需要执行以下配置:
添加HTTP(S) Test Script Recorder, default 端口为8080(或任何其他)
将浏览器配置为使用 JMeter host 和端口 8080 来访问Internet . 如果在浏览器的代理配置中某处有
No proxy for localhost, 127.0.0.1
节 - 如果在同一台机器上运行浏览器和JMeter,请取消或删除它 . "Classic" Firefox配置应该类似于: