Sha256: ca3b440b13ebb240e95f8d37a479df6680f77dde2e265f7a5d0f09b58ecbe995
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
module JmeterPerf class DSL def css_jquery_extractor(params = {}, &) node = JmeterPerf::CSSJqueryExtractor.new(params) attach_node(node, &) end end class CSSJqueryExtractor attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "CSSJqueryExtractor" : (params[:name] || "CSSJqueryExtractor") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <HtmlExtractor guiclass="HtmlExtractorGui" testclass="HtmlExtractor" testname="#{testname}" enabled="true"> <stringProp name="HtmlExtractor.refname"/> <stringProp name="HtmlExtractor.expr"/> <stringProp name="HtmlExtractor.attribute"/> <stringProp name="HtmlExtractor.default"/> <stringProp name="HtmlExtractor.match_number"/> <stringProp name="HtmlExtractor.extractor_impl"/> <boolProp name="HtmlExtractor.default_empty_value"/> </HtmlExtractor> 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/css_jquery_extractor.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/css_jquery_extractor.rb |