Sha256: a75de5295c79362b05d60b2076fa9d4d1dc63dc4f055d30ee2879408aeedf0bf
Contents?: true
Size: 749 Bytes
Versions: 2
Compression:
Stored size: 749 Bytes
Contents
module JmeterPerf class DSL def switch_controller(params = {}, &) node = JmeterPerf::SwitchController.new(params) attach_node(node, &) end end class SwitchController attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "SwitchController" : (params[:name] || "SwitchController") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <SwitchController guiclass="SwitchControllerGui" testclass="SwitchController" testname="#{testname}" enabled="true"> <stringProp name="SwitchController.value"/> </SwitchController> 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/switch_controller.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/switch_controller.rb |