module JmeterPerf class DSL def view_results_tree(params = {}, &) node = JmeterPerf::ViewResultsTree.new(params) attach_node(node, &) end end class ViewResultsTree attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "ViewResultsTree" : (params[:name] || "ViewResultsTree") @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