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 +4 -4
- data/README.md +1 -1
- data/examples/constant_throughput_timer.rb +11 -0
- data/examples/flood_grids.rb +2 -1
- data/examples/http_request_with_query_params.rb +1 -1
- data/examples/once_only_controller.rb +15 -0
- data/lib/ruby-jmeter/extend/misc/flood.rb +2 -0
- data/lib/ruby-jmeter/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7dab8de97a7861526f1546fd51839fee7388fa5
|
4
|
+
data.tar.gz: eebdd9d78ae028b992193a7cc1b768aa9668dd34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1fd9f311fc06997e81d9a66c0d7920507f98321fc3f704b54e1ccb2278b075941a93072c63529302a5213a5e491b010ea15e2f882dfaf705f357adbfbd99126
|
7
|
+
data.tar.gz: 808d38f0e291839a283c874845a19fa12bd0d1e9072f9ca1d3b694aa2f1a565feb5c6bc9d980ae41e85f19ed7f69c85dcc6cc2449c04f59c3ab27f6722a57f9b
|
data/README.md
CHANGED
@@ -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)
|
data/examples/flood_grids.rb
CHANGED
@@ -3,6 +3,6 @@ require 'ruby-jmeter'
|
|
3
3
|
|
4
4
|
test do
|
5
5
|
threads count: 10 do
|
6
|
-
|
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"]}"
|
data/lib/ruby-jmeter/version.rb
CHANGED
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.
|
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-
|
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
|