Sha256: 5bacdce24061f297b4125df2e48cd0e7c191cdba9d3efa2803e99344dd0081a6

Contents?: true

Size: 563 Bytes

Versions: 19

Compression:

Stored size: 563 Bytes

Contents

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

test do
  threads count: 1 do
    # this will let you sample 1 in every N (e.g. 100) transactions on Flood IO
    get name: 'Home Page', sample: 100, url: 'http://google.com/'

    post name: 'create session', url: '/api/oauth', sample: 100,
      fill_in: {
        username: 'Michel Rosen',
        password: 4141414141
      } do
        extract json: '.access_token', name: 'access_token'
      with_xhr
    end
  end
end.run(path: '/usr/share/jmeter/bin/', gui: true)

Version data entries

19 entries across 19 versions & 1 rubygems

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