【问题标题】:Unable to record with http proxy server in jmeter无法在 jmeter 中使用 http 代理服务器进行记录
【发布时间】:2015-04-30 10:57:58
【问题描述】:

我是 jmeter 新手,正在使用 jmeter 2.9。

我有 WIFI 连接,并且我在浏览器中使用“自动检测设置”。作为 jmeter 的一部分,我正在更改该选项,并将代理服务器输入为“localhost”,端口输入为 8080(与 jmeter http 代理服务器值相同)。但是使用此设置不会加载任何页面,并且 jmeter 不会记录。

请建议如何进行。

提前致谢。

【问题讨论】:

    标签: jmeter


    【解决方案1】:

    您似乎坐在公司代理后面。 JMeter 无法自动检测代理设置,您需要将其配置为也使用代理。以下是可用的参数:

        -H, --proxyHost <argument>
                Set a proxy server for JMeter to use
        -P, --proxyPort <argument>
                Set proxy server port for JMeter to use
        -N, --nonProxyHosts <argument>
                Set nonproxy host list (e.g. *.apache.org|localhost)
        -u, --username <argument>
                Set username for proxy server that JMeter is to use
        -a, --password <argument>
                Set password for proxy server that JMeter is to use
    

    有关更多信息,请参阅Using JMeter behing a proxy 指南。

    还有另一个选项:JMeter Chrome Plugin,它不需要任何额外的代理配置,您可以直接从浏览器记录测试。

    【讨论】:

    • 嗨德米特里。非常感谢。我不支持任何公司代理。默认情况下,我没有在浏览器中提到任何代理,因为我将 localhost 作为代理服务器,所以我根本无法连接到所需的页面。有什么方法可以在不使用插件的情况下处理这种情况,
    猜你喜欢
    • 2013-06-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-03-27
    • 1970-01-01
    • 1970-01-01
    • 2014-01-31
    相关资源
    最近更新 更多