Sha256: 903f60480ccd7147da5a9ed2c9d58c617989189331a95e7d034a34abc5188550
Contents?: true
Size: 847 Bytes
Versions: 2
Compression:
Stored size: 847 Bytes
Contents
module JmeterPerf class DSL def compare_assertion(params = {}, &) node = JmeterPerf::CompareAssertion.new(params) attach_node(node, &) end end class CompareAssertion attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "CompareAssertion" : (params[:name] || "CompareAssertion") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <CompareAssertion guiclass="TestBeanGUI" testclass="CompareAssertion" testname="#{testname}" enabled="true"> <boolProp name="compareContent">true</boolProp> <longProp name="compareTime">-1</longProp> <collectionProp name="stringsToSkip"/> </CompareAssertion> 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/compare_assertion.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/compare_assertion.rb |