Permalink
Browse files

Documentation and groovy environment changes

  • Loading branch information...
1 parent 5c19bb3 commit 00646f1f0fa064ce98c9f886067574c9460fd54c cap_protect committed Nov 4, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 README.textile
View
@@ -16,31 +16,43 @@ Look groovy documentation and src/main/resources/org/loadtest/Classes.groovy for
h3. Variations
+
select(prob1, closure1, prob2, closure2, prob3, closure3, ...)
+
Select one of the closures to execute depending on probability. Probabilites
could be not normalized: i.e. sum(prob~i~) != 1.0
+
any(arguments...);
+
Select one of arguments with equal probability.
+
h3. HTTP
+
get([Closure reporter, ]String ...urls)
+
Gets value of one(!randomly selected) of urls and reads line by line calling reporter(line).
If reporter is not specified returns array of strings - lines of this file.
+
parse(Pattern regex, String ...html)
+
Process text throught regular expression and selects regular expression groups.
Returns 2-d array if several groups used and 1-d if one.
+
resolve(String url, String path)
+
Resolves path relative to url.
+
h2. License
Load test tool is distributed on terms of BSD-license. Look at src/main/resources/BSD-LICENSE.txt for details.

0 comments on commit 00646f1

Please sign in to comment.