watir-webdriver-performance 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +2 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +10 -9
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/watir-webdriver-performance.rb +1 -0
- data/spec/watir-webdriver-performance-non-supported-browser_spec.rb +20 -0
- data/watir-webdriver-performance.gemspec +9 -3
- metadata +128 -164
data/.rvmrc
ADDED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
childprocess (0.1.
|
4
|
+
childprocess (0.1.9)
|
5
5
|
ffi (~> 1.0.6)
|
6
6
|
diff-lcs (1.1.2)
|
7
|
-
ffi (1.0.
|
8
|
-
rake (>= 0.8.7)
|
7
|
+
ffi (1.0.9)
|
9
8
|
git (1.2.5)
|
10
9
|
jeweler (1.5.2)
|
11
10
|
bundler (~> 1.0.0)
|
12
11
|
git (>= 1.2.5)
|
13
12
|
rake
|
14
|
-
json_pure (1.5.
|
15
|
-
rake (0.
|
13
|
+
json_pure (1.5.3)
|
14
|
+
rake (0.9.2)
|
16
15
|
rcov (0.9.9)
|
16
|
+
rdoc (3.8)
|
17
17
|
rspec (2.3.0)
|
18
18
|
rspec-core (~> 2.3.0)
|
19
19
|
rspec-expectations (~> 2.3.0)
|
@@ -28,14 +28,14 @@ GEM
|
|
28
28
|
ruby_parser (2.0.6)
|
29
29
|
sexp_processor (~> 3.0)
|
30
30
|
rubyzip (0.9.4)
|
31
|
-
selenium-webdriver (
|
32
|
-
childprocess (>= 0.1.
|
31
|
+
selenium-webdriver (2.1.0)
|
32
|
+
childprocess (>= 0.1.9)
|
33
33
|
ffi (>= 1.0.7)
|
34
34
|
json_pure
|
35
35
|
rubyzip
|
36
36
|
sexp_processor (3.0.5)
|
37
|
-
watir-webdriver (0.2.
|
38
|
-
selenium-webdriver (>= 0.
|
37
|
+
watir-webdriver (0.2.6)
|
38
|
+
selenium-webdriver (>= 0.2.2)
|
39
39
|
zomg (1.0.2)
|
40
40
|
ruby2ruby
|
41
41
|
|
@@ -46,6 +46,7 @@ DEPENDENCIES
|
|
46
46
|
bundler (~> 1.0.0)
|
47
47
|
jeweler (~> 1.5.2)
|
48
48
|
rcov
|
49
|
+
rdoc
|
49
50
|
rspec (~> 2.3.0)
|
50
51
|
watir-webdriver
|
51
52
|
zomg
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
@@ -77,6 +77,7 @@ module Watir
|
|
77
77
|
class Browser
|
78
78
|
def performance
|
79
79
|
data = driver.execute_script("return window.performance || window.webkitPerformance || window.mozPerformance || window.msPerformance;")
|
80
|
+
raise 'Could not collect performance metrics from your current browser. Please ensure the browser you are using supports collecting performance metrics.' if data.nil?
|
80
81
|
PerformanceHelper.new(data).munge
|
81
82
|
end
|
82
83
|
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
describe "WatirWebdriverPerformance-NonSupportedBrowser" do
|
4
|
+
|
5
|
+
let!(:b) { @b }
|
6
|
+
|
7
|
+
before(:all) do
|
8
|
+
@b ||= Watir::Browser.new :firefox
|
9
|
+
end
|
10
|
+
|
11
|
+
after(:all) do
|
12
|
+
@b.close
|
13
|
+
end
|
14
|
+
|
15
|
+
it "should raise an error when a non supported browser is encountered" do
|
16
|
+
b.goto "google.com"
|
17
|
+
lambda { b.performance }.should raise_error RuntimeError, 'Could not collect performance metrics from your current browser. Please ensure the browser you are using supports collecting performance metrics.'
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{watir-webdriver-performance}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tim Koopmans"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-07-21}
|
13
13
|
s.description = %q{This gem collects and summarises metrics speficied in the W3C Navigation web performance specifications at http://w3c-test.org/webperf/specs/NavigationTiming/ when using watir-webdriver and a compatible browser}
|
14
14
|
s.email = %q{tim.koops@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".rspec",
|
22
|
+
".rvmrc",
|
22
23
|
"Gemfile",
|
23
24
|
"Gemfile.lock",
|
24
25
|
"LICENSE.txt",
|
@@ -30,17 +31,19 @@ Gem::Specification.new do |s|
|
|
30
31
|
"lib/performance.rb",
|
31
32
|
"lib/watir-webdriver-performance.rb",
|
32
33
|
"spec/spec_helper.rb",
|
34
|
+
"spec/watir-webdriver-performance-non-supported-browser_spec.rb",
|
33
35
|
"spec/watir-webdriver-performance_spec.rb",
|
34
36
|
"watir-webdriver-performance.gemspec"
|
35
37
|
]
|
36
38
|
s.homepage = %q{http://github.com/90kts/watir-webdriver-performance}
|
37
39
|
s.licenses = ["MIT"]
|
38
40
|
s.require_paths = ["lib"]
|
39
|
-
s.rubygems_version = %q{1.
|
41
|
+
s.rubygems_version = %q{1.6.2}
|
40
42
|
s.summary = %q{A simple helper gem for watir-webdriver performance metrics}
|
41
43
|
s.test_files = [
|
42
44
|
"examples/basic.rb",
|
43
45
|
"spec/spec_helper.rb",
|
46
|
+
"spec/watir-webdriver-performance-non-supported-browser_spec.rb",
|
44
47
|
"spec/watir-webdriver-performance_spec.rb"
|
45
48
|
]
|
46
49
|
|
@@ -54,6 +57,7 @@ Gem::Specification.new do |s|
|
|
54
57
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
55
58
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
56
59
|
s.add_development_dependency(%q<zomg>, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
57
61
|
s.add_runtime_dependency(%q<watir-webdriver>, [">= 0"])
|
58
62
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
59
63
|
s.add_development_dependency(%q<zomg>, [">= 0"])
|
@@ -66,6 +70,7 @@ Gem::Specification.new do |s|
|
|
66
70
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
67
71
|
s.add_dependency(%q<rcov>, [">= 0"])
|
68
72
|
s.add_dependency(%q<zomg>, [">= 0"])
|
73
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
69
74
|
s.add_dependency(%q<watir-webdriver>, [">= 0"])
|
70
75
|
s.add_dependency(%q<rspec>, [">= 0"])
|
71
76
|
s.add_dependency(%q<zomg>, [">= 0"])
|
@@ -79,6 +84,7 @@ Gem::Specification.new do |s|
|
|
79
84
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
80
85
|
s.add_dependency(%q<rcov>, [">= 0"])
|
81
86
|
s.add_dependency(%q<zomg>, [">= 0"])
|
87
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
82
88
|
s.add_dependency(%q<watir-webdriver>, [">= 0"])
|
83
89
|
s.add_dependency(%q<rspec>, [">= 0"])
|
84
90
|
s.add_dependency(%q<zomg>, [">= 0"])
|
metadata
CHANGED
@@ -1,195 +1,162 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir-webdriver-performance
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 0.1.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Tim Koopmans
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-04-20 00:00:00 +10:00
|
12
|
+
date: 2011-07-21 00:00:00.000000000 +10:00
|
19
13
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
22
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: watir-webdriver
|
17
|
+
requirement: &2158963060 !ruby/object:Gem::Requirement
|
23
18
|
none: false
|
24
|
-
requirements:
|
25
|
-
- -
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
segments:
|
29
|
-
- 0
|
30
|
-
version: "0"
|
31
|
-
prerelease: false
|
32
|
-
requirement: *id001
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
33
23
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2158963060
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: rspec
|
28
|
+
requirement: &2158962580 !ruby/object:Gem::Requirement
|
37
29
|
none: false
|
38
|
-
requirements:
|
30
|
+
requirements:
|
39
31
|
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
hash: 3
|
42
|
-
segments:
|
43
|
-
- 2
|
44
|
-
- 3
|
45
|
-
- 0
|
32
|
+
- !ruby/object:Gem::Version
|
46
33
|
version: 2.3.0
|
47
|
-
prerelease: false
|
48
|
-
requirement: *id002
|
49
34
|
type: :development
|
50
|
-
|
51
|
-
|
52
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *2158962580
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: bundler
|
39
|
+
requirement: &2158962100 !ruby/object:Gem::Requirement
|
53
40
|
none: false
|
54
|
-
requirements:
|
41
|
+
requirements:
|
55
42
|
- - ~>
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
hash: 23
|
58
|
-
segments:
|
59
|
-
- 1
|
60
|
-
- 0
|
61
|
-
- 0
|
43
|
+
- !ruby/object:Gem::Version
|
62
44
|
version: 1.0.0
|
63
|
-
prerelease: false
|
64
|
-
requirement: *id003
|
65
45
|
type: :development
|
66
|
-
|
67
|
-
|
68
|
-
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *2158962100
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: jeweler
|
50
|
+
requirement: &2158978760 !ruby/object:Gem::Requirement
|
69
51
|
none: false
|
70
|
-
requirements:
|
52
|
+
requirements:
|
71
53
|
- - ~>
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
hash: 7
|
74
|
-
segments:
|
75
|
-
- 1
|
76
|
-
- 5
|
77
|
-
- 2
|
54
|
+
- !ruby/object:Gem::Version
|
78
55
|
version: 1.5.2
|
79
|
-
prerelease: false
|
80
|
-
requirement: *id004
|
81
56
|
type: :development
|
82
|
-
name: jeweler
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
version_requirements: &id005 !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
hash: 3
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
version: "0"
|
93
57
|
prerelease: false
|
94
|
-
|
95
|
-
|
58
|
+
version_requirements: *2158978760
|
59
|
+
- !ruby/object:Gem::Dependency
|
96
60
|
name: rcov
|
97
|
-
|
98
|
-
version_requirements: &id006 !ruby/object:Gem::Requirement
|
61
|
+
requirement: &2158978280 !ruby/object:Gem::Requirement
|
99
62
|
none: false
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
segments:
|
105
|
-
- 0
|
106
|
-
version: "0"
|
107
|
-
prerelease: false
|
108
|
-
requirement: *id006
|
63
|
+
requirements:
|
64
|
+
- - ! '>='
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0'
|
109
67
|
type: :development
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *2158978280
|
70
|
+
- !ruby/object:Gem::Dependency
|
110
71
|
name: zomg
|
111
|
-
|
112
|
-
version_requirements: &id007 !ruby/object:Gem::Requirement
|
72
|
+
requirement: &2158977800 !ruby/object:Gem::Requirement
|
113
73
|
none: false
|
114
|
-
requirements:
|
115
|
-
- -
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
|
118
|
-
|
119
|
-
- 0
|
120
|
-
version: "0"
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
type: :development
|
121
79
|
prerelease: false
|
122
|
-
|
123
|
-
|
80
|
+
version_requirements: *2158977800
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: rdoc
|
83
|
+
requirement: &2158977320 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *2158977320
|
92
|
+
- !ruby/object:Gem::Dependency
|
124
93
|
name: watir-webdriver
|
125
|
-
|
126
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
94
|
+
requirement: &2158976840 !ruby/object:Gem::Requirement
|
127
95
|
none: false
|
128
|
-
requirements:
|
129
|
-
- -
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
|
132
|
-
|
133
|
-
- 0
|
134
|
-
version: "0"
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :runtime
|
135
101
|
prerelease: false
|
136
|
-
|
137
|
-
|
102
|
+
version_requirements: *2158976840
|
103
|
+
- !ruby/object:Gem::Dependency
|
138
104
|
name: rspec
|
139
|
-
|
140
|
-
version_requirements: &id009 !ruby/object:Gem::Requirement
|
105
|
+
requirement: &2158976360 !ruby/object:Gem::Requirement
|
141
106
|
none: false
|
142
|
-
requirements:
|
143
|
-
- -
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
|
146
|
-
segments:
|
147
|
-
- 0
|
148
|
-
version: "0"
|
149
|
-
prerelease: false
|
150
|
-
requirement: *id009
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
151
111
|
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *2158976360
|
114
|
+
- !ruby/object:Gem::Dependency
|
152
115
|
name: zomg
|
153
|
-
|
154
|
-
version_requirements: &id010 !ruby/object:Gem::Requirement
|
116
|
+
requirement: &2158975880 !ruby/object:Gem::Requirement
|
155
117
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
|
160
|
-
segments:
|
161
|
-
- 0
|
162
|
-
version: "0"
|
163
|
-
prerelease: false
|
164
|
-
requirement: *id010
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
165
122
|
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *2158975880
|
125
|
+
- !ruby/object:Gem::Dependency
|
166
126
|
name: nokogiri
|
167
|
-
|
168
|
-
version_requirements: &id011 !ruby/object:Gem::Requirement
|
127
|
+
requirement: &2158975400 !ruby/object:Gem::Requirement
|
169
128
|
none: false
|
170
|
-
requirements:
|
171
|
-
- -
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
|
174
|
-
segments:
|
175
|
-
- 0
|
176
|
-
version: "0"
|
177
|
-
prerelease: false
|
178
|
-
requirement: *id011
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
179
133
|
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *2158975400
|
136
|
+
- !ruby/object:Gem::Dependency
|
180
137
|
name: active_support
|
181
|
-
|
138
|
+
requirement: &2158974920 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: *2158974920
|
147
|
+
description: This gem collects and summarises metrics speficied in the W3C Navigation
|
148
|
+
web performance specifications at http://w3c-test.org/webperf/specs/NavigationTiming/
|
149
|
+
when using watir-webdriver and a compatible browser
|
182
150
|
email: tim.koops@gmail.com
|
183
151
|
executables: []
|
184
|
-
|
185
152
|
extensions: []
|
186
|
-
|
187
|
-
extra_rdoc_files:
|
153
|
+
extra_rdoc_files:
|
188
154
|
- LICENSE.txt
|
189
155
|
- README.rdoc
|
190
|
-
files:
|
156
|
+
files:
|
191
157
|
- .document
|
192
158
|
- .rspec
|
159
|
+
- .rvmrc
|
193
160
|
- Gemfile
|
194
161
|
- Gemfile.lock
|
195
162
|
- LICENSE.txt
|
@@ -201,43 +168,40 @@ files:
|
|
201
168
|
- lib/performance.rb
|
202
169
|
- lib/watir-webdriver-performance.rb
|
203
170
|
- spec/spec_helper.rb
|
171
|
+
- spec/watir-webdriver-performance-non-supported-browser_spec.rb
|
204
172
|
- spec/watir-webdriver-performance_spec.rb
|
205
173
|
- watir-webdriver-performance.gemspec
|
206
174
|
has_rdoc: true
|
207
175
|
homepage: http://github.com/90kts/watir-webdriver-performance
|
208
|
-
licenses:
|
176
|
+
licenses:
|
209
177
|
- MIT
|
210
178
|
post_install_message:
|
211
179
|
rdoc_options: []
|
212
|
-
|
213
|
-
require_paths:
|
180
|
+
require_paths:
|
214
181
|
- lib
|
215
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
216
183
|
none: false
|
217
|
-
requirements:
|
218
|
-
- -
|
219
|
-
- !ruby/object:Gem::Version
|
220
|
-
|
221
|
-
segments:
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
segments:
|
222
189
|
- 0
|
223
|
-
|
224
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
190
|
+
hash: 3568797541647563189
|
191
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
225
192
|
none: false
|
226
|
-
requirements:
|
227
|
-
- -
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
|
230
|
-
segments:
|
231
|
-
- 0
|
232
|
-
version: "0"
|
193
|
+
requirements:
|
194
|
+
- - ! '>='
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: '0'
|
233
197
|
requirements: []
|
234
|
-
|
235
198
|
rubyforge_project:
|
236
|
-
rubygems_version: 1.
|
199
|
+
rubygems_version: 1.6.2
|
237
200
|
signing_key:
|
238
201
|
specification_version: 3
|
239
202
|
summary: A simple helper gem for watir-webdriver performance metrics
|
240
|
-
test_files:
|
203
|
+
test_files:
|
241
204
|
- examples/basic.rb
|
242
205
|
- spec/spec_helper.rb
|
206
|
+
- spec/watir-webdriver-performance-non-supported-browser_spec.rb
|
243
207
|
- spec/watir-webdriver-performance_spec.rb
|