Sha256: ca08f4f6e24683a7f031f1c25eec14fb5c1d0f2476b79e68d0cb791675fe1f75
Contents?: true
Size: 827 Bytes
Versions: 14
Compression:
Stored size: 827 Bytes
Contents
module RubyJmeter class DSL def constant_throughput_timer(params={}, &block) node = RubyJmeter::ConstantThroughputTimer.new(params) attach_node(node, &block) end end class ConstantThroughputTimer attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(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
14 entries across 14 versions & 1 rubygems