Sha256: 18fdb310c69d84171815d68e98a1f9e866112efad07e4b279357e933a3696982
Contents?: true
Size: 895 Bytes
Versions: 2
Compression:
Stored size: 895 Bytes
Contents
module JmeterPerf class DSL def for_each_controller(params = {}, &) node = JmeterPerf::ForEachController.new(params) attach_node(node, &) end end class ForEachController attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/for_each_controller.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/for_each_controller.rb |