module JmeterPerf module Plugins class LoadosophiaUploader attr_accessor :doc include JmeterPerf::Helpers::XmlDocumentUpdater def initialize(name = "Loadosophia.org Uploader", params = {}) params[:error_logging] ||= false params[:filename] ||= "" params[:project] ||= "DEFAULT" params[:uploadToken] ||= "Invalid Token" params[:storeDir] ||= "/tmp" params[:color] ||= "none" params[:title] ||= "" params[:useOnline] ||= false @doc = Nokogiri::XML( JmeterPerf::Helpers::String.strip_heredoc( <<-XML #{params[:error_logging]} saveConfig true true true true false true false false false false false false false false false false false false 0 true true true #{params[:filename]} #{params[:project]} #{params[:uploadToken]} #{params[:storeDir]} #{params[:color]} #{params[:title]} #{params[:useOnline]} XML ) ) # update params end end end end