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