module JmeterPerf class DSL def jdbc_connection_configuration(params = {}, &) node = JmeterPerf::JDBCConnectionConfiguration.new(params) attach_node(node, &) end end class JDBCConnectionConfiguration attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "JDBCConnectionConfiguration" : (params[:name] || "JDBCConnectionConfiguration") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) true Select 1 5000 true 10 10000 DEFAULT 60000 EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end