Sha256: 3f4ab440616765bd2f9e9c4eb97a08b1a368319d91234b8e9f619cfa539697b3
Contents?: true
Size: 1013 Bytes
Versions: 2
Compression:
Stored size: 1013 Bytes
Contents
module JmeterPerf class DSL def save_responses_to_a_file(params = {}, &) node = JmeterPerf::SaveResponsesToAFile.new(params) attach_node(node, &) end end class SaveResponsesToAFile attr_accessor :doc include Helper def initialize(params = {}) testname = params.is_a?(Array) ? "SaveResponsesToAFile" : (params[:name] || "SaveResponsesToAFile") @doc = Nokogiri::XML(<<~EOS.strip_heredoc) <ResultSaver guiclass="ResultSaverGui" testclass="ResultSaver" testname="#{testname}" enabled="true"> <stringProp name="FileSaver.filename"/> <boolProp name="FileSaver.errorsonly">false</boolProp> <boolProp name="FileSaver.skipautonumber">false</boolProp> <boolProp name="FileSaver.skipsuffix">false</boolProp> <boolProp name="FileSaver.successonly">false</boolProp> </ResultSaver> 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/save_responses_to_a_file.rb |
jmeter_perf-0.0.2 | lib/jmeter_perf/dsl/save_responses_to_a_file.rb |