Class: RubyJmeter::Plugins::TransactionsPerSecond

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/ruby-jmeter/plugins/transactions_per_second.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#enabled, #enabled_disabled, #update, #update_at_xpath, #update_collection

Constructor Details

#initialize(params = {}) ⇒ TransactionsPerSecond


6
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
# File 'lib/ruby-jmeter/plugins/transactions_per_second.rb', line 6

def initialize(params={})
  testname = params.kind_of?(Array) ? 'TransactionsPerSecond' : (params[:name] || 'TransactionsPerSecond')
  @doc = Nokogiri::XML("<kg.apc.jmeter.vizualizers.CorrectedResultCollector guiclass=\"kg.apc.jmeter.vizualizers.TransactionsPerSecondGui\" testclass=\"kg.apc.jmeter.vizualizers.CorrectedResultCollector\" testname=\"\#{testname}\" enabled=\"\#{enabled(params)}\">\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>true</message>\n<threadName>true</threadName>\n<dataType>true</dataType>\n<encoding>false</encoding>\n<assertions>true</assertions>\n<subresults>true</subresults>\n<responseData>false</responseData>\n<samplerData>false</samplerData>\n<xml>true</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</value>\n</objProp>\n<stringProp name=\"filename\"></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</kg.apc.jmeter.vizualizers.CorrectedResultCollector>\n".strip_heredoc)
  update params
end

Instance Attribute Details

#docObject

Returns the value of attribute doc


4
5
6
# File 'lib/ruby-jmeter/plugins/transactions_per_second.rb', line 4

def doc
  @doc
end