Sha256: b7b9cf4f79ebd5944789084c16a0b51a8e64f4b716d9ad3ae0580d2681311ad2
Contents?: true
Size: 1017 Bytes
Versions: 2
Compression:
Stored size: 1017 Bytes
Contents
module JmeterPerf class DSL def http_cookie_manager(params = {}, &) node = JmeterPerf::HTTPCookieManager.new(params) attach_node(node, &) end end class HTTPCookieManager attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "HTTPCookieManager" : (params[:name] || "HTTPCookieManager") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="#{testname}" enabled="true"> <collectionProp name="CookieManager.cookies"/> <boolProp name="CookieManager.clearEachIteration">false</boolProp> <stringProp name="CookieManager.policy">default</stringProp> <stringProp name="CookieManager.implementation">org.apache.jmeter.protocol.http.control.HC4CookieHandler</stringProp> </CookieManager> 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_cookie_manager.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/http_cookie_manager.rb |