Sha256: e0cb1d6256ab1dbb322973a8fa57a9436f1d0fc734265ea57159d5776da85bdc

Contents?: true

Size: 1006 Bytes

Versions: 28

Compression:

Stored size: 1006 Bytes

Contents

module RubyJmeter
  class DSL
    def jdbc_postprocessor(params={}, &block)
      node = RubyJmeter::JdbcPostprocessor.new(params)
      attach_node(node, &block)
    end
  end

  class JdbcPostprocessor
    attr_accessor :doc
    include Helper

    def initialize(params={})
      testname = params.kind_of?(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"/>
</JDBCPostProcessor>)
      EOS
      update params
      update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
    end
  end

end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ruby-jmeter-2.12.5 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.12.4 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.12.3 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.12.2 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.12.1 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.12.0 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.22 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.21 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.20 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.19 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.18 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.17 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.16 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.15 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.14 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.13 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.11 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.10 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.9 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb
ruby-jmeter-2.11.8 lib/ruby-jmeter/dsl/jdbc_postprocessor.rb