Sha256: e2a40f85d5393ef7ca1912799bed74d7f8a2a20fe855d61a4b391c4270679b18
Contents?: true
Size: 840 Bytes
Versions: 21
Compression:
Stored size: 840 Bytes
Contents
module RubyJmeter class DSL def jsr223_assertion(params={}, &block) node = RubyJmeter::Jsr223Assertion.new(params) attach_node(node, &block) end end class Jsr223Assertion attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'Jsr223Assertion' : (params[:name] || 'Jsr223Assertion') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <JSR223Assertion guiclass="TestBeanGUI" testclass="JSR223Assertion" testname="#{testname}" enabled="true"> <stringProp name="cacheKey"/> <stringProp name="filename"/> <stringProp name="parameters"/> <stringProp name="script"/> <stringProp name="scriptLanguage"/> </JSR223Assertion>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end end end
Version data entries
21 entries across 21 versions & 1 rubygems