无法在Mozilla中使用JMETER记录网络流量,将端口更改为8080时出现错误

问题描述 投票:0回答:1

我试图通过以下步骤添加端口和代理来配置Jmeter与Mozilla Firefox,但它不允许我访问我的公司测试站点。在更改Jmeter的端口/代理后,我无法在Mozilla中启动。我需要帮助来解决这个问题。

Open the browser. At that time, don’t close the JMeter window.
Click Menu button from the Navigation bar.
Choose “Options” menu.
Click “Advanced” tab on the left and then select “Network” tab.
Click on “Settings” button in the Connection section.
Choose “Manual Proxy Configuration.”
Type HTTP Proxy as localhost or enter IP Address of your system and then set port as 8080 (Check whether this port is free. If not change the port)
Check “Use this proxy server for all protocols” option.
Click “OK” button
Click “OK” button again.

它应该允许我记录HTTP(s)流量,以便我可以将其保存在.JMX文件中。因此,当我使用手动网络设置打开Mozilla浏览器时,它应该记录为在JMeter本身中将其作为脚本运行。

google-chrome jmeter jmx mozilla blazemeter
1个回答
0
投票

由于JMeter 3.0 HTTP(S) Test Script Recorder的默认端口是8888,请参阅JMeter Bug 59006了解详情。

因此要么将Firefox中的代理端口更改为8888:

enter image description here

或者将JMeter的HTTP(S)测试脚本记录器中的端口更改为8080:

enter image description here

鉴于您在Firefox和JMeter中使用相同的端口 - 您应该能够记录流量。如果您正在录制HTTPS - 请务必将ApacheJMeterTemporaryRootCA.crt导入Firefox。

© www.soinside.com 2019 - 2024. All rights reserved.