Sha256: 5685fd9124bf895dc20e559e0a0f8c108d6a39fd93d6b20601e2b5b860bf4272
Contents?: true
Size: 789 Bytes
Versions: 10
Compression:
Stored size: 789 Bytes
Contents
module RubyJmeter class DSL def loop_controller(params={}, &block) node = RubyJmeter::LoopController.new(params) attach_node(node, &block) end end class LoopController attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'LoopController' : (params[:name] || 'LoopController') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="#{testname}" enabled="true"> <boolProp name="LoopController.continue_forever">true</boolProp> <intProp name="LoopController.loops">1</intProp> </LoopController>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
10 entries across 10 versions & 1 rubygems