Sha256: 834cd6e7d911122cf3231e7b5625b338a697a61ce608b1b0ca941a209e1a304c

Contents?: true

Size: 973 Bytes

Versions: 15

Compression:

Stored size: 973 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'ruby-jmeter'

test do

  defaults domain: 'example.com'

  with_user_agent :chrome

  header [
    { name: 'Accept-Encoding', value: 'gzip,deflate,sdch' },
    { name: 'Accept', value: 'text/javascript, text/html, application/xml, text/xml, */*' }
  ]

  ultimate  name: 'ultimate thread group example',
            on_sample_error: 'startnextloop',
            threads: [
              {
                start_threads: 200,
                initial_delay: 0,
                start_time: 30,
                hold_time: 60,
                stop_time: 5
              },
              {
                start_threads: 200,
                initial_delay: 60,
                start_time: 30,
                hold_time: 60,
                stop_time: 5
              }
          ] do

    random_timer 1000, 3000

    get name: 'home', url: '/'

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ruby-jmeter-3.1.08 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.07 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.06 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.05 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.04 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.03 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.02 examples/ultimate_thread_group.rb
ruby-jmeter-3.1.01 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.13 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.12 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.11 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.10 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.9 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.8 examples/ultimate_thread_group.rb
ruby-jmeter-3.0.7 examples/ultimate_thread_group.rb