watir-webdriver-performance 0.1.3 → 0.1.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1,2 +1,2 @@
1
1
  rvm_install_on_use_flag=1
2
- rvm --create use ruby-1.9.2@watir-webdriver-performance
2
+ rvm --create use ruby-1.9.2-p180@watir-webdriver-performance
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.3.1
@@ -13,11 +13,18 @@ module Watir
13
13
  def munge
14
14
  hash = {}
15
15
  @data.each_key do |key|
16
+ if key == '__fxdriver_unwrapped'
17
+ next
18
+ end
16
19
  hash[key.to_sym] = {}
17
20
  @data[key].each do |k,v|
21
+ if k == '__fxdriver_unwrapped'
22
+ next
23
+ end
18
24
  hash[key.to_sym][underscored(k).to_sym] = v
19
25
  end
20
26
  end
27
+
21
28
  hash[:summary] = {}
22
29
  hash[:summary][:redirect] = hash[:timing][:redirect_end] -
23
30
  hash[:timing][:redirect_end] if hash[:timing][:redirect_end] > 0
@@ -28,7 +35,9 @@ module Watir
28
35
  hash[:summary][:tcp_connection] = hash[:timing][:connect_end] -
29
36
  hash[:timing][:connect_start] if hash[:timing][:connect_start] > 0
30
37
  hash[:summary][:tcp_connection_secure] = hash[:timing][:connect_end] -
31
- hash[:timing][:secure_connection_start] if hash[:timing][:secure_connection_start] > 0
38
+ hash[:timing][:secure_connection_start] if
39
+ ((hash[:timing][:secure_connection_start] != nil) and
40
+ (hash[:timing][:secure_connection_start] > 0))
32
41
  hash[:summary][:request] = hash[:timing][:response_start] -
33
42
  hash[:timing][:request_start] if hash[:timing][:request_start] > 0
34
43
  hash[:summary][:response] = hash[:timing][:response_end] -
@@ -0,0 +1,20 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "WatirWebdriverPerformance" do
4
+
5
+ let!(:b) { @b }
6
+
7
+ before(:all) do
8
+ @b ||= Watir::Browser.new :chrome
9
+ end
10
+
11
+ after(:all) do
12
+ @b.close
13
+ end
14
+
15
+ pending "should open and get performance metrics from the FF7 browser" do
16
+ b.goto "google.com"
17
+ b.performance.should be_an_instance_of(OpenStruct)
18
+ end
19
+
20
+ end
@@ -28,12 +28,13 @@ describe "WatirWebdriverPerformance" do
28
28
  b.performance.summary.should include(:dom_processing)
29
29
  end
30
30
 
31
- it "should get summary data from the performance metrics for redirects" do
31
+ pending "should get summary data from the performance metrics for redirects" do
32
32
  b.goto "http://watirgrid.com"
33
33
  b.performance.summary.should include(:redirect)
34
34
  end
35
35
 
36
36
  it "should get summary data from the performance metrics for secure connections" do
37
+ b.goto "https://github.com/90kts/watirgrid"
37
38
  b.performance.summary.should include(:tcp_connection_secure)
38
39
  end
39
40
 
@@ -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.3"
8
+ s.version = "0.1.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Tim Koopmans"]
12
- s.date = %q{2011-08-10}
11
+ s.authors = [%q{Tim Koopmans}]
12
+ s.date = %q{2011-10-03}
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 = [
@@ -31,18 +31,20 @@ Gem::Specification.new do |s|
31
31
  "lib/performance.rb",
32
32
  "lib/watir-webdriver-performance.rb",
33
33
  "spec/spec_helper.rb",
34
+ "spec/watir-webdriver-performance-browser-ff7_spec.rb",
34
35
  "spec/watir-webdriver-performance-non-supported-browser_spec.rb",
35
36
  "spec/watir-webdriver-performance_spec.rb",
36
37
  "watir-webdriver-performance.gemspec"
37
38
  ]
