Sha256: 56d89e317337aca6fa7073e72853b1080fa857a7d936b313c8ee277ea929158f
Contents?: true
Size: 754 Bytes
Versions: 2
Compression:
Stored size: 754 Bytes
Contents
module JmeterPerf class DSL def random_controller(params = {}, &) node = JmeterPerf::RandomController.new(params) attach_node(node, &) end end class RandomController attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "RandomController" : (params[:name] || "RandomController") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <RandomController guiclass="RandomControlGui" testclass="RandomController" testname="#{testname}" enabled="true"> <intProp name="InterleaveControl.style">1</intProp> </RandomController> 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/random_controller.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/random_controller.rb |