Sha256: 8186f5a77530901aafa3279e290cc1672f75294f214110d99e5d2c785e95052f
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
module JmeterPerf class DSL def http_url_rewriting_modifier(params = {}, &) node = JmeterPerf::HTTPUrlRewritingModifier.new(params) attach_node(node, &) end end class HTTPUrlRewritingModifier attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "HTTPUrlRewritingModifier" : (params[:name] || "HTTPUrlRewritingModifier") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <URLRewritingModifier guiclass="URLRewritingModifierGui" testclass="URLRewritingModifier" testname="#{testname}" enabled="true"> <stringProp name="argument_name"/> <boolProp name="path_extension">false</boolProp> <boolProp name="path_extension_no_equals">false</boolProp> <boolProp name="path_extension_no_questionmark">false</boolProp> <boolProp name="cache_value">false</boolProp> <boolProp name="encode">false</boolProp> </URLRewritingModifier> 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/http_url_rewriting_modifier.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/http_url_rewriting_modifier.rb |