Sha256: bfdd63b5fae6e253b6bcbfc0c35f0650df22b060937605223bec7e746c4aec16
Contents?: true
Size: 734 Bytes
Versions: 2
Compression:
Stored size: 734 Bytes
Contents
module JmeterPerf class DSL def constant_timer(params = {}, &) node = JmeterPerf::ConstantTimer.new(params) attach_node(node, &) end end class ConstantTimer attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "ConstantTimer" : (params[:name] || "ConstantTimer") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="#{testname}" enabled="true"> <stringProp name="ConstantTimer.delay">300</stringProp> </ConstantTimer> 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_timer.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/constant_timer.rb |