jasmine-selenium-sauce 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. data/.travis.yml +1 -0
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +65 -44
  4. data/jasmine-selenium-sauce.gemspec +5 -4
  5. data/lib/jasmine-selenium-sauce.rb +19 -1
  6. data/lib/jasmine-selenium-sauce/drivers/selenium_browser_driver.rb +0 -2
  7. data/lib/jasmine-selenium-sauce/drivers/selenium_saucelabs_driver.rb +0 -2
  8. data/lib/jasmine-selenium-sauce/local_sauce_config.rb +19 -0
  9. data/lib/jasmine-selenium-sauce/tasks/jasmine_selenium_sauce.rake +16 -0
  10. data/lib/jasmine-selenium-sauce/tasks/rake_browser_runner.rb +1 -1
  11. data/lib/jasmine-selenium-sauce/tasks/rake_local_sauce_runner.rb +22 -0
  12. data/lib/jasmine-selenium-sauce/tasks/rake_sauce_runner.rb +1 -1
  13. data/lib/jasmine-selenium-sauce/version.rb +1 -1
  14. data/lib/localtunnel_patch.rb +28 -0
  15. data/spec/fixtures/config_fixtures.rb +79 -0
  16. data/spec/fixtures/vcr_cassettes/jasmine_browser_success.yml +8 -8
  17. data/spec/fixtures/vcr_cassettes/jasmine_local_saucelabs_failures.yml +352 -0
  18. data/spec/fixtures/vcr_cassettes/jasmine_local_saucelabs_success.yml +340 -0
  19. data/spec/fixtures/vcr_cassettes/jasmine_saucelabs_failures.yml +55 -52
  20. data/spec/fixtures/vcr_cassettes/jasmine_saucelabs_success.yml +43 -41
  21. data/spec/jasmine-selenium-sauce/browser_config_spec.rb +41 -0
  22. data/spec/jasmine-selenium-sauce/drivers/selenium_browser_driver_spec.rb +1 -0
  23. data/spec/jasmine-selenium-sauce/local_sauce_config_spec.rb +61 -0
  24. data/spec/jasmine-selenium-sauce/sauce_config_spec.rb +3 -70
  25. data/spec/jasmine-selenium-sauce/selenium_runner_spec.rb +3 -3
  26. data/spec/jasmine-selenium-sauce_spec.rb +67 -36
  27. data/spec/support/reporter_fake.rb +2 -2
  28. data/spec/vcr_helper.rb +8 -1
  29. metadata +50 -70
  30. data/lib/jasmine-selenium-sauce/drivers.rb +0 -4
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://127.0.0.1:7057/hub/session
5
+ uri: http://127.0.0.1:7058/hub/session
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: ! '{"desiredCapabilities":{"browserName":"firefox","version":"","platform":"ANY","javascriptEnabled":true,"cssSelectorsEnabled":true,"takesScreenshot":true,"nativeEvents":false,"rotatable":false}}'
@@ -37,7 +37,7 @@ http_interactions:
37
37
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
38
38
  - request:
39
39
  method: get
40
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417
40
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417
41
41
  body:
42
42
  encoding: US-ASCII
43
43
  string: ''
@@ -68,7 +68,7 @@ http_interactions:
68
68
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
69
69
  - request:
70
70
  method: post
71
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/url
71
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/url
72
72
  body:
73
73
  encoding: UTF-8
74
74
  string: ! '{"url":"http://localhost:3000/jasmine"}'
@@ -103,7 +103,7 @@ http_interactions:
103
103
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
104
104
  - request:
105
105
  method: post
106
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
106
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
107
107
  body:
108
108
  encoding: UTF-8
109
109
  string: ! '{"script":"return jsApiReporter && jsApiReporter.started","args":[]}'
@@ -138,7 +138,7 @@ http_interactions:
138
138
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
139
139
  - request:
140
140
  method: post
141
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
141
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
142
142
  body:
143
143
  encoding: UTF-8
144
144
  string: ! '{"script":"var result = jsApiReporter.suites(); if (window.Prototype
@@ -181,7 +181,7 @@ http_interactions:
181
181
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
182
182
  - request:
183
183
  method: post
184
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
184
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
185
185
  body:
186
186
  encoding: UTF-8
187
187
  string: ! '{"script":"return jsApiReporter.finished","args":[]}'
@@ -216,7 +216,7 @@ http_interactions:
216
216
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
217
217
  - request:
