ruby-jmeter 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/basic_flood.rb +2 -2
- data/lib/ruby-jmeter/dsl.rb +1 -1
- data/lib/ruby-jmeter/version.rb +1 -1
- metadata +6 -3
data/examples/basic_flood.rb
CHANGED
@@ -2,10 +2,10 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
2
2
|
require 'ruby-jmeter'
|
3
3
|
|
4
4
|
test do
|
5
|
-
threads count:
|
5
|
+
threads count: 20 do
|
6
6
|
visit name: 'Home Page', url: 'http://google.com/'
|
7
7
|
end
|
8
|
-
end.flood('
|
8
|
+
end.flood('HzxdagQadz1GkfBnkrmk', {
|
9
9
|
name: 'Demo using flood.io',
|
10
10
|
region: 'us-west-2',
|
11
11
|
endpoint: 'dev.api.flood.io:3000'
|
data/lib/ruby-jmeter/dsl.rb
CHANGED
@@ -390,7 +390,7 @@ module RubyJmeter
|
|
390
390
|
logger.fatal "Sorry there was an error: #{JSON.parse(response)["error_description"]}"
|
391
391
|
end
|
392
392
|
rescue => e
|
393
|
-
logger.fatal "Sorry there was
|
393
|
+
logger.fatal "Sorry there was an error: #{JSON.parse(e.response)["error_description"]}"
|
394
394
|
end
|
395
395
|
end
|
396
396
|
|
data/lib/ruby-jmeter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-jmeter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.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-10-
|
12
|
+
date: 2013-10-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -253,4 +253,7 @@ rubygems_version: 1.8.23
|
|
253
253
|
signing_key:
|
254
254
|
specification_version: 3
|
255
255
|
summary: This is a Ruby based DSL for writing JMeter test plans
|
256
|
-
test_files:
|
256
|
+
test_files:
|
257
|
+
- spec/dsl_spec.rb
|
258
|
+
- spec/spec_helper.rb
|
259
|
+
- spec/stub.rb
|