Sha256: 2cd4faf2247f72b17956926e1a34bf66b910bd1292db8b019a3ed73bb552a536
Contents?: true
Size: 456 Bytes
Versions: 22
Compression:
Stored size: 456 Bytes
Contents
module RubyJmeter class ExtendedDSL < DSL def throughput_controller(params = {}, &block) params[:style] = 1 if params[:percent] params[:maxThroughput] = params[:total] || params[:percent] || 1 node = RubyJmeter::ThroughputController.new(params) node.doc.xpath(".//FloatProperty/value").first.content = params[:maxThroughput].to_f attach_node(node, &block) end alias throughput throughput_controller end end
Version data entries
22 entries across 22 versions & 1 rubygems