Sha256: 1cb66b3d7c1d1fc4aff3834f3fbd54756f81b4db6340c4c0c72a18448dc4f979
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
module JmeterPerf class DSL def xml_schema_assertion(params = {}, &) node = JmeterPerf::XMLSchemaAssertion.new(params) attach_node(node, &) end end class XMLSchemaAssertion attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jmeter_perf-0.0.6 | lib/jmeter_perf/dsl/xml_schema_assertion.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/xml_schema_assertion.rb |