Class: Gridinit::Jmeter::ThreadGroup
- Inherits:
-
Object
- Object
- Gridinit::Jmeter::ThreadGroup
- Includes:
- Helper
- Defined in:
- lib/gridinit-jmeter/idl/thread_group.rb,
lib/gridinit-jmeter/threads/thread_group.rb
Instance Attribute Summary collapse
-
#doc ⇒ Object
Returns the value of attribute doc.
Instance Method Summary collapse
-
#initialize(num_threads, params = {}) ⇒ ThreadGroup
constructor
A new instance of ThreadGroup.
Methods included from Helper
Constructor Details
#initialize(num_threads, params = {}) ⇒ ThreadGroup
Returns a new instance of ThreadGroup.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/gridinit-jmeter/idl/thread_group.rb', line 15 def initialize(name, params={}) @doc = Nokogiri::XML(<<-EOS.strip_heredoc) <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="#{name}" enabled="true"> <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="#{name}" enabled="true"> <boolProp name="LoopController.continue_forever">false</boolProp> <stringProp name="LoopController.loops">1</stringProp> </elementProp> <stringProp name="ThreadGroup.num_threads">1</stringProp> <stringProp name="ThreadGroup.ramp_time">1</stringProp> <longProp name="ThreadGroup.start_time">1366415241000</longProp> <longProp name="ThreadGroup.end_time">1366415241000</longProp> <boolProp name="ThreadGroup.scheduler">false</boolProp> <stringProp name="ThreadGroup.duration"/> <stringProp name="ThreadGroup.delay"/> </ThreadGroup>) EOS update params end |
Instance Attribute Details
#doc ⇒ Object
Returns the value of attribute doc.
12 13 14 |
# File 'lib/gridinit-jmeter/idl/thread_group.rb', line 12 def doc @doc end |