Class: Gridinit::Jmeter::GCDummySampler

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#enabled, #update, #update_at_xpath

Constructor Details

#initialize(name, params = {}) ⇒ GCDummySampler

Returns a new instance of GCDummySampler.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/gridinit-jmeter/plugins/gc_dummy_sampler.rb', line 7

def initialize(name, params={})
  @doc = Nokogiri::XML("    <kg.apc.jmeter.samplers.DummySampler guiclass=\"kg.apc.jmeter.samplers.DummySamplerGui\" testclass=\"kg.apc.jmeter.samplers.DummySampler\" testname=\"jp@gc - Dummy Sampler\" enabled=\"true\">\n    <boolProp name=\"WAITING\">true</boolProp>\n    <boolProp name=\"SUCCESFULL\">true</boolProp>\n    <stringProp name=\"RESPONSE_CODE\">200</stringProp>\n    <stringProp name=\"RESPONSE_MESSAGE\">OK</stringProp>\n    <stringProp name=\"REQUEST_DATA\"></stringProp>\n    <stringProp name=\"RESPONSE_DATA\"></stringProp>\n    <stringProp name=\"RESPONSE_TIME\">0</stringProp>\n    <stringProp name=\"LATENCY\">0</stringProp>\n  </kg.apc.jmeter.samplers.DummySampler>\n  EOF\n  update params\nend\n".strip_heredoc)

Instance Attribute Details

#docObject

Returns the value of attribute doc.



5
6
7
# File 'lib/gridinit-jmeter/plugins/gc_dummy_sampler.rb', line 5

def doc
  @doc
end