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