Sha256: b3a0f9b100944de2f7d6895da19c51bf54429678c9c9161ca307c676fa432aa6
Contents?: true
Size: 848 Bytes
Versions: 2
Compression:
Stored size: 848 Bytes
Contents
module JmeterPerf class DSL def constant_throughput_timer(params = {}, &) node = JmeterPerf::ConstantThroughputTimer.new(params) attach_node(node, &) end end class ConstantThroughputTimer attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "ConstantThroughputTimer" : (params[:name] || "ConstantThroughputTimer") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="#{testname}" enabled="true"> <intProp name="calcMode">0</intProp> <stringProp name="throughput">0.0</stringProp> </ConstantThroughputTimer> EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/constant_throughput_timer.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/constant_throughput_timer.rb |