首页 > 代码库 > Jmeter-Maven-Plugin高级应用:Proxy Configuration
Jmeter-Maven-Plugin高级应用:Proxy Configuration
Proxy Configuration
Pages 12
- Home
- Adding additional libraries to the classpath
- Advanced Configuration
- Basic Configuration
- Configuring the jvm that the jmeter process runs in
- FAQ
- Log Levels
- Modifying Properties
- Proxy Configuration
- Remote Server Configuration
- Selecting Tests To Run
- Test Results File Format
Setting the <proxyConfig>
If you configure proxy settings to be used by JMeter, the proxy settings will be used to run everytest.
Setting a proxy host is mandatory, if you do not set a proxy host the rest of the proxy configuration will be ignored. If you do not set a proxy port it will always default to port 80.
<username> and <password> are optional settings that do not have to be set.
You can also set an optional <hostExclusions< element to notify JMeter of hosts that should not be proxied, this is a regular expression based setting.
+---+
<project>
[...]
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>2.0.3</version>
<executions>
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<configuration>
<proxyConfig>
<host>10.10.10.53</host>
<port>80</port>
<username>jimbob</username>
<password>correct horse battery staple</password>
<hostExclusions>localhost|*.lazerycode.com</hostExclusions>
</proxyConfig>
</configuration>
</plugin>
</plugins>
</build>
[...]
</project>
+---+
For SOCKS proxy configuration, see Configuring the jvm that the jmeter process runs in.
Jmeter-Maven-Plugin高级应用:Proxy Configuration
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。