Sha256: d3ad7082971651f6e33ff56ee779393f68a33a3b12af506d96b2f5d12902000a
Contents?: true
Size: 761 Bytes
Versions: 75
Compression:
Stored size: 761 Bytes
Contents
module RubyJmeter class DSL def xml_schema_assertion(params={}, &block) node = RubyJmeter::XmlSchemaAssertion.new(params) attach_node(node, &block) end end class XmlSchemaAssertion attr_accessor :doc include Helper def initialize(params={}) testname = params.kind_of?(Array) ? 'XmlSchemaAssertion' : (params[:name] || 'XmlSchemaAssertion') @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <XMLSchemaAssertion guiclass="XMLSchemaAssertionGUI" testclass="XMLSchemaAssertion" testname="#{testname}" enabled="true"> <stringProp name="xmlschema_assertion_filename"/> </XMLSchemaAssertion>) 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