38
39
  s.homepage = %q{http://github.com/90kts/watir-webdriver-performance}
39
- s.licenses = ["MIT"]
40
- s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.6.2}
40
+ s.licenses = [%q{MIT}]
41
+ s.require_paths = [%q{lib}]
42
+ s.rubygems_version = %q{1.8.6}
42
43
  s.summary = %q{A simple helper gem for watir-webdriver performance metrics}
43
44
  s.test_files = [
44
45
  "examples/basic.rb",
45
46
  "spec/spec_helper.rb",
47
+ "spec/watir-webdriver-performance-browser-ff7_spec.rb",
46
48
  "spec/watir-webdriver-performance-non-supported-browser_spec.rb",
47
49
  "spec/watir-webdriver-performance_spec.rb"
48
50
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir-webdriver-performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-10 00:00:00.000000000 +10:00
13
- default_executable:
12
+ date: 2011-10-03 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: watir-webdriver
17
- requirement: &2161638400 !ruby/object:Gem::Requirement
16
+ requirement: &70144565168140 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ! '>='
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2161638400
24
+ version_requirements: *70144565168140
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: rspec
28
- requirement: &2161637920 !ruby/object:Gem::Requirement
27
+ requirement: &70144565169580 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ~>
@@ -33,10 +32,10 @@ dependencies:
33
32
  version: 2.3.0
34
33
  type: :development
35
34
  prerelease: false
36
- version_requirements: *2161637920
35
+ version_requirements: *70144565169580
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: bundler
39
- requirement: &2161637440 !ruby/object:Gem::Requirement
38
+ requirement: &70144565171020 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ~>
@@ -44,10 +43,10 @@ dependencies:
44
43
  version: 1.0.0
45
44
  type: :development
46
45
  prerelease: false
47
- version_requirements: *2161637440
46
+ version_requirements: *70144565171020
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: jeweler
50
- requirement: &2161636960 !ruby/object:Gem::Requirement
49
+ requirement: &70144565185700 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ~>
@@ -55,10 +54,10 @@ dependencies:
55
54
  version: 1.5.2
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *2161636960
57
+ version_requirements: *70144565185700
59
58
  - !ruby/object:Gem::Dependency
60
59
  name: rcov
61
- requirement: &2161636480 !ruby/object:Gem::Requirement
60
+ requirement: &70144565189620 !ruby/object:Gem::Requirement
62
61
  none: false
63
62
  requirements:
64
63
  - - ! '>='
@@ -66,10 +65,10 @@ dependencies:
66
65
  version: '0'
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *2161636480
68
+ version_requirements: *70144565189620
70
69
  - !ruby/object:Gem::Dependency
71
70
  name: zomg
72
- requirement: &2161636000 !ruby/object:Gem::Requirement
71
+ requirement: &70144565191060 !ruby/object:Gem::Requirement
73
72
  none: false
74
73
  requirements:
75
74
  - - ! '>='
@@ -77,10 +76,10 @@ dependencies:
77
76
  version: '0'
78
77
  type: :development
79
78
  prerelease: false
80
- version_requirements: *2161636000
79
+ version_requirements: *70144565191060
81
80
  - !ruby/object:Gem::Dependency
82
81
  name: rdoc
83
- requirement: &2161635520 !ruby/object:Gem::Requirement
82
+ requirement: &70144565289240 !ruby/object:Gem::Requirement
84
83
  none: false
85
84
  requirements:
86
85
  - - ! '>='
@@ -88,10 +87,10 @@ dependencies:
88
87
  version: '0'
89
88
  type: :development
90
89
  prerelease: false
91
- version_requirements: *2161635520
90
+ version_requirements: *70144565289240
92
91
  - !ruby/object:Gem::Dependency
93
92
  name: watir-webdriver
94
- requirement: &2161635040 !ruby/object:Gem::Requirement
93
+ requirement: &70144565397520 !ruby/object:Gem::Requirement
95
94
  none: false
96
95
  requirements:
97
96
  - - ! '>='
@@ -99,10 +98,10 @@ dependencies:
99
98
  version: '0'
100
99
  type: :runtime
101
100
  prerelease: false
102
- version_requirements: *2161635040
101
+ version_requirements: *70144565397520
103
102
  - !ruby/object:Gem::Dependency
104
103
  name: rspec
105
- requirement: &2161634560 !ruby/object:Gem::Requirement
104
+ requirement: &70144565437960 !ruby/object:Gem::Requirement
106
105
  none: false
107
106
  requirements:
108
107
  - - ! '>='
@@ -110,10 +109,10 @@ dependencies:
110
109
  version: '0'
111
110
  type: :development
112
111
  prerelease: false
113
- version_requirements: *2161634560
112
+ version_requirements: *70144565437960
114
113
  - !ruby/object:Gem::Dependency
115
114
  name: zomg
116
- requirement: &2161634080 !ruby/object:Gem::Requirement
115
+ requirement: &70144565514120 !ruby/object:Gem::Requirement
117
116
  none: false
118
117
  requirements:
119
118
  - - ! '>='
@@ -121,10 +120,10 @@ dependencies:
121
120
  version: '0'
122
121
  type: :development
123
122
  prerelease: false
124
- version_requirements: *2161634080
123
+ version_requirements: *70144565514120
125
124
  - !ruby/object:Gem::Dependency
126
125
  name: nokogiri
127
- requirement: &2161633600 !ruby/object:Gem::Requirement
126
+ requirement: &70144565572260 !ruby/object:Gem::Requirement
128
127
  none: false
129
128
  requirements:
130
129
  - - ! '>='
@@ -132,10 +131,10 @@ dependencies:
132
131
  version: '0'
133
132
  type: :development
134
133
  prerelease: false
135
- version_requirements: *2161633600
134
+ version_requirements: *70144565572260
136
135
  - !ruby/object:Gem::Dependency
137
136
  name: active_support
138
- requirement: &2161633120 !ruby/object:Gem::Requirement
137
+ requirement: &70144565638320 !ruby/object:Gem::Requirement
139
138
  none: false
140
139
  requirements:
141
140
  - - ! '>='
@@ -143,7 +142,7 @@ dependencies:
143
142
  version: '0'
144
143
  type: :development
145
144
  prerelease: false
146
- version_requirements: *2161633120
145
+ version_requirements: *70144565638320
147
146
  description: This gem collects and summarises metrics speficied in the W3C Navigation
148
147
  web performance specifications at http://w3c-test.org/webperf/specs/NavigationTiming/
149
148
  when using watir-webdriver and a compatible browser
@@ -168,10 +167,10 @@ files:
168
167
  - lib/performance.rb
169
168
  - lib/watir-webdriver-performance.rb
170
169
  - spec/spec_helper.rb
170
+ - spec/watir-webdriver-performance-browser-ff7_spec.rb
171
171
  - spec/watir-webdriver-performance-non-supported-browser_spec.rb
172
172
  - spec/watir-webdriver-performance_spec.rb
173
173
  - watir-webdriver-performance.gemspec
174
- has_rdoc: true
175
174
  homepage: http://github.com/90kts/watir-webdriver-performance
176
175
  licenses:
177
176
  - MIT
@@ -187,7 +186,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
187
186
  version: '0'
188
187
  segments:
189
188
  - 0
190
- hash: 8569957073962984
189
+ hash: -2409606481077121061
191
190
  required_rubygems_version: !ruby/object:Gem::Requirement
192
191
  none: false
193
192
  requirements:
@@ -196,12 +195,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
195
  version: '0'
197
196
  requirements: []
198
197
  rubyforge_project:
199
- rubygems_version: 1.6.2
198
+ rubygems_version: 1.8.6
200
199
  signing_key:
201
200
  specification_version: 3
202
201
  summary: A simple helper gem for watir-webdriver performance metrics
203
202
  test_files:
204
203
  - examples/basic.rb
205
204
  - spec/spec_helper.rb
205
+ - spec/watir-webdriver-performance-browser-ff7_spec.rb
206
206
  - spec/watir-webdriver-performance-non-supported-browser_spec.rb
207
207
  - spec/watir-webdriver-performance_spec.rb