Skip to content
Permalink
Browse files
FC-294 - combine jmeter load profiles
  • Loading branch information
shawnmckinney committed Jun 18, 2021
1 parent 986328e commit 78417522fc9f9137e70ff1447a0c7e3a51c43180
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 470 deletions.
@@ -81,7 +81,7 @@ ________________________________________________________________________________
Will add user entry. Optionally will perform an update and/or role assignment.

```
mvn -Ploadtest-fortress-adduser jmeter:jmeter -Dqualifier=A1 -Dverify=true -Dsleep=30 -Dupdate=true -Dou=loadtestu -Drole=jmeterrole
mvn -Ploadtest jmeter:jmeter -Dtype=ftAddUser -Dqualifier=A1 -Dverify=true -Dsleep=30 -Dupdate=true -Dou=loadtestu -Drole=jmeterrole
```

This test adds users. It uses runtime arguments to define behavior:
@@ -94,11 +94,11 @@ ________________________________________________________________________________
* role=jmeterrole <-- this is an optional attribute on user entry

* All but hostname may also be set as properties in [add config](src/test/jmeter/ftAddUser.jmx) or [del config](src/test/jmeter/ftDelUser.jmx) files.

B. Delete Users:

```
mvn -Ploadtest-fortress-deluser jmeter:jmeter -Dqualifier=A1 -Dverify=true -Dsleep=30
mvn -Ploadtest jmeter:jmeter -Dtype=ftDelUser -Dqualifier=A1 -Dverify=true -Dsleep=30
```

* Same properties as add except for 'ou', which is not used for delete ops
@@ -108,7 +108,7 @@ ________________________________________________________________________________
Will perform a createSession. Optionally reads the entry and/or permission checks.

```
mvn -Ploadtest-fortress-checkuser jmeter:jmeter -Dqualifier=A1 -Dverify=true -Dsize=20 -Dperm=jmeterobject.oper
mvn -Ploadtest jmeter:jmeter -Dtype=ftCheckUser -Dqualifier=A1 -Dverify=true -Dsize=20 -Dperm=jmeterobject.oper
```

This test performs createSession on users. It uses runtime arguments to define behavior:
@@ -122,7 +122,7 @@ A. Qualifier property.
The add test generates userids based on: hostname + qualifier + counter. The counter is global across all threads, so if you enable 20 threads * 100 loops, with a qualifier = 'A1', 2,000 users will be added:

```
mvn -Ploadtest-fortress-adduser jmeter:jmeter -Dqualifier=A1
mvn -Ploadtest jmeter:jmeter -Dtype=ftAddUser -Dqualifier=A1
```

hostname-A1-1
@@ -134,13 +134,13 @@ hostname-A1-1000
If you run the test a second time (before a delete run) there will be duplicates because it tries to add users with same userids again. This is the idea of the 'qualifier'. Change its value to ensure the uids remain unique across test runs.

```
mvn -Ploadtest-fortress-adduser jmeter:jmeter -Dqualifier=A2
mvn -Ploadtest jmeter:jmeter -Dtype=ftAddUser -Dqualifier=A2
```

Or, you can run a delete before the next add:

```
mvn -Ploadtest-fortress-deluser jmeter:jmeter -Dqualifier=A1
mvn -Ploadtest jmeter:jmeter -Dtype=ftDelUser -Dqualifier=A1
```

Just make sure the thread and loop counts in ftDelUser.jmx are the same as ftAddUser.jmx
@@ -150,31 +150,31 @@ B. Verify
If set to true, after every operation, a read of the entry will be performed.

```
mvn -Ploadtest-fortress-adduser jmeter:jmeter -Dqualifier=A1 -Dverify=true
mvn -Ploadtest jmeter:jmeter -Dtype=ftAddUser -Dqualifier=A1 -Dverify=true
```

C. Update

If set to true, after every add, an update will be performed on user's description field.

```
mvn -Ploadtest-fortress-adduser jmeter:jmeter -Dqualifier=A1 -Dupdate=true
mvn -Ploadtest jmeter:jmeter -Dtype=ftAddUser -Dqualifier=A1 -Dupdate=true
```

D. Role

If 'role' set as property, it will be assigned after the user has been added. The role itself must already exist before being used in assignment to user.

```
mvn -Ploadtest-fortress-adduser jmeter:jmeter -Dqualifier=A1 -Drole=jmeterrole
mvn -Ploadtest jmeter:jmeter -Dtype=ftAddUser -Dqualifier=A1 -Drole=jmeterrole
```

E. Perm

This applies only to the CheckUser test. If set, it will be used as permission in checkAccess call 10 times. For example:

```
mvn -Ploadtest-fortress-checkuser jmeter:jmeter -Dperm=jmeterobject.oper
mvn -Ploadtest jmeter:jmeter -Dtype=ftCheckUser -Dperm=jmeterobject.oper
```

Will call checkAccess:
@@ -806,28 +806,29 @@ ________________________________________________________________________________

A. Fortress CheckAccess:
```
mvn -Ploadtest-fortress jmeter:jmeter
mvn -Ploadtest jmeter:jmeter -Dtype=ftCheckAccess
```

B. Fortress CreateSession:
```
mvn -Ploadtest-fortress-createsess jmeter:jmeter
mvn -Ploadtest jmeter:jmeter -Dtype=ftCreateSession
```

C. Fortress SessionPermissions:
```
mvn -Ploadtest-fortress-sessperms jmeter:jmeter
mvn -Ploadtest jmeter:jmeter -Dtype=ftSessionPerms
```

D. Accelerator CheckAccess:
```
mvn -Ploadtest-accel jmeter:jmeter
mvn -Ploadtest jmeter:jmeter -Dtype=acCheckAccess
```

E. Accelerator CreateSession:
```
mvn -Ploadtest-accel-createsess jmeter:jmeter
mvn -Ploadtest jmeter:jmeter -Dtype=acCreateSession
```

___________________________________________________________________________________
## SECTION 15. Howto Debug a load script

0 comments on commit 7841752

Please sign in to comment.