ruby-jmeter 2.13.3 → 2.13.4

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: 68b5a89a9ad1fd1e5659763d2dfb64066b1e86e1
4
- data.tar.gz: 840ebafe7550c59520181704decd556187339f72
3
+ metadata.gz: 3dda9f4e86561144164191340739f1ec3e28905a
4
+ data.tar.gz: 82074b1073ebbeedb1dd18efede806ab49cf0f03
5
5
  SHA512:
6
- metadata.gz: 5e7339dfe60edf6c580e1d0f118c0c8ddcee21b2ddb449821400dc44c6fa9bcd30746af5179b34f03932ce4f7c329cabf9c5d78298076991916c15107397cc08
7
- data.tar.gz: a75f59422d0d44793e89560b9dd3767610fe468f2a5ca4cf066e795582286508789b923d532bcf096129780bbaa13cd191880c00fbf68495ee8c33b09a72f536
6
+ metadata.gz: a656d71dd7996db38de4d913a737c322996c47fd87c331b67c1d1d5316238e6a55c9b2ff87d373c50791ec3da945d8fa199bbce5f8e0a9087993655a457e1169
7
+ data.tar.gz: 30aa94e631a5c7e23c3baa60e336af53e4c7c13f0dde6befac1a59a96cbd96985e05ccfc5e3f52c24ec16449dbd95971682d94e4726f12237f358e7692ad77bc
@@ -6,6 +6,7 @@ test do
6
6
  visit name: 'Home', url: 'http://altentee.com' do
7
7
  extract regex: "content='(.+?)' name='csrf-token'", name: 'csrf-token'
8
8
  extract regex: 'pattern', name: 'jmeter_variable_regex', variable: 'test'
9
+ extract css: 'span#blog', name: 'blog'
9
10
  end
10
11
  end
11
12
  end.run(path: '/usr/share/jmeter-2.13/bin/', gui: true)
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ require 'ruby-jmeter'
3
+
4
+ test do
5
+ threads count: 100 do
6
+
7
+ response_times_percentiles 'Response Times Percentiles', filename: '/path/to/output', update_at_xpath: [
8
+ { '//value/xml' => 'false' }
9
+ ]
10
+
11
+ end
12
+ end.run(path: '/usr/share/jmeter-2.13/bin/', gui: true)
@@ -353,6 +353,10 @@ module RubyJmeter
353
353
  params[:VAR] = params[:name]
354
354
  params[:JSONPATH] = params[:json]
355
355
  RubyJmeter::Plugins::JsonPathExtractor.new(params)
356
+ elsif params[:css]
357
+ params[:refname] = params[:name]
358
+ params[:expr] = params[:css]
359
+ RubyJmeter::CssjqueryExtractor.new(params)
356
360
  end
357
361
  attach_node(node, &block)
358
362
  end
@@ -42,6 +42,7 @@ module RubyJmeter
42
42
  </kg.apc.jmeter.vizualizers.CorrectedResultCollector>
43
43
  EOF
44
44
  update params
45
+ update_at_xpath params if params.is_a?(Hash) && params[:update_at_xpath]
45
46
  end
46
47
  end
47
48
  end
@@ -1,3 +1,3 @@
1
1
  module RubyJmeter
2
- VERSION = '2.13.3'
2
+ VERSION = '2.13.4'
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.3
4
+ version: 2.13.4
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-05-26 00:00:00.000000000 Z
11
+ date: 2015-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -89,6 +89,7 @@ files:
89
89
  - examples/basic_preprocessor_user_parameters.rb
90
90
  - examples/basic_query_params.rb
91
91
  - examples/basic_response_assertion.rb
92
+ - examples/basic_response_time_percentiles_graph.rb
92
93
  - examples/basic_run.rb
93
94
  - examples/basic_simple_data_writer.rb
94
95
  - examples/basic_stepping_thread_group.rb