class RubyJmeter::BsfAssertion
Attributes
doc[RW]
Public Class Methods
new(params={})
click to toggle source
# File lib/ruby-jmeter/dsl/bsf_assertion.rb, line 13 def initialize(params={}) testname = params.kind_of?(Array) ? 'BsfAssertion' : (params[:name] || 'BsfAssertion') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <BSFAssertion guiclass="TestBeanGUI" testclass="BSFAssertion" testname="#{testname}" enabled="true"> <stringProp name="filename"/> <stringProp name="parameters"/> <stringProp name="script"/> <stringProp name="scriptLanguage"/> </BSFAssertion>) EOS update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end