examples/constant_throughput_timer.rb
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'
test do
threads do
# in samples per minute
constant_throughput_timer value: 60.0
visit name: 'Home Page', url: 'https://flooded.io/'
end
end.run(path: '/usr/share/jmeter/bin/', gui: true)