Skip to content

Commit

Permalink
example for once only controller
Browse files Browse the repository at this point in the history
  • Loading branch information
timkoopmans committed Nov 16, 2016
1 parent c599f6e commit b14f67e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions examples/once_only_controller.rb
@@ -0,0 +1,15 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'

test do
threads count: 100 do
think_time 5000, 5000

Once do
post name: 'Home Page', url: 'https://flooded.io/api/oauth'
end

visit name: 'Home Page', url: 'https://flooded.io/'

end
end.run(path: '/usr/share/jmeter/bin/', gui: true)

0 comments on commit b14f67e

Please sign in to comment.