directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smckin...@apache.org
Subject directory-fortress-core git commit: FC-145 - Jmeter test improvements
Date Mon, 01 Feb 2016 20:25:50 GMT
Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 979d8817b -> 468f4e15e


FC-145 - Jmeter test improvements


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/468f4e15
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/468f4e15
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/468f4e15

Branch: refs/heads/master
Commit: 468f4e15e98de6892c8fe0df261fd1548c1080ab
Parents: 979d881
Author: Shawn McKinney <smckinney@apache.org>
Authored: Mon Feb 1 14:24:44 2016 -0600
Committer: Shawn McKinney <smckinney@apache.org>
Committed: Mon Feb 1 14:24:44 2016 -0600

----------------------------------------------------------------------
 README.md | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/468f4e15/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 688a6bf..765d7db 100755
--- a/README.md
+++ b/README.md
@@ -730,7 +730,7 @@ ________________________________________________________________________________
  mvn install -Dload.file=./ldap/setup/LoadTestUsers.xml
  ```
 
-2. The .jmx files located in [.src/test/jmeter](.src/test/jmeter) folder are used to control
test settings for the following:
+2. The .jmx files located in [.src/test/jmeter](.src/test/jmeter) folder correspond to each
test type:
 
  A. Fortress CheckAccess:
   [src/test/jmeter/ftCheckAccess.jmx](src/test/jmeter/ftCheckAccess.jmx)
@@ -750,7 +750,35 @@ ________________________________________________________________________________
  F. Accelerator SessionPermissions:
   [src/test/jmeter/acSessionPerms.jmx](src/test/jmeter/acSessionPerms.jmx)
 
-3. From **FORTRESS_HOME** folder, enter the following command from a system prompt:
+
+3. Setting the jmeter parameters.
+
+ These settings effect the length, duration, and number of threads:
+
+ * **LoopController.continue_forever**: boolean value, if *false*, test duration is controlled
by numbers of *loops* and *threads*.
+ * **LoopController.loops**: integer value, contains the number of iterations each thread
performs the test function.
+ * **ThreadGroup.num_threads**: integer value, contains the number of threads to use in the
test.
+ * **ThreadGroup.ramp_time**: integer value, number of seconds for starting threads.  A rule
of thumb, set to same as num_threads.
+
+ For example:
+ ```
+ <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Fortress CreateSession"
enabled="true">
+     ...
+     <elementProp name="ThreadGroup.main_controller" ...>
+         <boolProp name="LoopController.continue_forever">false</boolProp>
+         <stringProp name="LoopController.loops">1000</stringProp>
+     </elementProp>
+     <stringProp name="ThreadGroup.num_threads">10</stringProp>
+     <stringProp name="ThreadGroup.ramp_time">10</stringProp>
+     ...
+ </ThreadGroup>
+ ```
+
+ This test will start ten threads in ten seconds.  Each thread executes the *createSession*
function 1000 times before terminating.
+
+4.  Run the tests.
+
+ From **FORTRESS_HOME** folder, enter the following command from a system prompt:
 
  A. Fortress CheckAccess:
   ```


Mime
View raw message