jemter-plugins-maven dependency -WIiki usage Configuration Introduction

1, first introduced maven central warehouse address at jmeter, interested facie

https://mvnrepository.com/artifact/org.apache.jmeter

2.Wiki github project description:

Project Address: https://github.com/jmeter-maven-plugin/jmeter-maven-plugin

 

note:

Basic Usage

Add the plug-in to the project

Add the plug-in to build part of the project pom:

<plugin>
    <groupId>com.lazerycode.jmeter</groupId>
    <artifactId>jmeter-maven-plugin</artifactId>
    <version>2.9.0</version>
    <executions>
	   <!-- Run JMeter tests -->
       <execution>
            <id>jmeter-tests</id>
            <goals>
                <goal>jmeter</goal>
            </goals>
       </execution>
       <!-- Fail build on errors in test -->
       <execution>
            <id>jmeter-check-results</id>
            <goals>
                <goal>results</goal>
            </goals>
       </execution>
    </executions>
</plugin>

  

参考JMX文件和CSV数据

创建JMeter测试后,您需要将它们复制到<Project Dir>/src/test/jmeter
默认情况下,此插件将获取该目录中的所有.jmx文件,您还可以将数据文件放在此文件夹中并在计划中引用它们。要指定应运行哪些测试,请参阅Wiki 的“ 选择 - 测试 - 运行”部分。

运行测试

mvn clean verify

你所有的测试都将在maven中运行!

文档

所有插件配置文档都可以在Github Wiki上找到

初学者应从基本配置部分开始。

有关高级POM配置设置,请查看“ 高级配置”部分。

教程

 

二。高级配置

https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Advanced-Configuration

 

 三,用户交流社区,你可以在这里发现一起使用的伙伴和问题交流

社区

用户组

讨论maven-jmeter-plugin用法的地方,让人们知道你在这里使用它的方式。

主页:http//groups.google.com/group/maven-jmeter-plugin-users

群组电子邮件:[email protected]

开发组织

讨论maven-jmeter-plugin开发的地方,或询问您希望添加的功能。

主页:http//groups.google.com/group/maven-jmeter-plugin-devs

群组电子邮件:[email protected]

网站

官方网站可在https://jmeter.lazerycode.com上找到

Guess you like

Origin www.cnblogs.com/SunshineKimi/p/10947290.html