Sha256: ee884da7fed98ca8c5f37b6a9732c6799bf8f0d839b3673b2b1815a6ac431222
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
module JmeterPerf class DSL # DSL method synonymous with the JMeter Element JDBCPostprocessor # @see https://github.com/jlurena/jmeter_perf/wiki/1.-DSL-Documentation#jdbcpostprocessor # @param [Hash] params Parameters for the JDBCPostprocessor element (default: `{}`). # @yield block to attach to the JDBCPostprocessor element # @return [JmeterPerf::JDBCPostprocessor], a subclass of JmeterPerf::DSL that can be chained with other DSL methods. def jdbc_postprocessor(params = {}, &) node = JmeterPerf::JDBCPostprocessor.new(params) attach_node(node, &) end end class JDBCPostprocessor attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "JDBCPostprocessor" : (params[:name] || "JDBCPostprocessor") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <JDBCPostProcessor guiclass="TestBeanGUI" testclass="JDBCPostProcessor" testname="#{testname}" enabled="true"> <stringProp name="dataSource"/> <stringProp name="query"/> <stringProp name="queryArguments"/> <stringProp name="queryArgumentsTypes"/> <stringProp name="queryType">Select Statement</stringProp> <stringProp name="resultVariable"/> <stringProp name="variableNames"/> <stringProp name="queryTimeout"/> <stringProp name="resultSetHandler">Store as String</stringProp> </JDBCPostProcessor> EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.7 | lib/jmeter_perf/dsl/jdbc_postprocessor.rb |