ruby-jmeter 2.11.20 → 2.11.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/examples/basic_browser_headers.rb +7 -0
- data/lib/ruby-jmeter/dsl.rb +9 -0
- data/lib/ruby-jmeter/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0117119d62b9cf1fcc94d963cfb5a857d3d57e30
|
4
|
+
data.tar.gz: 80a32010847a48c985738b9f09cef937cea0def7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8fa2f5b80e4284f1993a978b46658946b97901281dc0093f57ecc1ecc298cd31f36c149f3a69a8453ae035a037b5cd5b50f79e3785faab3b3992387a7753b51
|
7
|
+
data.tar.gz: f2d2683d097a4e21c67a9be728bd3dbea3d7c1df46e6e2f595e46b1340a356547b70cb33785a2912347db051e8b933ffc07aa0fc6939ce541520382c72386bd6
|
data/lib/ruby-jmeter/dsl.rb
CHANGED
@@ -58,6 +58,15 @@ module RubyJmeter
|
|
58
58
|
value: RubyJmeter::UserAgent.new(device).string
|
59
59
|
end
|
60
60
|
|
61
|
+
def with_browser(device)
|
62
|
+
http_header_manager name: 'User-Agent',
|
63
|
+
value: RubyJmeter::UserAgent.new(device).string
|
64
|
+
http_header_manager [
|
65
|
+
{ name: 'Accept-Encoding', value: 'gzip,deflate,sdch' },
|
66
|
+
{ name: 'Accept', value: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' }
|
67
|
+
]
|
68
|
+
end
|
69
|
+
|
61
70
|
def http_header_manager(params, &block)
|
62
71
|
if params.is_a?(Hash)
|
63
72
|
params['Header.name'] = params[:name]
|
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.11.
|
4
|
+
version: 2.11.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Koopmans
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- bin/flood
|
59
59
|
- examples/basic_assertion.rb
|
60
60
|
- examples/basic_auth.rb
|
61
|
+
- examples/basic_browser_headers.rb
|
61
62
|
- examples/basic_cache.rb
|
62
63
|
- examples/basic_cookies.rb
|
63
64
|
- examples/basic_counter.rb
|