Sha256: 32b72e1c15b299db58cc5a042cbe253c57184ebd2fed32ed4fd9a673b88f72b5

Contents?: true

Size: 584 Bytes

Versions: 14

Compression:

Stored size: 584 Bytes

Contents

require 'spec_helper'

describe 'constant_throughput_timer' do
  let(:doc) do
    test do
      threads do
        constant_throughput_timer value: 60.0
        constant_throughput_timer throughput: 70.0
      end
    end.to_doc
  end

  it 'should match on throughput using value' do
    expect(doc.search('//ConstantThroughputTimer[1]/stringProp[@name="throughput"]').first.content).to eq '60.0'
  end
  
  it 'should match on throughput using throughput' do
    expect(doc.search('//ConstantThroughputTimer[2]/stringProp[@name="throughput"]').first.content).to eq '70.0'
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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