Class: JmeterPerf::DSL::DistributionGraphalpha
- Inherits:
-
Object
- Object
- JmeterPerf::DSL::DistributionGraphalpha
- Includes:
- Helpers::XmlDocumentUpdater
- Defined in:
- lib/jmeter_perf/dsl/distribution_graphalpha.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ DistributionGraphalpha
constructor
A new instance of DistributionGraphalpha.
Constructor Details
#initialize(params = {}) ⇒ DistributionGraphalpha
Returns a new instance of DistributionGraphalpha.
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 58 |
# File 'lib/jmeter_perf/dsl/distribution_graphalpha.rb', line 17 def initialize(params = {}) testname = params.is_a?(Array) ? "DistributionGraphalpha" : (params[:name] || "DistributionGraphalpha") @doc = Nokogiri::XML(JmeterPerf::Helpers::String.strip_heredoc( <<~EOS <ResultCollector guiclass="DistributionGraphVisualizer" testclass="ResultCollector" testname="#{testname}" enabled="true"> <boolProp name="ResultCollector.error_logging">false</boolProp> <objProp> <name>saveConfig</name> <value class="SampleSaveConfiguration"> <time>true</time> <latency>true</latency> <timestamp>true</timestamp> <success>true</success> <label>true</label> <code>true</code> <message>false</message> <threadName>true</threadName> <dataType>false</dataType> <encoding>false</encoding> <assertions>false</assertions> <subresults>false</subresults> <responseData>false</responseData> <samplerData>false</samplerData> <xml>false</xml> <fieldNames>false</fieldNames> <responseHeaders>false</responseHeaders> <requestHeaders>false</requestHeaders> <responseDataOnError>false</responseDataOnError> <saveAssertionResultsFailureMessage>false</saveAssertionResultsFailureMessage> <assertionsResultsToSave>0</assertionsResultsToSave> <bytes>true</bytes> <threadCounts>true</threadCounts> <sampleCount>true</sampleCount> </value> </objProp> <stringProp name="filename"/> </ResultCollector> EOS )) update params update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath] end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
14 15 16 |
# File 'lib/jmeter_perf/dsl/distribution_graphalpha.rb', line 14 def doc @doc end |