ruby-jmeter 2.11.17 → 2.11.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 02ce67a974c4589ea7193adbb2f3b51ac0d0fdbf
4
- data.tar.gz: d1962fded2994b67cc63f8695c51ac22942bba78
3
+ metadata.gz: d80ad24d26d433b87819aaf2892080af2d950cb9
4
+ data.tar.gz: e8bc18c1935c4c2965a49c109b6b197ae74116b8
5
5
  SHA512:
6
- metadata.gz: 0eb1dfdb201290ad691154ee164148c95daf2805d45a185332da9db86c7b31af45f3b03d265db76334effeb12f4a0a3938c6fbcdeff287b731a7ae897310054e
7
- data.tar.gz: 7dd9b6abd25deb8fda38b9ad392b18b88c4f80578fcfee9090b3e0ffd46ea21377b259d26f16c0a790a6516e4c9a3d6a29f0224f2c81ca0d27bde19b2d18aa01
6
+ metadata.gz: b6462ff9ba9a48731cac03d1482af2aabadf37c3ead7d9a66221edf308a50b97d7bde69921115974f1c5c7b111596b808d55e585001c8865540adf16843e29b2
7
+ data.tar.gz: 0f25f292711a52576716ca00bafbdac3aa25fed48520a58babe9054f371662e33ea64a37a6748126ec6d08afd485b2eecb0562388b2ec61dc49cf6e57832f7fa
@@ -0,0 +1,15 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads count: 1 do
6
+ Loop count:10 do
7
+ counter 'CounterConfig.name' => 'visit',
8
+ 'CounterConfig.start' => 1,
9
+ 'CounterConfig.incr' => 1,
10
+ 'CounterConfig.end' => 100
11
+
12
+ visit name: 'Home Page', url: 'http://google.com/'
13
+ end
14
+ end
15
+ end.run(path: '/usr/share/jmeter-2.11/bin/', gui: true)
@@ -0,0 +1,10 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads count: 1 do
6
+ Loop count:10 do
7
+ visit name: 'Home Page', url: 'http://google.com/'
8
+ end
9
+ end
10
+ end.run(path: '/usr/share/jmeter-2.11/bin/', gui: true)
@@ -142,6 +142,16 @@ module RubyJmeter
142
142
  attach_node(node, &block)
143
143
  end
144
144
 
145
+ def head(*args, &block)
146
+ params = args.shift || {}
147
+ params = { url: params }.merge(args.shift || {}) if params.class == String
148
+ params[:method] ||= 'PATCH'
149
+ params[:name] ||= params[:url]
150
+ parse_http_request(params)
151
+ node = RubyJmeter::HttpRequest.new(params)
152
+ attach_node(node, &block)
153
+ end
154
+
145
155
  def with_xhr
146
156
  http_header_manager name: 'X-Requested-With',
147
157
  value: 'XMLHttpRequest'
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = "2.11.17"
2
+ VERSION = "2.11.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-jmeter
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.17
4
+ version: 2.11.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-04 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -60,6 +60,7 @@ files:
60
60
  - examples/basic_auth.rb
61
61
  - examples/basic_cache.rb
62
62
  - examples/basic_cookies.rb
63
+ - examples/basic_counter.rb
63
64
  - examples/basic_extract.rb
64
65
  - examples/basic_flood.rb
65
66
  - examples/basic_flood_real.rb
@@ -74,6 +75,7 @@ files:
74
75
  - examples/basic_http_request_with_files.rb
75
76
  - examples/basic_json_path_extractor.rb
76
77
  - examples/basic_ldap_ext.rb
78
+ - examples/basic_loops.rb
77
79
  - examples/basic_meta_fu.rb
78
80
  - examples/basic_post.rb
79
81
  - examples/basic_preprocessor_user_parameters.rb