Sha256: 9784c9c9018364b719bca451d57ca8fddae2e9f8da82dcf21444850309807b66

Contents?: true

Size: 456 Bytes

Versions: 15

Compression:

Stored size: 456 Bytes

Contents

module JmeterPerf
  class ExtendedDSL < DSL
    def throughput_controller(params = {}, &)
      params[:style] = 1 if params[:percent]
      params[:maxThroughput] = params[:total] || params[:percent] || 1

      node = JmeterPerf::ThroughputController.new(params)
      node.doc.xpath(".//FloatProperty/value").first.content = params[:maxThroughput].to_f

      attach_node(node, &)
    end

    alias_method :throughput, :throughput_controller
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jmeter_perf-1.1.1 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.1.0 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.10 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.9 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.8 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.7 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.6 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.5 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.4 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.2 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.1 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-1.0.0 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-0.0.7 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-0.0.6 lib/jmeter_perf/extend/controllers/throughput_controller.rb
jmeter_perf-0.0.2 lib/jmeter_perf/extend/controllers/throughput_controller.rb