Commit 5f4ffa35 authored by Shawn McKinney's avatar Shawn McKinney
Browse files

upgrade maven jmeter plugin to 3.5.x (not working)

parent 5d0814ce
......@@ -201,7 +201,7 @@ A. Add Users:
* Add user entries to people container. Optionally performs an update and/or verify entry is present.
```bash
mvn -Pload jmeter:jmeter -Dtype=addUser -Dqualifier=R1H1
mvn verify jmeter:jmeter -Dtype=addUser -Dqualifier=R1H1
```
B. Mod Users:
......@@ -209,7 +209,7 @@ B. Mod Users:
* Mod user entries to people container.
```bash
mvn -Pload jmeter:jmeter -Dtype=modUser -Dqualifier=R1H1
mvn verify jmeter:jmeter -Dtype=modUser -Dqualifier=R1H1
```
C. Delete Users:
......@@ -217,7 +217,7 @@ C. Delete Users:
* Remove user entries from people container.
```bash
mvn -Pload jmeter:jmeter -Dtype=delUser -Dqualifier=R1H1
mvn verify jmeter:jmeter -Dtype=delUser -Dqualifier=R1H1
```
* Same properties as add
......@@ -228,7 +228,7 @@ D. Add Groups:
* Add group entries to group container. Optionally performs an update and/or verify entry is present.
```bash
mvn -Pload -Dtype=addGroup jmeter:jmeter -Dqualifier=R1H1
mvn verify -Dtype=addGroup jmeter:jmeter -Dqualifier=R1H1
```
* Same properties as user
......@@ -238,7 +238,7 @@ E. Del Groups:
* Remove group entries from group container.
```bash
mvn -Pload -Dtype=delGroup jmeter:jmeter -Dqualifier=R1H1
mvn verify -Dtype=delGroup jmeter:jmeter -Dqualifier=R1H1
```
* Same properties as user
......@@ -249,7 +249,7 @@ F. Assign Groups:
* Adds users as members of a particular group.
```bash
mvn -Pload jmeter:jmeter -Dtype=assignGroup -Dqualifier=R1H1 -Dname=localhost-R1H1-2
mvn verify jmeter:jmeter -Dtype=assignGroup -Dqualifier=R1H1 -Dname=localhost-R1H1-2
```
* Same properties as user and group
......@@ -260,7 +260,7 @@ G. Deassign Groups:
* Removes users as members of a particular group.
```bash
mvn -Pload jmeter:jmeter -Dtype=deassignGroup -Dqualifier=R1H1 -Dname=localhost-R1H1-1
mvn verify jmeter:jmeter -Dtype=deassignGroup -Dqualifier=R1H1 -Dname=localhost-R1H1-1
```
* Same properties as user and group
......@@ -272,7 +272,7 @@ H. Check Users:
* Performs LDAP Compare to validate group membership
```bash
mvn -Pload jmeter:jmeter -Dtype=checkUser -Dqualifier=R1H1 -Dverify=true -Dname=localhost-R1H1-1 -Dsize=1000
mvn verify jmeter:jmeter -Dtype=checkUser -Dqualifier=R1H1 -Dverify=true -Dname=localhost-R1H1-1 -Dsize=1000
```
* Same properties as user and group
......@@ -286,7 +286,7 @@ I. Change User Passwords:
* Optionally performs LDAP Bind ( if verify == true )
```bash
mvn -Pload jmeter:jmeter -Dtype=changePw -Dqualifier=R1H1 -Dverify=true -Dpassword=secret -Dnewpassword=newsecret
mvn verify jmeter:jmeter -Dtype=changePw -Dqualifier=R1H1 -Dverify=true -Dpassword=secret -Dnewpassword=newsecret
```
* Same properties as user
......@@ -301,7 +301,7 @@ A. Qualifier property.
For example:
```bash
mvn -Pload jmeter:jmeter -Dtype=addUser -Dqualifier=A1
mvn verify jmeter:jmeter -Dtype=addUser -Dqualifier=A1
```
* if you enable 20 threads * 100 loops (in jmeter config file), with a qualifier = 'A1', 2,000 users will be added.
......@@ -322,13 +322,13 @@ ou=People, ...
* The same qualifier can be used (on subsequent add test) if the start value is set to a value greater than the last entity loaded. e.g. first test loads 2000 users, next test sets start=2001.
```bash
mvn -Pload jmeter:jmeter -Dtype=addUser -Dqualifier=A2
mvn verify jmeter:jmeter -Dtype=addUser -Dqualifier=A2
```
* Or, delete the previously added entries before the next add:
```bash
mvn -Pload jmeter:jmeter -Dtype=delUser -Dqualifier=A1
mvn verify jmeter:jmeter -Dtype=delUser -Dqualifier=A1
```
* Ensure the thread and loop counts in jmx config file match between corresponding add and delete runs.
......@@ -338,7 +338,7 @@ B. Verify
* If set to true, after every operation, the entry is 'read' to verify it has been properly added or deleted.
```bash
mvn -Pload jmeter:jmeter -Dtype=addUser -Dqualifier=A1 -Dverify=true
mvn verify jmeter:jmeter -Dtype=addUser -Dqualifier=A1 -Dverify=true
```
C. Update
......@@ -346,7 +346,7 @@ C. Update
* If set to true, after every add, an update (ldap mod operation) will be performed on the entry's description field.
```bash
mvn -Pload jmeter:jmeter -Dtype=addUser -Dqualifier=A1 -Dupdate=true
mvn verify jmeter:jmeter -Dtype=addUser -Dqualifier=A1 -Dupdate=true
```
### 7. Troubleshooting
......
......@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.symas</groupId>
<artifactId>ldap-load-gen</artifactId>
<version>1.0</version>
<version>1.1</version>
<name>LDAP Load Generator</name>
<url>https://www.symas.com</url>
<description>
......@@ -179,70 +179,73 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>3.5.0</version>
<!--<version>DEV-SNAPSHOT</version>-->
<configuration>
<testPlanLibraries>
<artifact>com.symas:ldap-load-gen:jar:${project.version}</artifact>
<artifact>org.apache.commons:commons-pool2:${commons-pool2.version}</artifact>
</testPlanLibraries>
<suppressJMeterOutput>false</suppressJMeterOutput>
<testFilesIncluded>
<jMeterTestFile>${type}.jmx</jMeterTestFile>
</testFilesIncluded>
<propertiesSystem>
<version>${project.version}</version>
<tenant>${tenant}</tenant>
<hostname>${hostname}</hostname>
<qualifier>${qualifier}</qualifier>
<verify>${verify}</verify>
<failures>${failures}</failures>
<repeat>${repeat}</repeat>
<bind>${bind}</bind>
<output>${output}</output>
<update>${update}</update>
<sleep>${sleep}</sleep>
<size>${size}</size>
<start>${start}</start>
<duplicate>${duplicate}</duplicate>
<name>${name}</name>
<password>${password}</password>
<newpassword>${newpassword}</newpassword>
</propertiesSystem>
<jMeterProcessJVMSettings>
<xms>1024</xms>
<xmx>1024</xmx>
<!--
<arguments>
<argument>-Xdebug</argument>
<argument>-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5000</argument>
</arguments>
-->
</jMeterProcessJVMSettings>
</configuration>
<executions>
<execution>
<id>configuration</id>
<goals>
<goal>configure</goal>
</goals>
</execution>
<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>
</plugins>
</build>
<profiles>
<profile>
<id>load</id>
<build>
<plugins>
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.10.1</version>
<configuration>
<overrideRootLogLevel>DEBUG</overrideRootLogLevel>
<suppressJMeterOutput>false</suppressJMeterOutput>
<testFilesIncluded>
<jMeterTestFile>${type}.jmx</jMeterTestFile>
</testFilesIncluded>
<propertiesSystem>
<version>${project.version}</version>
<tenant>${tenant}</tenant>
<hostname>${hostname}</hostname>
<qualifier>${qualifier}</qualifier>
<verify>${verify}</verify>
<failures>${failures}</failures>
<repeat>${repeat}</repeat>
<bind>${bind}</bind>
<output>${output}</output>
<update>${update}</update>
<sleep>${sleep}</sleep>
<size>${size}</size>
<start>${start}</start>
<duplicate>${duplicate}</duplicate>
<name>${name}</name>
<password>${password}</password>
<newpassword>${newpassword}</newpassword>
</propertiesSystem>
<jMeterProcessJVMSettings>
<xms>1024</xms>
<xmx>1024</xmx>
</jMeterProcessJVMSettings>
</configuration>
<executions>
<execution>
<id>jmeter-tests</id>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>com.symas</groupId>
<artifactId>ldap-load-gen</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>${commons-pool2.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment