Permalink
Browse files

Readme fixes

  • Loading branch information...
1 parent 9f80556 commit 74d8fa05be5c3051b3b140ae4229e9ef1f3d71cb oleksiyp committed Nov 5, 2011
Showing with 47 additions and 2 deletions.
  1. +47 −2 README.textile
View
@@ -1,14 +1,32 @@
h1. Loadtest tool
-Tool could be used to test load your web application using different scenarios. Scripts are written in groovy using special test environment.
+Tool could be used to test load your web application using different scenarios. Scripts are written in groovy using loadtest API.
h2. Run
Copy one loadtest-1.0.jar and Example*.groovy from repository to one of directories on your computer. Use java to run it from commandline:
java -jar loadtest-1.0.jar Example1.groovy
-h2. Environment
+Use -h option to display command line information:
+
+<pre>
+java -jar loadtest-1.0.jar -h
+java -jar loadtest.jar [options...] scripts...
+ -c (--threads) N : Number of concurrent threads
+ -ci (--threads-increment) N : Number of concurrent threads to increment after
+ stop/start (use [ENTER])
+ -d (--delay) N : Seconds to delay between requests
+ -e (--eval) VAL : Evaluate groovy script
+ -h (--help) : Display usage information
+ -ie (--init-eval) VAL : Evaluate init script to initialize globals
+ -if (--init-file) FILE : Runs init script to initialize globals
+ -n (--runs-number) N : Number of runs to perform
+ -s (--show-slows) N : Number of the slowest queries to show in
+ statistics(by default 24)
+</pre>
+
+h2. Loadtest API
For groovy scripts following classes available: HTTP and Variations. HTTP class could be used to create load. Variation helps to create non-deterministic behavior. Look groovy documentation and src/main/resources/org/loadtest/Classes.groovy for details.
@@ -48,6 +66,33 @@ h4. resolve(String name, String path)
Resolves path relative to name.
+h3. Globals
+
+
+h4. get(String name)
+
+
+Get variable value shared in global map.
+
+
+h4. put(String name, Object value)
+
+
+Set variable value shared in global map.
+
+
+h4. list(String name, Object ...initValues)
+
+
+Initialize list(synchronized) in global map with values initValues.
+
+
+h4. increment(String name)
+
+
+Gets counter and increments or initializes it with 0 at start.
+
+
h2. Tasks
h3. Features

0 comments on commit 74d8fa0

Please sign in to comment.