Sha256: 66ae4915fa9e23cc6fe28cd773515e619d0d118e2080f645038cacd23ece5ddc
Contents?: true
Size: 967 Bytes
Versions: 4
Compression:
Stored size: 967 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> <stringProp name="ForeachController.endIndex"/> <stringProp name="ForeachController.startIndex"/> </ForeachController>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
4 entries across 4 versions & 1 rubygems