218
218
  method: post
219
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
219
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417/execute
220
220
  body:
221
221
  encoding: UTF-8
222
222
  string: ! '{"script":"var result = jsApiReporter.resultsForSpecs([0,1,2,3,4]);
@@ -253,7 +253,7 @@ http_interactions:
253
253
  recorded_at: Sat, 29 Sep 2012 21:00:30 GMT
254
254
  - request:
255
255
  method: delete
256
- uri: http://127.0.0.1:7057/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417
256
+ uri: http://127.0.0.1:7058/hub/session/0b88b0cf-2e6c-1d43-809f-00d96f249417
257
257
  body:
258
258
  encoding: US-ASCII
259
259
  string: ''
@@ -0,0 +1,352 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://open.localtunnel.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Mon, 01 Oct 2012 16:15:39 GMT
21
+ content-length:
22
+ - '145'
23
+ content-type:
24
+ - application/json
25
+ server:
26
+ - TwistedWeb/10.1.0
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ! '{"host": "3pts.localtunnel.com", "through_port": 32008, "banner":
30
+ "This localtunnel service is brought to you by Twilio.", "user": "localtunnel"}'
31
+ http_version: '1.1'
32
+ recorded_at: Mon, 01 Oct 2012 16:13:14 GMT
33
+ - request:
34
+ method: post
35
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session
36
+ body:
37
+ encoding: UTF-8
38
+ string: ! '{"desiredCapabilities":{"platform":"VISTA","browserName":"chrome","browser-version":null,"record-screenshots":false,"record-video":false,"idle-timeout":90,"max-duration":180,"name":"Jasmine"}}'
39
+ headers:
40
+ accept:
41
+ - application/json
42
+ content-type:
43
+ - application/json; charset=utf-8
44
+ content-length:
45
+ - '192'
46
+ user-agent:
47
+ - Ruby
48
+ authorization:
49
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
50
+ response:
51
+ status:
52
+ code: 302
53
+ message: Found
54
+ headers:
55
+ transfer-encoding:
56
+ - chunked
57
+ date:
58
+ - Mon, 01 Oct 2012 16:13:24 GMT
59
+ connection:
60
+ - close
61
+ content-type:
62
+ - text/html
63
+ location:
64
+ - http://ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255
65
+ server:
66
+ - monocle/0.17
67
+ body:
68
+ encoding: US-ASCII
69
+ string: ''
70
+ http_version: '1.1'
71
+ recorded_at: Mon, 01 Oct 2012 16:13:31 GMT
72
+ - request:
73
+ method: get
74
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255
75
+ body:
76
+ encoding: US-ASCII
77
+ string: ''
78
+ headers:
79
+ accept:
80
+ - application/json
81
+ user-agent:
82
+ - Ruby
83
+ authorization:
84
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ transfer-encoding:
91
+ - chunked
92
+ date:
93
+ - Mon, 01 Oct 2012 16:13:32 GMT
94
+ connection:
95
+ - close
96
+ content-type:
97
+ - application/json;charset=UTF-8
98
+ server:
99
+ - monocle/0.17
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ! '{"status": 0, "sessionId": "96193b70d28e4dbbb7b1c338bfee6255", "hCode":
103
+ 15202027, "value": {"rotatable": false, "browserConnectionEnabled": false,
104
+ "acceptSslCerts": false, "cssSelectorsEnabled": true, "javascriptEnabled":
105
+ true, "nativeEvents": true, "databaseEnabled": false, "chrome.chromedriverVersion":
106
+ "21.0.1180.4", "locationContextEnabled": false, "platform": "XP", "browserName":
107
+ "chrome", "takesScreenshot": true, "hasMetadata": true, "version": "21.0.1180.83",
108
+ "applicationCacheEnabled": false, "webStorageEnabled": true, "handlesAlerts":
109
+ true, "chrome.nativeEvents": false}, "class": "org.openqa.selenium.remote.Response"}'
110
+ http_version: '1.1'
111
+ recorded_at: Mon, 01 Oct 2012 16:13:31 GMT
112
+ - request:
113
+ method: post
114
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255/url
115
+ body:
116
+ encoding: UTF-8
117
+ string: ! '{"url":"http://3pts.localtunnel.com/jasmine"}'
118
+ headers:
119
+ accept:
120
+ - application/json
121
+ content-type:
122
+ - application/json; charset=utf-8
123
+ content-length:
124
+ - '45'
125
+ user-agent:
126
+ - Ruby
127
+ authorization:
128
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
129
+ response:
130
+ status:
131
+ code: 204
132
+ message: No Content
133
+ headers:
134
+ date:
135
+ - Mon, 01 Oct 2012 16:13:32 GMT
136
+ connection:
137
+ - close
138
+ content-type:
139
+ - text/plain
140
+ server:
141
+ - monocle/0.17
142
+ body:
143
+ encoding: US-ASCII
144
+ string: ''
145
+ http_version: '1.1'
146
+ recorded_at: Mon, 01 Oct 2012 16:14:26 GMT
147
+ - request:
148
+ method: post
149
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255/execute
150
+ body:
151
+ encoding: UTF-8
152
+ string: ! '{"script":"return jsApiReporter && jsApiReporter.started","args":[]}'
153
+ headers:
154
+ accept:
155
+ - application/json
156
+ content-type:
157
+ - application/json; charset=utf-8
158
+ content-length:
159
+ - '68'
160
+ user-agent:
161
+ - Ruby
162
+ authorization:
163
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
164
+ response:
165
+ status:
166
+ code: 200
167
+ message: OK
168
+ headers:
169
+ transfer-encoding:
170
+ - chunked
171
+ date:
172
+ - Mon, 01 Oct 2012 16:14:26 GMT
173
+ connection:
174
+ - close
175
+ content-type:
176
+ - application/json;charset=UTF-8
177
+ server:
178
+ - monocle/0.17
179
+ body:
180
+ encoding: US-ASCII
181
+ string: ! '{"status": 0, "sessionId": "96193b70d28e4dbbb7b1c338bfee6255", "hCode":
182
+ 26030331, "class": "org.openqa.selenium.remote.Response", "value": true}'
183
+ http_version: '1.1'
184
+ recorded_at: Mon, 01 Oct 2012 16:14:26 GMT
185
+ - request:
186
+ method: post
187
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255/execute
188
+ body:
189
+ encoding: UTF-8
190
+ string: ! '{"script":"var result = jsApiReporter.suites(); if (window.Prototype
191
+ && Object.toJSON) { return Object.toJSON(result) } else { return JSON.stringify(result)
192
+ }","args":[]}'
193
+ headers:
194
+ accept:
195
+ - application/json
196
+ content-type:
197
+ - application/json; charset=utf-8
198
+ content-length:
199
+ - '170'
200
+ user-agent:
201
+ - Ruby
202
+ authorization:
203
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
204
+ response:
205
+ status:
206
+ code: 200
207
+ message: OK
208
+ headers:
209
+ transfer-encoding:
210
+ - chunked
211
+ date:
212
+ - Mon, 01 Oct 2012 16:14:27 GMT
213
+ connection:
214
+ - close
215
+ content-type:
216
+ - application/json;charset=UTF-8
217
+ server:
218
+ - monocle/0.17
219
+ body:
220
+ encoding: US-ASCII
221
+ string: ! '{"status": 0, "sessionId": "96193b70d28e4dbbb7b1c338bfee6255", "hCode":
222
+ 27635615, "class": "org.openqa.selenium.remote.Response", "value": "[{\"id\":0,\"name\":\"Document
223
+ Model\",\"type\":\"suite\",\"children\":[{\"id\":1,\"name\":\"URL\",\"type\":\"suite\",\"children\":[{\"id\":0,\"name\":\"when
224
+ new\",\"type\":\"spec\",\"children\":[]},{\"id\":1,\"name\":\"when is not
225
+ new\",\"type\":\"spec\",\"children\":[]}]}]},{\"id\":2,\"name\":\"Documents
226
+ Router\",\"type\":\"suite\",\"children\":[{\"id\":3,\"name\":\"routes\",\"type\":\"suite\",\"children\":[{\"id\":2,\"name\":\"fires
227
+ index on blank hash\",\"type\":\"spec\",\"children\":[]},{\"id\":3,\"name\":\"fires
228
+ new\",\"type\":\"spec\",\"children\":[]},{\"id\":4,\"name\":\"fires edit\",\"type\":\"spec\",\"children\":[]}]}]}]"}'
229
+ http_version: '1.1'
230
+ recorded_at: Mon, 01 Oct 2012 16:14:26 GMT
231
+ - request:
232
+ method: post
233
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255/execute
234
+ body:
235
+ encoding: UTF-8
236
+ string: ! '{"script":"return jsApiReporter.finished","args":[]}'
237
+ headers:
238
+ accept:
239
+ - application/json
240
+ content-type:
241
+ - application/json; charset=utf-8
242
+ content-length:
243
+ - '52'
244
+ user-agent:
245
+ - Ruby
246
+ authorization:
247
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
248
+ response:
249
+ status:
250
+ code: 200
251
+ message: OK
252
+ headers:
253
+ transfer-encoding:
254
+ - chunked
255
+ date:
256
+ - Mon, 01 Oct 2012 16:14:27 GMT
257
+ connection:
258
+ - close
259
+ content-type:
260
+ - application/json;charset=UTF-8
261
+ server:
262
+ - monocle/0.17
263
+ body:
264
+ encoding: US-ASCII
265
+ string: ! '{"status": 0, "sessionId": "96193b70d28e4dbbb7b1c338bfee6255", "hCode":
266
+ 26156009, "class": "org.openqa.selenium.remote.Response", "value": true}'
267
+ http_version: '1.1'
268
+ recorded_at: Mon, 01 Oct 2012 16:14:26 GMT
269
+ - request:
270
+ method: post
271
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255/execute
272
+ body:
273
+ encoding: UTF-8
274
+ string: ! '{"script":"var result = jsApiReporter.resultsForSpecs([0,1,2,3,4]);
275
+ if (window.Prototype && Object.toJSON) { return Object.toJSON(result) } else
276
+ { return JSON.stringify(result) }","args":[]}'
277
+ headers:
278
+ accept:
279
+ - application/json
280
+ content-type:
281
+ - application/json; charset=utf-8
282
+ content-length:
283
+ - '190'
284
+ user-agent:
285
+ - Ruby
286
+ authorization:
287
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
288
+ response:
289
+ status:
290
+ code: 200
291
+ message: OK
292
+ headers:
293
+ transfer-encoding:
294
+ - chunked
295
+ date:
296
+ - Mon, 01 Oct 2012 16:14:27 GMT
297
+ connection:
298
+ - close
299
+ content-type:
300
+ - application/json;charset=UTF-8
301
+ server:
302
+ - monocle/0.17
303
+ body:
304
+ encoding: US-ASCII
305
+ string: ! '{"status": 0, "sessionId": "96193b70d28e4dbbb7b1c338bfee6255", "hCode":
306
+ 26665270, "class": "org.openqa.selenium.remote.Response", "value": "{\"0\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"1\":{\"result\":\"failed\",\"messages\":[{\"passed\":false,\"type\":\"expect\",\"message\":\"Expected
307
+ ''documents/1'' to equal ''documents/2''.\",\"trace\":{\"stack\":\"Error:
308
+ Expected ''documents/1'' to equal ''documents/2''.\\n at new jasmine.ExpectationResult
309
+ (http://3pts.localtunnel.com/assets/jasmine.js?body=1:102:32)\\n at null.toEqual
310
+ (http://3pts.localtunnel.com/assets/jasmine.js?body=1:1166:29)\\n at null.<anonymous>
311
+ (http://3pts.localtunnel.com/assets/app/models/document_spec.js?body=1:13:43)\\n at
312
+ jasmine.Block.execute (http://3pts.localtunnel.com/assets/jasmine.js?body=1:996:15)\\n at
313
+ jasmine.Queue.next_ (http://3pts.localtunnel.com/assets/jasmine.js?body=1:1785:31)\\n at
314
+ jasmine.Queue.start (http://3pts.localtunnel.com/assets/jasmine.js?body=1:1738:8)\\n at
315
+ jasmine.Spec.execute (http://3pts.localtunnel.com/assets/jasmine.js?body=1:2065:14)\\n at
316
+ jasmine.Queue.next_ (http://3pts.localtunnel.com/assets/jasmine.js?body=1:1785:31)\\n at
317
+ onComplete (http://3pts.localtunnel.com/assets/jasmine.js?body=1:1781:18)\\n at
318
+ jasmine.Spec.finish (http://3pts.localtunnel.com/assets/jasmine.js?body=1:2039:5)\"}}]},\"2\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"3\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"4\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}},{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]}}"}'
319
+ http_version: '1.1'
320
+ recorded_at: Mon, 01 Oct 2012 16:14:26 GMT
321
+ - request:
322
+ method: delete
323
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/96193b70d28e4dbbb7b1c338bfee6255
324
+ body:
325
+ encoding: US-ASCII
326
+ string: ''
327
+ headers:
328
+ accept:
329
+ - application/json
330
+ user-agent:
331
+ - Ruby
332
+ authorization:
333
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
334
+ response:
335
+ status:
336
+ code: 204
337
+ message: No Content
338
+ headers:
339
+ date:
340
+ - Mon, 01 Oct 2012 16:14:27 GMT
341
+ connection:
342
+ - close
343
+ content-type:
344
+ - text/plain
345
+ server:
346
+ - monocle/0.17
347
+ body:
348
+ encoding: US-ASCII
349
+ string: ''
350
+ http_version: '1.1'
351
+ recorded_at: Mon, 01 Oct 2012 16:14:28 GMT
352
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,340 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://open.localtunnel.com/
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Mon, 01 Oct 2012 16:10:23 GMT
21
+ content-length:
22
+ - '145'
23
+ content-type:
24
+ - application/json
25
+ server:
26
+ - TwistedWeb/10.1.0
27
+ body:
28
+ encoding: US-ASCII
29
+ string: ! '{"host": "3pts.localtunnel.com", "through_port": 32009, "banner":
30
+ "This localtunnel service is brought to you by Twilio.", "user": "localtunnel"}'
31
+ http_version: '1.1'
32
+ recorded_at: Mon, 01 Oct 2012 16:07:57 GMT
33
+ - request:
34
+ method: post
35
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session
36
+ body:
37
+ encoding: UTF-8
38
+ string: ! '{"desiredCapabilities":{"platform":"VISTA","browserName":"chrome","browser-version":null,"record-screenshots":false,"record-video":false,"idle-timeout":90,"max-duration":180,"name":"Jasmine"}}'
39
+ headers:
40
+ accept:
41
+ - application/json
42
+ content-type:
43
+ - application/json; charset=utf-8
44
+ content-length:
45
+ - '192'
46
+ user-agent:
47
+ - Ruby
48
+ authorization:
49
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
50
+ response:
51
+ status:
52
+ code: 302
53
+ message: Found
54
+ headers:
55
+ transfer-encoding:
56
+ - chunked
57
+ date:
58
+ - Mon, 01 Oct 2012 16:08:19 GMT
59
+ connection:
60
+ - close
61
+ content-type:
62
+ - text/html
63
+ location:
64
+ - http://ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772
65
+ server:
66
+ - monocle/0.17
67
+ body:
68
+ encoding: US-ASCII
69
+ string: ''
70
+ http_version: '1.1'
71
+ recorded_at: Mon, 01 Oct 2012 16:08:25 GMT
72
+ - request:
73
+ method: get
74
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772
75
+ body:
76
+ encoding: US-ASCII
77
+ string: ''
78
+ headers:
79
+ accept:
80
+ - application/json
81
+ user-agent:
82
+ - Ruby
83
+ authorization:
84
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
85
+ response:
86
+ status:
87
+ code: 200
88
+ message: OK
89
+ headers:
90
+ transfer-encoding:
91
+ - chunked
92
+ date:
93
+ - Mon, 01 Oct 2012 16:08:25 GMT
94
+ connection:
95
+ - close
96
+ content-type:
97
+ - application/json;charset=UTF-8
98
+ server:
99
+ - monocle/0.17
100
+ body:
101
+ encoding: US-ASCII
102
+ string: ! '{"status": 0, "sessionId": "be7b2df1123741d2afe6e2e39c34c772", "hCode":
103
+ 25537913, "value": {"rotatable": false, "browserConnectionEnabled": false,
104
+ "acceptSslCerts": false, "cssSelectorsEnabled": true, "javascriptEnabled":
105
+ true, "nativeEvents": true, "databaseEnabled": false, "chrome.chromedriverVersion":
106
+ "21.0.1180.4", "locationContextEnabled": false, "platform": "XP", "browserName":
107
+ "chrome", "takesScreenshot": true, "hasMetadata": true, "version": "21.0.1180.83",
108
+ "applicationCacheEnabled": false, "webStorageEnabled": true, "handlesAlerts":
109
+ true, "chrome.nativeEvents": false}, "class": "org.openqa.selenium.remote.Response"}'
110
+ http_version: '1.1'
111
+ recorded_at: Mon, 01 Oct 2012 16:08:25 GMT
112
+ - request:
113
+ method: post
114
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772/url
115
+ body:
116
+ encoding: UTF-8
117
+ string: ! '{"url":"http://3pts.localtunnel.com/jasmine"}'
118
+ headers:
119
+ accept:
120
+ - application/json
121
+ content-type:
122
+ - application/json; charset=utf-8
123
+ content-length:
124
+ - '45'
125
+ user-agent:
126
+ - Ruby
127
+ authorization:
128
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
129
+ response:
130
+ status:
131
+ code: 204
132
+ message: No Content
133
+ headers:
134
+ date:
135
+ - Mon, 01 Oct 2012 16:08:25 GMT
136
+ connection:
137
+ - close
138
+ content-type:
139
+ - text/plain
140
+ server:
141
+ - monocle/0.17
142
+ body:
143
+ encoding: US-ASCII
144
+ string: ''
145
+ http_version: '1.1'
146
+ recorded_at: Mon, 01 Oct 2012 16:08:59 GMT
147
+ - request:
148
+ method: post
149
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772/execute
150
+ body:
151
+ encoding: UTF-8
152
+ string: ! '{"script":"return jsApiReporter && jsApiReporter.started","args":[]}'
153
+ headers:
154
+ accept:
155
+ - application/json
156
+ content-type:
157
+ - application/json; charset=utf-8
158
+ content-length:
159
+ - '68'
160
+ user-agent:
161
+ - Ruby
162
+ authorization:
163
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
164
+ response:
165
+ status:
166
+ code: 200
167
+ message: OK
168
+ headers:
169
+ transfer-encoding:
170
+ - chunked
171
+ date:
172
+ - Mon, 01 Oct 2012 16:09:00 GMT
173
+ connection:
174
+ - close
175
+ content-type:
176
+ - application/json;charset=UTF-8
177
+ server:
178
+ - monocle/0.17
179
+ body:
180
+ encoding: US-ASCII
181
+ string: ! '{"status": 0, "sessionId": "be7b2df1123741d2afe6e2e39c34c772", "hCode":
182
+ 2416253, "class": "org.openqa.selenium.remote.Response", "value": true}'
183
+ http_version: '1.1'
184
+ recorded_at: Mon, 01 Oct 2012 16:08:59 GMT
185
+ - request:
186
+ method: post
187
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772/execute
188
+ body:
189
+ encoding: UTF-8
190
+ string: ! '{"script":"var result = jsApiReporter.suites(); if (window.Prototype
191
+ && Object.toJSON) { return Object.toJSON(result) } else { return JSON.stringify(result)
192
+ }","args":[]}'
193
+ headers:
194
+ accept:
195
+ - application/json
196
+ content-type:
197
+ - application/json; charset=utf-8
198
+ content-length:
199
+ - '170'
200
+ user-agent:
201
+ - Ruby
202
+ authorization:
203
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
204
+ response:
205
+ status:
206
+ code: 200
207
+ message: OK
208
+ headers:
209
+ transfer-encoding:
210
+ - chunked
211
+ date:
212
+ - Mon, 01 Oct 2012 16:09:00 GMT
213
+ connection:
214
+ - close
215
+ content-type:
216
+ - application/json;charset=UTF-8
217
+ server:
218
+ - monocle/0.17
219
+ body:
220
+ encoding: US-ASCII
221
+ string: ! '{"status": 0, "sessionId": "be7b2df1123741d2afe6e2e39c34c772", "hCode":
222
+ 2159159, "class": "org.openqa.selenium.remote.Response", "value": "[{\"id\":0,\"name\":\"Document
223
+ Model\",\"type\":\"suite\",\"children\":[{\"id\":1,\"name\":\"URL\",\"type\":\"suite\",\"children\":[{\"id\":0,\"name\":\"when
224
+ new\",\"type\":\"spec\",\"children\":[]},{\"id\":1,\"name\":\"when is not
225
+ new\",\"type\":\"spec\",\"children\":[]}]}]},{\"id\":2,\"name\":\"Documents
226
+ Router\",\"type\":\"suite\",\"children\":[{\"id\":3,\"name\":\"routes\",\"type\":\"suite\",\"children\":[{\"id\":2,\"name\":\"fires
227
+ index on blank hash\",\"type\":\"spec\",\"children\":[]},{\"id\":3,\"name\":\"fires
228
+ new\",\"type\":\"spec\",\"children\":[]},{\"id\":4,\"name\":\"fires edit\",\"type\":\"spec\",\"children\":[]}]}]}]"}'
229
+ http_version: '1.1'
230
+ recorded_at: Mon, 01 Oct 2012 16:08:59 GMT
231
+ - request:
232
+ method: post
233
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772/execute
234
+ body:
235
+ encoding: UTF-8
236
+ string: ! '{"script":"return jsApiReporter.finished","args":[]}'
237
+ headers:
238
+ accept:
239
+ - application/json
240
+ content-type:
241
+ - application/json; charset=utf-8
242
+ content-length:
243
+ - '52'
244
+ user-agent:
245
+ - Ruby
246
+ authorization:
247
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
248
+ response:
249
+ status:
250
+ code: 200
251
+ message: OK
252
+ headers:
253
+ transfer-encoding:
254
+ - chunked
255
+ date:
256
+ - Mon, 01 Oct 2012 16:09:00 GMT
257
+ connection:
258
+ - close
259
+ content-type:
260
+ - application/json;charset=UTF-8
261
+ server:
262
+ - monocle/0.17
263
+ body:
264
+ encoding: US-ASCII
265
+ string: ! '{"status": 0, "sessionId": "be7b2df1123741d2afe6e2e39c34c772", "hCode":
266
+ 22447700, "class": "org.openqa.selenium.remote.Response", "value": true}'
267
+ http_version: '1.1'
268
+ recorded_at: Mon, 01 Oct 2012 16:08:59 GMT
269
+ - request:
270
+ method: post
271
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772/execute
272
+ body:
273
+ encoding: UTF-8
274
+ string: ! '{"script":"var result = jsApiReporter.resultsForSpecs([0,1,2,3,4]);
275
+ if (window.Prototype && Object.toJSON) { return Object.toJSON(result) } else
276
+ { return JSON.stringify(result) }","args":[]}'
277
+ headers:
278
+ accept:
279
+ - application/json
280
+ content-type:
281
+ - application/json; charset=utf-8
282
+ content-length:
283
+ - '190'
284
+ user-agent:
285
+ - Ruby
286
+ authorization:
287
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
288
+ response:
289
+ status:
290
+ code: 200
291
+ message: OK
292
+ headers:
293
+ transfer-encoding:
294
+ - chunked
295
+ date:
296
+ - Mon, 01 Oct 2012 16:09:00 GMT
297
+ connection:
298
+ - close
299
+ content-type:
300
+ - application/json;charset=UTF-8
301
+ server:
302
+ - monocle/0.17
303
+ body:
304
+ encoding: US-ASCII
305
+ string: ! '{"status": 0, "sessionId": "be7b2df1123741d2afe6e2e39c34c772", "hCode":
306
+ 25232872, "class": "org.openqa.selenium.remote.Response", "value": "{\"0\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"1\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"2\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"3\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]},\"4\":{\"result\":\"passed\",\"messages\":[{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}},{\"passed\":true,\"type\":\"expect\",\"message\":\"Passed.\",\"trace\":{}}]}}"}'
307
+ http_version: '1.1'
308
+ recorded_at: Mon, 01 Oct 2012 16:08:59 GMT
309
+ - request:
310
+ method: delete
311
+ uri: http://username:password@ondemand.saucelabs.com/wd/hub/session/be7b2df1123741d2afe6e2e39c34c772
312
+ body:
313
+ encoding: US-ASCII
314
+ string: ''
315
+ headers:
316
+ accept:
317
+ - application/json
318
+ user-agent:
319
+ - Ruby
320
+ authorization:
321
+ - Basic cGlwZXdpc2U6ZTA3MDkxYzUtZTFhYy00NzRlLWEzZTEtZGRkYjBiOTRmY2Y3
322
+ response:
323
+ status:
324
+ code: 204
325
+ message: No Content
326
+ headers:
327
+ date:
328
+ - Mon, 01 Oct 2012 16:09:00 GMT
329
+ connection:
330
+ - close
331
+ content-type:
332
+ - text/plain
333
+ server:
334
+ - monocle/0.17
335
+ body:
336
+ encoding: US-ASCII
337
+ string: ''
338
+ http_version: '1.1'
339
+ recorded_at: Mon, 01 Oct 2012 16:09:01 GMT
340
+ recorded_with: VCR 2.2.5