module JmeterPerf class DSL def view_results_in_table(params = {}, &) node = JmeterPerf::ViewResultsInTable.new(params) attach_node(node, &) end end class ViewResultsInTable attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "ViewResultsInTable" : (params[:name] || "ViewResultsInTable") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) false saveConfig true true true true false true false false false false false false false false false false false false 0 true true true EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end