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