Sha256: d8740909bc4738819e5f6cb7c64723d0ff627d2d50b62126e95c9eda81eaf99b

Contents?: true

Size: 341 Bytes

Versions: 12

Compression:

Stored size: 341 Bytes

Contents

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
jmeter_perf-1.1.1 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.1.0 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.10 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.9 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.8 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.7 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.6 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.5 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.4 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.2 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.1 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb
jmeter_perf-1.0.0 lib/jmeter_perf/extend/timers/constant_throughput_timer.rb