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