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