本文介绍了如何从另一个代理后面设置JMeter的代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是jmeter的新手.
我正在尝试使用代理服务器测试Web应用.
我已经遍历了jmeter文档并获得了设置,但是我目前正在公司代理下工作.

I'm new to jmeter.
I'm trying to test a web app using proxy server.
I have gone through the jmeter docs and got the settings but I'm currently working under company proxy.

那么如何从当前代理后面为jmeter设置代理服务器?

So how can I set the proxy server for jmeter from behind the current proxy?

推荐答案

阅读:

如果要从防火墙/代理服务器后面进行测试,则可能需要向JMeter提供防火墙/代理服务器的主机名和端口号.

为此,请使用以下参数从命令行运行jmeter.bat/jmeter文件:-'-H'[代理服务器的主机名或IP地址]-'-P'[代理服务器端口]-'-N'[非代理主机](例如* .apache.org | localhost)-'-u'[用于代理身份验证的用户名-如果需要的话]-'-a'[用于代理身份验证的密码-如果需要的话]

To do so, run the jmeter.bat/jmeter file from a command line with the following parameters:- '-H' [proxy server hostname or ip address] - '-P' [proxy server port] - '-N' [nonproxy hosts] (e.g. *.apache.org|localhost) - '-u' [username for proxy authentication - if required] - '-a' [password for proxy authentication - if required]

示例:

或者,您可以使用--proxyHost,--proxyPort,--username和--password

Alternatively, you can use --proxyHost, --proxyPort, --username, and --password

如果您想正确学习jmeter,请参阅这本本书将为您提供帮助.

If you're looking to learn jmeter correctly, this book will help you.

这篇关于如何从另一个代理后面设置JMeter的代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 10:09