-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreveal.html
646 lines (490 loc) · 25 KB
/
reveal.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Selenium Conf 2013</title>
<meta name="description" content="Selenium Conf 2013">
<meta name="author" content="Fabio Kenji Kume">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/selenium.css">
<link rel="stylesheet" href="css/jquery-photowall.css">
<link rel="stylesheet" href="lib/css/zenburn.css">
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section id="title" data-background="images/boston_tea_party.jpg">
<h1>Selenium Conf<span>2013</span></h1>
</section>
<section id="about-me">
<img src="images/smile.png"></img>
<ul>
<li>Fabio Kenji </li>
<li>PagSeguro <span class="pagseguro-team">Manchester</span></li>
<li class="twitter">
@seibzhen
</li>
<li>github.com/<span class="github">fkenji</span></li>
</ul>
</section>
<section id="about-us">
<img src="images/manchester-united-logo.png"/>
<p> <span class="green_1"> ~500 </span> testes </p>
<p> Selenium <span class="orange">Grid</span> </p>
<p> <span class="red_1">3</span> nós </p>
</section>
<section id="jenkins" data-background="images/jenkins-bg.png">
<img src="images/jenkins.png" />
</section>
<section class="boston" id="boston-wall" data-background="#3A85D6">
<h1>Boston</h1>
<div id="gallery">
<div class="body">
</div>
</div>
</section>
<section class="boston" id="boston-strong" data-background="#3A85D6" data-transition="none">
<h1>Boston</h1>
<img src="images/BostonStrongRibbon.png"> </img>
</section>
<section class="dark-slide" id="the-event" data-background="#5E525C">
<h1>O Evento</h1>
<img class="fragment" src="images/sauce-labs-logo.png"> </img>
</section>
<section class="dark-slide" id="agenda" data-background="#5E525C">
<h1>Tópicos</h1>
</section>
<section class="dark-slide" data-background="#5E525C">
<section id="como-estao">
<h1>Como estão usando o Selenium?</h1>
<p>. . . . . . . </p>
<div class="companies">
<img src="images/salesforce.png"></img>
<img src="images/cars-logo.png"></img>
<img src="images/fb.png"></img>
<img src="images/groupon.png"></img>
</div>
</section>
<section id="ferramentas">
<h1>Ferramentas</h1>
<ul>
<li>appium
<li>selenium builder
<li>marionette
<li>elemental-selenium
</ul>
</section>
<section id="inovacoes">
<h1>Inovações</h1>
<ul>
<li> Testes de UX / Layout
<li> Continuous Improvement
<li> State of the Union / Selenium 3
</ul>
</section>
</section>
<section class="salesforce" id="salesforce-title" data-background="#EC4401">
<div>
<img src="images/salesforce-logo-big.png" />
</div>
</section>
<section class="salesforce" id="salesforce-1" data-background="#EC4401">
<p>
<span class="huge blockish">1M</span> de testes selenium rodados ... por <span class="dark-highlight-bg">dia</span>
</p>
<p>
<span class="huge blockish">75K</span> testes (ಠ_ಠ)
</p>
</section>
<section class="salesforce" id="salesforce-autotest" data-background="#EC4401">
<h1>
autotest
</h1>
<ul>
<li>issue tracker
<li>detector de testes instáveis
</ul>
</section>
<section id="salesforce-commit" data-background="#5E525C">
<p><span class="dark-highlight-bg huge blockish">99%</span> dos testes devem passar</p>
</section>
<section class="salesforce" id="salesforce-grid" data-background="#EC4401">
<p>
<quote>"Não utilizamos o selenium-grid"</quote>
</p>
<div class="fragment">
<img src="images/cloud.png"/>
<h1>
Cloud
</h1>
<ul>
<li>VMWare
<li>OpenStack
<li>EC2
<li>SauceLabs
</ul>
</div>
</section>
<section id="salesforce-why" data-background="#EC4401">
<img src="images/huh.png"/>
<ul>
<li> Degradação das máquinas</li>
<li> Poder computacional</li>
</ul>
</section>
<section class="cars" id="cars-title" data-background="#4DD62B">
<img src="images/cars-logo-big.png" />
</section>
<section class="cars" id="cars-stack" data-background="#4DD62B">
<p> <span id="manual">Manuais</span> -> <span id="auto">Automatizados</span></p>
<p> <span class="huge blockish">3000</span>testes por build</p>
</section>
<section data-background="#4DD62B">
<section class="cars" id="cars-releases" data-background="#4DD62B">
<div id="bottom-shoryuken" > <span id="low-blow"> 40</span> releases / ano </div>
<div class="fragment">
<img src="images/ken_shoryuken_fierce.gif" />
<div id="top-shoryuken" >
<span id="high-blow">
700
</span> releases
/ ano
</div>
</div>
</section>
<section class="cars" id="cars-releases-per-day" data-background="#4DD62B"> <p> <span class="focus">3</span> releases por dia</p>
<p> <span class="focus">Continuous</span> delivery</p>
</section>
<section class="cars" id="cars-ps-comparison" data-background="#fff">
<img src="images/cifrao.png">
<div id="releases-ps">
<span id="releases-ps-number">
50
</span>
releases por ano
</div>
</section>
</section>
<section class="facebook" id="facebook-title" data-background="#3A85D6">
<h1> facebook </h1>
<img src="images/fast_break.png" />
</section>
<section class="facebook" id="facebook-code-change" data-background="#3A85D6">
<h1> Ciclo </h1>
<img src="images/facebook-cycle-1.png" />
</section>
<section class="facebook" id="facebook-trunk-cycle" data-background="#3A85D6">
<img src="images/timeline.png" />
</section>
<section class="facebook" id="facebook-test-prod" data-background="#3A85D6">
<img src="images/test_prod.jpg"/>
</section>
<section class="facebook" id="facebook-test-prod-no" data-background="#3A85D6"
data-transition="none">
<img src="images/no.jpg"/>
</section>
<section class="facebook" id="facebook-why-it-works" data-background="#3A85D6">
<h1> E porque funciona? </h1>
</section>
<section class="facebook" id="facebook-responsibility" data-background="#3A85D6">
<img src="images/facebook-cycle-2.png" />
</section>
<section class="facebook" id="facebook-optin" data-background="#fff">
<img src="images/Ical-icon.png" />
<p> <span class="huge blockish">Opt-in </span> releases diários </p>
</section>
<section class="facebook" id="facebook-phabricator" data-background="#fff">
<img src="images/Phabricator.png" />
<a href="http://phabricator.org/">http://phabricator.org/</a>
</section>
<section class="facebook" id="facebook-test-suite" data-background="#fff">
<ul>
<li> <span class="focus">velocidade </span> > cobertura
<li> testes mais <span class="focus">específicos</span>
</ul>
</section>
<section class="facebook" id="facebook-more-about-tests" data-background="#fff">
<ul>
<li><span class="focus">24</span> horas para testes instáveis
<li><span class="focus">Mesma</span> linguagem de programação nos testes
</ul>
</section>
<section class="groupon" id="groupon-title" data-background="#5E525C">
<img src="images/groupon-logo-big.png"></img>
<p> "Stability is a journey, not a destination" </p>
</section>
<section class="groupon" id="groupon-jquery" data-background="#5E525C">
<h3>Dicas</h3>
<pre>
<code class="javascript">
evaluate_script("jQuery.active") == 0
evaluate_script('$(":animated").length()') == 0
</code>
</pre>
</section>
<section class="groupon" id="groupon-iedriver" data-background="#5E525C">
<h5><span class="focus-ie">IE</span>Driver</h5>
<ul>
<li>Remote Desktop vs VNC
<li>Não mova o mouse durante execução!
</ul>
</section>
<section class="groupon" id="groupon-tests" data-background="#5E525C">
<ul>
<li>Feedback rápido: <span class="focus">10</span> minutos
<li>Notificação <span class="focus">antecipada</span> de erros
</ul>
</section>
<section class="groupon" id="groupon-tests-focused" data-background="#5E525C">
<h5>Testes mais focados</h5>
<ul>
<li><span class="focus">Precisa</span> ser no selenium?
<li>Não poderia ser no <span class="focus">Jasmine</span>?
<li>Testes <span class="focus">unitários</span> na aplicação?
</ul>
<aside class="notes">
4000 testes javascript
</aside>
</section>
<section class="groupon" id="groupon-tests-flakey" data-background="#5E525C">
<h5>Testes instáveis?</h5>
<ul>
<li>rodar <span class="focus">5000</span> vezes em <span class="focus">10</span> minutos, em ordem <span class="focus">randômica</span>
</ul>
</section>
<section class="groupon" id="groupon-chef-puppet" data-background="#5E525C">
<h5> Ambiente padronizado</h5>
<p> Chef</p>
<p> Puppet</p>
</section>
<section class="groupon" id="groupon-extras" data-background="#5E525C">
<h5> Selenium-grid-extras </h5>
<ul>
<li> Matar processos do chromedriver
<li> Screenshot do sistema operacional
<li> Gravar video / artefato Jenkins
</ul>
<p>
<a href="https://github.com/groupon/Selenium-Grid-Extras">https://github.com/groupon/Selenium-Grid-Extras</a>
</p>
</section>
<section class="learned" id="lessons-learned" data-background="images/blackboard.jpg">
<h3> Lessons learned</h3>
<ul>
<li> Velocidade > cobertura
<li> Testes mais focados
<li> Atencao aos testes instaveis
</ul>
</section>
<section class="tools">
<h3>Ferramentas</h3>
</section>
<section class="tools" id="appium">
<img src="images/appium.png"/>
<p>
<a href="http://appium.io">http://appium.io</a>
</p>
</section>
<section class="tools" id="selenium-builder">
<img src="images/selenium-builder.png"/>
<a href="http://sebuilder.github.io/se-builder/">http://sebuilder.github.io/se-builder/</a>
</section>
<section class="tools" data-background="images/firefox-bg.png">
<h3>Marionette</h3>
<ul>
<li> Firefox<span class="focus">OS</span>
<li> <span class="focus">não</span> implementa todo o webdriver API
</ul>
</section>
<section class="tools">
<img src="images/elemental-selenium.png" />
<a href="http://elemental-selenium.com/">http://elemental-selenium.com/</a>
</section>
<section class="inovacoes" id="news-title">
<h3>Inovações</h3>
</section>
<section class="layout" id="layout-tests">
<h3>Testes de layout</h3>
</section>
<section class="layout" id="layout-ok">
<img src="images/layout-ok.png"></img>
<p><span class="ok fragment">✓</span> testCadastrarUsuario</p>
</section>
<section class="layout" id="layout-fail">
<img src="images/layout-fail.png"></img>
<p><span class="ok fragment">✓</span> testCadastrarUsuario</p>
</section>
<section class="layout" id="layout-tests-options">
<ul>
<li> DOMReactor
<li> Plugin do Jenkins (Shutterfly)
</ul>
</section>
<section class="layout" id="dom-reactor">
<img src="images/domreactor.png"> </img>
<ul>
<li> Comparação posicional no DOM
<li> Visão computacional
</ul>
</section>
<section class="layout">
<h3>Plugin do Jenkins</h3>
<ul>
<li> <span class="focus">Repositório</span> de screenshots
<li> Build-flow
<li> Não foi lançado ainda :(
</ul>
</section>
<section class="continuous-improvement">
<h3>Continuous Improvement</h3>
</section>
<section class="continuous-improvement">
<h1>Continuous Delivery</h1>
<p><span class="focus">múltiplas</span> entregas</p>
<p>funcionalidades <span class="focus">on/off</span></p>
</section>
<section class="continuous-improvement">
<h1>Sistemas complexos </h1>
<p> Comportamentos <span class="focus">novos</span> são encontrados em produção</p>
<p> Não seguem uma <span class="focus">especificação</span></p>
</section>
<section class="continuous-improvement">
<h2>... vs sistemas de missão <span class="focus">crítica</span> </h2>
<p><span class="focus">+10</span> anos em desenvolvimento </p>
</section>
<section class="continuous-improvement">
<h1 class="focus">QA? </h1>
<p> Testes de usabilidade </p>
<p> Testes exploratórios </p>
<p> Monitorações em produção </p>
</section>
<section class="continuous-improvement">
<pre>
<code class="bash">> git log
Merge: 64c77c5 f662c1d
Author: Fabio Kenji
Date: Thu Jul 11 11:36:54 2013 -0700
Refatorando componente de paginação
commit a78c16c49c65c0e3834a53f085038f93e94aa574
Author: André Vicente
Date: Thu Jul 11 12:36:33 2013 -0600
Corrigindo bug das datas
</code>
</pre>
<p> Verifique o <span class="focus">log!</span> </p>
</section>
<section class="state-union">
<h1> State of the Union </h1>
</section>
<section class="state-union">
<p> W3C </p>
<p> <a href="http://www.w3.org/TR/webdriver/">http://www.w3.org/TR/webdriver/</a>
</section>
<section class="state-union">
<p>
<img src="images/selenium3.png"/>
</p>
<ul>
<li> Remoção do <span class="focus">RC</span>
<li> Foco em <span class="focus">Mobile</span>
</ul>
</section>
<section class="state-union">
<h2> Dicas </h2>
</section>
<section class="state-union">
<p> Page Objects!</p>
</section>
<section class="state-union">
<p> Implicit Waits exagerados </p>
</section>
<section class="state-union">
<p> Não exponha a <span class="focus">API</span> do Selenium:
<pre>
<code class="java">
TelaDeLogin tela = new TelaDeLogin();
tela.click("#login"); // :(
tela.waitForVisible("#enviar"); // :((
TelaDeExtrato telaExtrato = new TelaDeExtrato();
telaExtrato.getSelenium().click("#login"); // :_(
</code>
</pre>
</section>
<section class="state-union">
<p> Modele <span class="focus">serviços</span> </p>
<pre>
<code class="java">
TelaDeLogin tela = new TelaDeLogin();
tela.logar(new Usuario("Fabio"));
</code>
</pre>
</p>
</section>
<section class="state-union">
<p> <span class="focus">Encapsule</span> a API de selenium</p>
<pre>
<code class="java">
SeleniumPagSeguro seleniumRC =
new SeleniumPagSeguro(new DefaultSelenium());
seleniumRC.click("#something");
SeleniumPagSeguro seleniumWebDriver =
new SeleniumPagSeguro(new RemoteWebDriver());
seleniumWebDriver.click("#something");
// Gangnam Style! ヾ(⌐■_■)ノ♪
</code>
</pre>
</p>
</section>
<section class="state-union">
<p> De volta a realidade ... </p>
</section>
<section class="state-union">
<h2> TODO: </h2>
<p> <span class="focus">Automação</span> de máquinas no selenium grid </p>
<p> Notificação <span class="focus">antecipada</span> de erros em testes </p>
<p> <span class="focus">Reduzir</span> o tempo de execução da suite de testes </p>
<p> Selenium-grid-extras <span class="focus">:)</span></p>
</section>
<section class="state-union">
<p> Perguntas? </p>
<img src="images/huh.png"/>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script src="js/jquery.min.js"></script>
<script src="js/jquery-photowall.js"></script>
<script src="js/photowall-builder.js"></script>
<script>
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'default', // default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// { src: 'plugin/search/search.js', async: true, condition: function() { return !!document.body.classList; } }
//{ src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>