Jmeter-Maven-Plugin高级应用:Proxy Configuration

Posted 梦想空间

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Jmeter-Maven-Plugin高级应用:Proxy Configuration相关的知识,希望对你有一定的参考价值。

Proxy Configuration

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的主要内容,如果未能解决你的问题,请参考以下文章

Jmeter-Maven-Plugin高级应用:Proxy Configuration

Jmeter-Maven-Plugin高级应用:Remote Server Configuration

Jmeter-Maven-Plugin高级应用:Configuring the jvm that the jmeter process runs in

使用Jmeter-Maven-Plugin搭建基于jmeter+Jenkins的性能测试平台

Jmeter-maven-plugin github 版本插件变更历史

jmeter-maven-plugin