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