Permalink
Browse files

add get parameter interpolation example to README

  • Loading branch information...
1 parent 3e9dc49 commit 665831181a3c7921025228b0b03497f28c206c27 @jamesgolick committed May 6, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.rdoc
View
@@ -26,6 +26,9 @@ Trample uses a ruby DSL for configuration.
post "http://yoursite.com/something" do
{:a_parameter => "a value"}
end
+ get "http://yoursite.com/someresources/:id" do
+ {:id => SomeResource.random.id}
+ end
end
The above configuration will start 5 (concurrency) sessions by logging in as a random user at the url in the login block. Then, it'll hit the two urls underneath it 10 (iterations) times during each session.

0 comments on commit 6658311

Please sign in to comment.