Sha256: 67f22310abdf10826e8aea3790cb47bf8e6beb1eca86573c23544b0128683a90

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

module JmeterPerf
  class DSL
    def generate_summary_results(params = {}, &)
      node = JmeterPerf::GenerateSummaryResults.new(params)
      attach_node(node, &)
    end
  end

  class GenerateSummaryResults
    attr_accessor :doc
    include Helper

    def initialize(params = {})
      testname = params.is_a?(Array) ? "GenerateSummaryResults" : (params[:name] || "GenerateSummaryResults")
      @doc = Nokogiri::XML(<<~EOS.strip_heredoc)
        <Summariser guiclass="SummariserGui" testclass="Summariser" testname="#{testname}" enabled="true"/>
      EOS
      update params
      update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jmeter_perf-0.0.6 lib/jmeter_perf/dsl/generate_summary_results.rb
jmeter_perf-0.0.2 lib/jmeter_perf/dsl/generate_summary_results.rb