Sha256: c5ee5826731d2b0f499037f57726ddddba0d627e507bdec508bc64bf6006dd51
Contents?: true
Size: 834 Bytes
Versions: 75
Compression:
Stored size: 834 Bytes
Contents
module RubyJmeter class DSL def gaussian_random_timer(params={}, &block) node = RubyJmeter::GaussianRandomTimer.new(params) attach_node(node, &block) end end class GaussianRandomTimer attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'GaussianRandomTimer' : (params[:name] || 'GaussianRandomTimer') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <GaussianRandomTimer guiclass="GaussianRandomTimerGui" testclass="GaussianRandomTimer" testname="#{testname}" enabled="true"> <stringProp name="ConstantTimer.delay">300</stringProp> <stringProp name="RandomTimer.range">100.0</stringProp> </GaussianRandomTimer>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
75 entries across 75 versions & 1 rubygems