ruby-jmeter 2.13.0 → 2.13.1

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: 6cfaa73f375f18dcbed1578b3fbe7da0d4272dbf
4
- data.tar.gz: ccb0f5f16e5b9078b188f4759bc4cb7a991a0784
3
+ metadata.gz: d412a492753cc6b51480327a1e7c69fd33bd19fc
4
+ data.tar.gz: da067d543b9f644d94cf3cd68b957d6a186fbeb1
5
5
  SHA512:
6
- metadata.gz: 4b2d0839a1e28d74952b202740f3ce8449ca1c18a2351cf0fd4db7888ff2e0d5714f0109ff8a604909105bddd7c64af69ad2029e00faad1b9794af5cbaea8816
7
- data.tar.gz: 86866132e9fd56e6537ba3278eb2400817903dea4ce360bc302fe04a0aa502ae271fd55440bfeb6884a83db6c330137d305ae1bce6f83a77e6f787fede245bff
6
+ metadata.gz: 764816edfa19feb137ca2fddda025ec27ca892b9d3ad02633a290dedcc830c51e5d7a2e2ba4cc2f669366c1bdf5c81acc94d17f840c1e3a3a93ccb14b915d95a
7
+ data.tar.gz: b3a1a40b826707be2c19f39f6f2c03493262c3e5192fdea757106b0d557cdeabf41b2113098be1a8ad59b0410a7af952f924868394893fc3f4716e2c58349382
data/README.md CHANGED
@@ -116,7 +116,9 @@ end.flood(
116
116
  ENV['FLOOD_API_TOKEN'],
117
117
  name: 'Demo',
118
118
  privacy_flag: 'public',
119
- region: 'ap-southeast-2'
119
+ ## Select a grid or region to distribute this flood to
120
+ # grid: 'pmmi24XaSMnKjGVEtutroQ',
121
+ # region: 'ap-southeast-2'
120
122
  )
121
123
  ```
122
124
 
@@ -126,7 +128,7 @@ This will then provide you with a link to the live test results on Flood IO like
126
128
  I, [2015-02-24T11:15:25.669029 #14010] INFO -- : Flood results at: https://flood.io/AbRWkFl7VODYCkQuy3ffvA
127
129
  ```
128
130
 
129
- Note you will need to provide a `grid` or `region` parameter to the `.flood` method to describe which grid to distribute the flood test to. You can find the Grid ID from the URL of the target grid in your [grids](https://flood.io/dashboard/grids) dashboard e.g.:
131
+ Note you will need to provide a `grid` or `region` parameter to the `.flood` method to describe which grid to distribute the flood test to. Otherwise it will default to the shared grid. You can find the Grid ID from the URL of the target grid in your [grids](https://flood.io/dashboard/grids) dashboard e.g.:
130
132
 
131
133
  ![](https://s3.amazonaws.com/flood-io-support/Flood_IO_2015-02-24_11-43-21.jpg)
132
134
 
@@ -0,0 +1,20 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads count: 1 do
6
+ visit name: 'Home Page', url: 'http://altentee.com/' do
7
+ duration_assertion duration: 10
8
+ end
9
+
10
+ # write to an assertion results listener, errors only
11
+ assertion_results filename: '/var/log/flood/custom/assertion.log',
12
+ error_logging: true,
13
+ update_at_xpath: [
14
+ { '//xml' => 'true' },
15
+ { '//assertions' => 'true' }
16
+ ]
17
+ end
18
+ end.flood(ENV['FLOOD_API_TOKEN'], {
19
+ name: 'Basic Assertion Results'
20
+ })
@@ -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: 10 do
6
+ visit name: 'Google Search', url: 'http://google.com/?hl=en&tbo=d&sclient=psy-ab&q=flood.io&oq=flood.io' do
7
+ duration_assertion duration: 1000
8
+ end
9
+ end
10
+ end.run(path: '/usr/share/jmeter-2.13/bin/', gui: true)
@@ -40,7 +40,13 @@ module RubyJmeter
40
40
 
41
41
  def update_at_xpath(params)
42
42
  params[:update_at_xpath].each do |fragment|
43
- @doc.at_xpath(fragment[:xpath]) << fragment[:value]
43
+ if fragment[:xpath]
44
+ @doc.at_xpath(fragment[:xpath]) << fragment[:value]
45
+ else
46
+ fragment.each do |xpath, value|
47
+ @doc.at_xpath(xpath).content = value
48
+ end
49
+ end
44
50
  end
45
51
  end
46
52
 
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '2.13.0'
2
+ VERSION = '2.13.1'
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.13.0
4
+ version: 2.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2015-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -58,12 +58,14 @@ files:
58
58
  - Rakefile
59
59
  - bin/flood
60
60
  - examples/basic_assertion.rb
61
+ - examples/basic_assertion_results.rb
61
62
  - examples/basic_auth.rb
62
63
  - examples/basic_browser_headers.rb
63
64
  - examples/basic_cache.rb
64
65
  - examples/basic_composite_graph.rb
65
66
  - examples/basic_cookies.rb
66
67
  - examples/basic_counter.rb
68
+ - examples/basic_duration_assertion.rb
67
69
  - examples/basic_extract.rb
68
70
  - examples/basic_flood.rb
69
71
  - examples/basic_flood_real.rb