gridinit-jmeter 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -300,8 +300,7 @@ module Gridinit
300
300
 
301
301
  def gc_console_status_logger(name="jp@gc - Console Status Logger", params={}, &block)
302
302
  node = Gridinit::Jmeter::GCConsoleStatusLogger.new(name, params)
303
- attach_to_last(node, caller)
304
- self.instance_exec(&block) if block
303
+ attach_node(node, &block)
305
304
  end
306
305
 
307
306
  alias_method :console, :gc_console_status_logger
@@ -15,9 +15,9 @@ module Gridinit
15
15
  </elementProp>
16
16
  <stringProp name="ThreadGroup.num_threads">#{num_threads}</stringProp>
17
17
  <stringProp name="ThreadGroup.ramp_time">#{params[:ramp_time]}</stringProp>
18
- <longProp name="ThreadGroup.start_time">1352677419000</longProp>
19
- <longProp name="ThreadGroup.end_time">1352677419000</longProp>
20
- <boolProp name="ThreadGroup.scheduler">false</boolProp>
18
+ <longProp name="ThreadGroup.start_time">#{Time.now.to_i * 1000}</longProp>
19
+ <longProp name="ThreadGroup.end_time">#{Time.now.to_i * 1000}</longProp>
20
+ <boolProp name="ThreadGroup.scheduler">true</boolProp>
21
21
  <stringProp name="ThreadGroup.duration"></stringProp>
22
22
  <stringProp name="ThreadGroup.delay"></stringProp>
23
23
  </ThreadGroup>
@@ -1,5 +1,5 @@
1
1
  module Gridinit
2
2
  module Jmeter
3
- VERSION = "0.2.6"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gridinit-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -165,4 +165,7 @@ rubygems_version: 1.8.23
165
165
  signing_key:
166
166
  specification_version: 3
167
167
  summary: This is a Ruby based DSL for writing JMeter test plans
168
- test_files: []
168
+ test_files:
169
+ - spec/dsl_spec.rb
170
+ - spec/spec_helper.rb
171
+ - spec/stub.rb