ruby-jmeter 3.0.12 → 3.0.13

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: d085f1b33ee976a6909d689a02e750894eeac44a
4
- data.tar.gz: b2091b746d06be3eca4d45e40654370cf77fba40
3
+ metadata.gz: b7dab8de97a7861526f1546fd51839fee7388fa5
4
+ data.tar.gz: eebdd9d78ae028b992193a7cc1b768aa9668dd34
5
5
  SHA512:
6
- metadata.gz: 10426d29a88b670f80e85cba4617db1fe5ae340650eecc2fd35c0ef265cd638e8cdef537bf4de523ac6cacfc925497f7c097be6cab574fa5ff5b1e0af8d7ac85
7
- data.tar.gz: 2d83cdd235f8d9fd24be3b9f76374a28350d2474e25f02988031c8cc3393124b08aa6e2fd4f95026660b9be55fd730eddc683863cd3550b096e49b073e644f25
6
+ metadata.gz: c1fd9f311fc06997e81d9a66c0d7920507f98321fc3f704b54e1ccb2278b075941a93072c63529302a5213a5e491b010ea15e2f882dfaf705f357adbfbd99126
7
+ data.tar.gz: 808d38f0e291839a283c874845a19fa12bd0d1e9072f9ca1d3b694aa2f1a565feb5c6bc9d980ae41e85f19ed7f69c85dcc6cc2449c04f59c3ab27f6722a57f9b
data/README.md CHANGED
@@ -115,7 +115,7 @@ test do
115
115
  end.flood(
116
116
  ENV['FLOOD_API_TOKEN'],
117
117
  name: 'Demo',
118
- privacy_flag: 'public',
118
+ privacy: 'public',
119
119
  ## Select a grid or region to distribute this flood to
120
120
  # grid: 'pmmi24XaSMnKjGVEtutroQ',
121
121
  # region: 'ap-southeast-2'
@@ -0,0 +1,11 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads do
6
+ # in samples per minute
7
+ constant_throughput_timer value: 60.0
8
+
9
+ visit name: 'Home Page', url: 'https://flooded.io/'
10
+ end
11
+ end.run(path: '/usr/share/jmeter/bin/', gui: true)
@@ -18,4 +18,5 @@ end.flood ENV['FLOOD_API_TOKEN'],
18
18
  region: 'us-west-2',
19
19
  stop_after: 60
20
20
  }
21
- ]
21
+ ],
22
+ debug: true
@@ -3,6 +3,6 @@ require 'ruby-jmeter'
3
3
 
4
4
  test do
5
5
  threads count: 10 do
6
- visit name: 'Google Search', url: 'http://google.com/?hl=en&tbo=d&sclient=psy-ab&q=flood.io&oq=flood.io'
6
+ post name: 'Oauth Token', url: 'https://flooded.io/api/oauth?username=Michael&authType=token'
7
7
  end
8
8
  end.run(path: '/usr/share/jmeter/bin/', gui: true)
@@ -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: 100 do
6
+ think_time 5000, 5000
7
+
8
+ Once do
9
+ post name: 'Home Page', url: 'https://flooded.io/api/oauth'
10
+ end
11
+
12
+ visit name: 'Home Page', url: 'https://flooded.io/'
13
+
14
+ end
15
+ end.run(path: '/usr/share/jmeter/bin/', gui: true)
@@ -38,6 +38,8 @@ module RubyJmeter
38
38
  content_type: 'application/octet-stream'
39
39
  }.merge(params).select { |_, value| !value.nil? }
40
40
 
41
+ logger.debug(post_params) if params[:debug]
42
+
41
43
  response = RestClient.post "#{params[:endpoint] ? params[:endpoint] : 'https://api.flood.io'}/floods?auth_token=#{token}", post_params
42
44
  if response.code == 201
43
45
  logger.info "Flood results at: #{JSON.parse(response)["permalink"]}"
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '3.0.12'
2
+ VERSION = '3.0.13'
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: 3.0.12
4
+ version: 3.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-03 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -62,6 +62,7 @@ files:
62
62
  - examples/basic_auth.rb
63
63
  - examples/browser_headers.rb
64
64
  - examples/composite_graph.rb
65
+ - examples/constant_throughput_timer.rb
65
66
  - examples/dummy_sampler.rb
66
67
  - examples/duration_assertion.rb
67
68
  - examples/etsy_login_browse.rb
@@ -86,6 +87,7 @@ files:
86
87
  - examples/loadosophia.rb
87
88
  - examples/loop_controller.rb
88
89
  - examples/loops_with_counter.rb
90
+ - examples/once_only_controller.rb
89
91
  - examples/perfmon.rb
90
92
  - examples/real_page_objects.rb
91
93
  - examples/real_redis_data_set_with_setup.rb