flood-io/ruby-jmeter

View on GitHub
examples/loops_with_counter.rb

Summary

Maintainability
A
0 mins
Test Coverage
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'

test do
  threads count: 1 do
    loops count:10 do
      counter 'CounterConfig.name' => 'visit',
        'CounterConfig.start' => 1,
        'CounterConfig.incr' => 1,
        'CounterConfig.end' => 100

      visit name: 'Home Page', url: 'https://flooded.io/'
    end
  end
end.run(path: '/usr/share/jmeter/bin/', gui: true)