Class: JmeterPerf::Plugins::PerfmonCollector
- Inherits:
-
Object
- Object
- JmeterPerf::Plugins::PerfmonCollector
- Includes:
- Helpers::XmlDocumentUpdater
- Defined in:
- lib/jmeter_perf/plugins/perfmon_collector.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ PerfmonCollector
constructor
A new instance of PerfmonCollector.
Constructor Details
#initialize(params = {}) ⇒ PerfmonCollector
Returns a new instance of PerfmonCollector.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/jmeter_perf/plugins/perfmon_collector.rb', line 7 def initialize(params = {}) @doc = Nokogiri::XML( JmeterPerf::Helpers::String.strip_heredoc( " <kg.apc.jmeter.perfmon.PerfMonCollector guiclass=\"kg.apc.jmeter.vizualizers.PerfMonGui\" testclass=\"kg.apc.jmeter.perfmon.PerfMonCollector\" testname=\"\#{params[:name] || \"PerfmonCollector\"}\" enabled=\"true\">\n <boolProp name=\"ResultCollector.error_logging\">false</boolProp>\n <objProp>\n <name>saveConfig</name>\n <value class=\"SampleSaveConfiguration\">\n <time>true</time>\n <latency>true</latency>\n <timestamp>true</timestamp>\n <success>true</success>\n <label>true</label>\n <code>true</code>\n <message>false</message>\n <threadName>true</threadName>\n <dataType>false</dataType>\n <encoding>false</encoding>\n <assertions>false</assertions>\n <subresults>false</subresults>\n <responseData>false</responseData>\n <samplerData>false</samplerData>\n <xml>\#{params[:xml] || false}</xml>\n <fieldNames>false</fieldNames>\n <responseHeaders>false</responseHeaders>\n <requestHeaders>false</requestHeaders>\n <responseDataOnError>false</responseDataOnError>\n <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage>\n <assertionsResultsToSave>0</assertionsResultsToSave>\n <bytes>true</bytes>\n <threadCounts>true</threadCounts>\n <sampleCount>true</sampleCount>\n </value>\n </objProp>\n <stringProp name=\"filename\">\#{params[:filename] || \"perfmon.jtl\"}</stringProp>\n <longProp name=\"interval_grouping\">1000</longProp>\n <boolProp name=\"graph_aggregated\">false</boolProp>\n <stringProp name=\"include_sample_labels\"></stringProp>\n <stringProp name=\"exclude_sample_labels\"></stringProp>\n <stringProp name=\"start_offset\"></stringProp>\n <stringProp name=\"end_offset\"></stringProp>\n <boolProp name=\"include_checkbox_state\">false</boolProp>\n <boolProp name=\"exclude_checkbox_state\">false</boolProp>\n \#{metric_connections(params).root}\n </kg.apc.jmeter.perfmon.PerfMonCollector>\n XML\n )\n )\n update params\nend\n" |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
4 5 6 |
# File 'lib/jmeter_perf/plugins/perfmon_collector.rb', line 4 def doc @doc end |