Sha256: 646b81df93f29db872620d9615966e40db79ea2d9408608646f1eea77c2a13c9

Contents?: true

Size: 991 Bytes

Versions: 22

Compression:

Stored size: 991 Bytes

Contents

require 'spec_helper'

describe 'transaction controller' do
  let(:doc) do
    test do
      threads do
        transaction name: 'TC_01', parent: false, include_timers: true
        transaction name: 'TC_02', parent: true, include_timers: false
      end
    end.to_doc
  end

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

  it 'should match on parent when false' do
    expect(fragment.first.search(".//boolProp[@name='TransactionController.parent']").text).to eq 'false'
  end

  it 'should match on includeTimers when true' do
    expect(fragment.first.search(".//boolProp[@name='TransactionController.includeTimers']").text).to eq 'true'
  end

  it 'should match on parent when true' do
    expect(fragment.last.search(".//boolProp[@name='TransactionController.parent']").text).to eq 'true'
  end

  it 'should match on includeTimers when false' do
    expect(fragment.last.search(".//boolProp[@name='TransactionController.includeTimers']").text).to eq 'false'
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

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