Sha256: 1a6d16f5e33bd3e9ca9b8e2a0f7f0190263b52c7eb55e105e91aa8a44a33ec46
Contents?: true
Size: 784 Bytes
Versions: 75
Compression:
Stored size: 784 Bytes
Contents
module RubyJmeter class DSL def bsf_assertion(params={}, &block) node = RubyJmeter::BsfAssertion.new(params) attach_node(node, &block) end end class BsfAssertion attr_accessor :doc include Helper 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 end end
Version data entries
75 entries across 75 versions & 1 rubygems