gridinit-jmeter 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,18 @@
1
+ module Gridinit
2
+ module Jmeter
3
+
4
+ class WhileController
5
+ attr_accessor :doc
6
+ include Helper
7
+ def initialize(condition, params={})
8
+ @doc = Nokogiri::XML(<<-EOF.strip_heredoc)
9
+ <WhileController guiclass="WhileControllerGui" testclass="WhileController" testname="While Controller" enabled="true">
10
+ <stringProp name="WhileController.condition">#{condition}</stringProp>
11
+ </WhileController>
12
+ EOF
13
+ update params
14
+ end
15
+ end
16
+
17
+ end
18
+ end
@@ -131,6 +131,12 @@ module Gridinit
131
131
  self.instance_exec(&block) if block
132
132
  end
133
133
 
134
+ def While(condition, params={}, &block)
135
+ node = Gridinit::Jmeter::WhileController.new(condition, params)
136
+ attach_to_last(node, caller)
137
+ self.instance_exec(&block) if block
138
+ end
139
+
134
140
  def counter(name="counter", params={}, &block)
135
141
  node = Gridinit::Jmeter::CounterConfig.new(name, params)
136
142
  attach_to_last(node, caller)
@@ -381,6 +387,8 @@ module Gridinit
381
387
  '//IfController/following-sibling::hashTree'
382
388
  when 'Loop'
383
389
  '//LoopController/following-sibling::hashTree'
390
+ when 'While'
391
+ '//WhileController/following-sibling::hashTree'
384
392
  when 'counter'
385
393
  '//CounterConfig/following-sibling::hashTree'
386
394
  when 'bsh_pre'
@@ -1,5 +1,5 @@
1
1
  module Gridinit
2
2
  module Jmeter
3
- VERSION = "0.2.3"
3
+ VERSION = "0.2.4"
4
4
  end
5
5
  end
@@ -76,7 +76,7 @@ require 'gridinit-jmeter/helpers/user-agents'
76
76
  # require 'gridinit-jmeter/post_processors/gc_inter_thread_communication_post_processor'
77
77
  # require 'gridinit-jmeter/post_processors/jsr223_post_processor'
78
78
  require 'gridinit-jmeter/post_processors/regex_extractor'
79
- # require 'gridinit-jmeter/post_processors/result_status_action_handler'
79
+ # require 'gridinit-jmeter/post_processors/result_status_action_handler'
80
80
  require 'gridinit-jmeter/post_processors/xpath_extractor'
81
81
 
82
82
  # ASSERTIONS
@@ -104,6 +104,7 @@ require 'gridinit-jmeter/helpers/user-agents'
104
104
  require 'gridinit-jmeter/controllers/if_controller'
105
105
  require 'gridinit-jmeter/controllers/loop_controller'
106
106
  require 'gridinit-jmeter/controllers/throughput'
107
+ require 'gridinit-jmeter/controllers/while_controller'
107
108
 
108
109
  # SAMPLERS
109
110
  require 'gridinit-jmeter/samplers/http_sampler'
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.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-05 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -100,6 +100,7 @@ files:
100
100
  - lib/gridinit-jmeter/controllers/once_only.rb
101
101
  - lib/gridinit-jmeter/controllers/throughput.rb
102
102
  - lib/gridinit-jmeter/controllers/transaction.rb
103
+ - lib/gridinit-jmeter/controllers/while_controller.rb
103
104
  - lib/gridinit-jmeter/dsl.rb
104
105
  - lib/gridinit-jmeter/helpers/dsl_helper.rb
105
106
  - lib/gridinit-jmeter/helpers/fallback_content_proxy.rb