ruby-jmeter 3.0.2 → 3.0.3

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: b256922f13170dd4efd1c17832d1daaa194e1217
4
- data.tar.gz: 3952525795c9227ca8c0c50c096eeb5fb6b6176f
3
+ metadata.gz: ff5d5d215e53a1db4c2430480adba4904871ae47
4
+ data.tar.gz: ca99d16777a1b607cbeae15fff10e82e86aad7fa
5
5
  SHA512:
6
- metadata.gz: a045e324e74468d232fa3e47ee38864a1a12c4640545b6da2cc9bc5381b1f280c9a067cb52c8ad97fa8e156e6934725f2b0a8bea2d61dabd2abe2fe1f03fe141
7
- data.tar.gz: e645cc3f2e4737adb17b10fff3482376827e2c33b1c0a8fceeb77f2478b2b499bcbe6a88c646d7dc469fdd0ed8c9b4287a9a48ed3e3b56b02bc406eccfd956bb
6
+ metadata.gz: 600af3811d56527c888298c693766a1f885fb4f68c0fc7e27fc0dbb29a2a3689adee0f177fff1b17b27235c4eb3de569e308a4ee290bfa6ad95ee8dbb9227f01
7
+ data.tar.gz: fa93ed79bd35b613e79b47e233bf003550eadd2cfc8ce5a33c2db7fed2e0c14d6b0703d74b2bf0fcc3d03f97a7e646fce89430f92498796b8f1941122018d04c
@@ -5,5 +5,14 @@ test do
5
5
  threads count: 1 do
6
6
  # this will let you sample 1 in every N (e.g. 100) transactions on Flood IO
7
7
  get name: 'Home Page', sample: 100, url: 'http://google.com/'
8
+
9
+ post name: 'create session', url: '/api/oauth', sample: 100,
10
+ fill_in: {
11
+ username: 'Michel Rosen',
12
+ password: 4141414141
13
+ } do
14
+ extract json: '.access_token', name: 'access_token'
15
+ with_xhr
16
+ end
8
17
  end
9
18
  end.run(path: '/usr/share/jmeter/bin/', gui: true)
@@ -20,6 +20,7 @@ module RubyJmeter
20
20
  if params[:sample]
21
21
  transaction name: params[:name], parent: true do
22
22
  loops count: params[:sample].to_i do
23
+ params.delete(:sample)
23
24
  attach_node(http_request_node(params), &block)
24
25
  end
25
26
  end
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '3.0.2'
2
+ VERSION = '3.0.3'
3
3
  end
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: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Koopmans