Sha256: b9afb3ecdd3d855a45790315763fe1b95183889654ad15396e72120bc2dda50f

Contents?: true

Size: 346 Bytes

Versions: 14

Compression:

Stored size: 346 Bytes

Contents

module RubyJmeter
  class ExtendedDSL < DSL
    def constant_throughput_timer(params, &block)
      params[:value] ||= params[:throughput] || 0.0

      node = RubyJmeter::ConstantThroughputTimer.new(params)
      node.doc.xpath('//stringProp[@name="throughput"]').first.content = params[:value]
      attach_node(node, &block)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ruby-jmeter-3.1.08 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.07 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.06 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.05 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.04 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.03 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.02 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.1.01 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.0.13 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.0.12 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.0.11 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.0.10 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.0.9 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb
ruby-jmeter-3.0.8 lib/ruby-jmeter/extend/timers/constant_throughput_timer.rb