Class: RubyJmeter::DebugSampler

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#enabled, #update, #update_at_xpath

Constructor Details

#initialize(params = {}) ⇒ DebugSampler

Returns a new instance of DebugSampler.



13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/ruby-jmeter/dsl/debug_sampler.rb', line 13

def initialize(params={})
  params[:name] ||= 'DebugSampler'
  @doc = Nokogiri::XML("<DebugSampler guiclass=\"TestBeanGUI\" testclass=\"DebugSampler\" testname=\"\#{params[:name]}\" enabled=\"true\">\n  <boolProp name=\"displayJMeterProperties\">false</boolProp>\n  <boolProp name=\"displayJMeterVariables\">true</boolProp>\n  <boolProp name=\"displaySystemProperties\">false</boolProp>\n</DebugSampler>)\n  EOS\n  update params\n  update_at_xpath params if params[:update_at_xpath]\nend\n".strip_heredoc)

Instance Attribute Details

#docObject

Returns the value of attribute doc.



10
11
12
# File 'lib/ruby-jmeter/dsl/debug_sampler.rb', line 10

def doc
  @doc
end