Sha256: 33427999b4d6a3e394b4e0e9c841febe2d9c298bf78613c4684a8378276bd317

Contents?: true

Size: 685 Bytes

Versions: 22

Compression:

Stored size: 685 Bytes

Contents

require 'spec_helper'

describe 'throughput controller' do
  let(:doc) do
    test do
      threads do
        throughput_controller percent: 99 do
          transaction name: "TC_01", parent: true, include_timers: true
        end
      end
    end.to_doc
  end

  let(:fragment) { doc.search("//ThroughputController").first }

  it 'should match on maxThroughput' do
    expect(fragment.search(".//intProp[@name='ThroughputController.maxThroughput']").text).to eq '99'
    expect(fragment.search(".//FloatProperty/value").text).to eq '99.0'
  end

  it 'should match on style' do
    expect(fragment.search(".//intProp[@name='ThroughputController.style']").text).to eq '1'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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