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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dda9f4e86561144164191340739f1ec3e28905a
|
4
|
+
data.tar.gz: 82074b1073ebbeedb1dd18efede806ab49cf0f03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a656d71dd7996db38de4d913a737c322996c47fd87c331b67c1d1d5316238e6a55c9b2ff87d373c50791ec3da945d8fa199bbce5f8e0a9087993655a457e1169
|
7
|
+
data.tar.gz: 30aa94e631a5c7e23c3baa60e336af53e4c7c13f0dde6befac1a59a96cbd96985e05ccfc5e3f52c24ec16449dbd95971682d94e4726f12237f358e7692ad77bc
|
data/examples/basic_extract.rb
CHANGED
@@ -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)
|
data/lib/ruby-jmeter/dsl.rb
CHANGED
@@ -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
|
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: 2.13.
|
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-
|
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
|