Permalink
Browse files

Documentation and groovy environment changes

  • Loading branch information...
1 parent 00646f1 commit 0947c7dfea9eab7761c173a126b98cc3b5f34a3d cap_protect committed Nov 4, 2011
Showing with 4 additions and 9 deletions.
  1. +4 −9 README.textile
View
@@ -10,18 +10,15 @@ java -jar loadtest-1.0.jar Example1.groovy
h2. Environment
-For groovy scripts following classes avialable: 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.
+For groovy scripts following classes avialable: 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.
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
+ Select one of the closures to execute depending on probability. Probabilites could be not normalized: i.e. sum(prob~i~) != 1.0
any(arguments...);
@@ -36,15 +33,13 @@ 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.
+ 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.
+ 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)

0 comments on commit 0947c7d

Please sign in to comment.