Sha256: 2bbea2f32a10adbf647fe420c432a7bad639629797fe3bff923cf833f5e94168
Contents?: true
Size: 865 Bytes
Versions: 38
Compression:
Stored size: 865 Bytes
Contents
module RubyJmeter class DSL def foreach_controller(params={}, &block) node = RubyJmeter::ForeachController.new(params) attach_node(node, &block) end end class ForeachController attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'ForeachController' : (params[:name] || 'ForeachController') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <ForeachController guiclass="ForeachControlPanel" testclass="ForeachController" testname="#{testname}" enabled="true"> <stringProp name="ForeachController.inputVal"/> <stringProp name="ForeachController.returnVal"/> <boolProp name="ForeachController.useSeparator">true</boolProp> </ForeachController>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
38 entries across 38 versions & 1 rubygems