Sha256: 107930fd510f2cb64a6da503b3fe1d3b4826a7b12813a0962d3ffa39ab2a6cbc

Contents?: true

Size: 872 Bytes

Versions: 75

Compression:

Stored size: 872 Bytes

Contents

module RubyJmeter
  class DSL
    def jsr223_postprocessor(params={}, &block)
      node = RubyJmeter::Jsr223Postprocessor.new(params)
      attach_node(node, &block)
    end
  end

  class Jsr223Postprocessor
    attr_accessor :doc
    include Helper

    def initialize(params={})
      testname = params.kind_of?(Array) ? 'Jsr223Postprocessor' : (params[:name] || 'Jsr223Postprocessor')
      @doc = Nokogiri::XML(<<-EOS.strip_heredoc)
<JSR223PostProcessor guiclass="TestBeanGUI" testclass="JSR223PostProcessor" testname="#{testname}" enabled="true">
  <stringProp name="cacheKey"/>
  <stringProp name="filename"/>
  <stringProp name="parameters"/>
  <stringProp name="script"/>
  <stringProp name="scriptLanguage"/>
</JSR223PostProcessor>)
      EOS
      update params
      update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
    end
  end

end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
ruby-jmeter-2.11.0 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.7 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.6 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.5 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.4 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.3 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.2 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.1 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.1.0 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.0.9 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.0.8 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.0.7 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.0.6 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.0.5 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb
ruby-jmeter-2.0.4 lib/ruby-jmeter/dsl/jsr223_postprocessor.rb