-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
401 lines (390 loc) · 14.1 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>ABAP Unit - Automating boring work</title>
<meta name="description" content="ABAP Unit - Automating boring work?" />
<meta name="author" content="Valdir Mendes" />
<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/reset.css" />
<link rel="stylesheet" href="css/reveal.css" />
<link rel="stylesheet" href="css/theme/league.css" id="theme" />
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/monokai.css" />
<style type="text/css">
.flex {
display: flex;
}
.flex-item {
display: flex;
}
.flex-1 {
flex-grow: 1;
}
</style>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement("link");
link.rel = "stylesheet";
link.type = "text/css";
link.href = window.location.search.match(/print-pdf/gi)
? "css/print/pdf.css"
: "css/print/paper.css";
document.getElementsByTagName("head")[0].appendChild(link);
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>ABAP Unit</h1>
<h2>Automatizando o trabalho chato</h2>
<p>
SAP Inside Track BH - 2019
</p>
</section>
<section>
<h2>Quem sou eu?</h2>
<div class="flex">
<div class="flex-1">
<ul>
<li>Meu nome é Valdir Mendes</li>
<li>
Estudante/amante de desenvolvimento de software e tecnologia
</li>
<li>
Arquiteto de software na
<a href="http://www.seidorbrasil.com.br" target="_blank">Seidor Veritas</a>
</li>
<li>
Organizador do
<a target="_blank" href="https://www.meetup.com/sapiens-bh/" >Meetup SAPiens BH</a>
</li>
</ul>
<br />
</div>
<img
alt="Profile's image"
class="flex-item"
height="540"
src="img/profile.jpg"
/>
</div>
</section>
<section>
<h2>Novo método de desenvolvimento</h2>
<img
alt="Sátira - Novo método de desenvolvimento"
src="img/sembugs.png"
/>
</section>
<section>
<h1>Testar software é importante?</h1>
</section>
<section>
<h2>Testes do funcional/cliente</h2>
<img
alt="Sátira - não precisamos de homologação"
src="img/homologacao.png"
/>
</section>
<section>
<h2>Desculpas para não testar</h2>
<ul>
<li>Demora muito para criar e executar</li>
<li>Alto Custo</li>
<li>Repetitivo</li>
<li>Chato de executar manualmente e passível de erros</li>
<li>Não tenho/conheço todos os cenários</li>
<li>"Só ocorre em PRD"</li>
<li>Não estava previso na estimativa</li>
</ul>
</section>
<section>
<h1>Como fazemos hoje?</h1>
<ul>
<li>Nova demanda</li>
<li>Codificar/implementar</li>
<li>Execução de teste (quando dá)</li>
<li>Debugar</li>
<li>Corrigir bugs</li>
<li>Loop até "KBAR"!</li>
</ul>
</section>
<section>
<h2>E como ficamos?</h2>
<img
alt="Sátira - Correção de bugs"
height="545"
src="img/agoravai.png"
/>
</section>
<section>
<h2>Quanto tempo eu gasto?</h2>
<ul>
<li>Codificando regras que não sei onde irá impactar?</li>
<li>Aguardando alguém testar?</li>
<li>Aguardando cenário de teste?</li>
<li>Executando testes manuais, repetitivos e passíveis de erro?</li>
<li>Debugando para encontrar erros (pré e pós desenvolvimento)?</li>
<li>Corrigindo bugs usando tentativa e erro? (go horse)</li>
</ul>
</section>
<section>
<h2>Quem nunca?</h2>
<img
alt="Sátira - Dump se38"
height="545"
src="img/dump.jpg"
/>
</section>
<section>
<h1 style="text-shadow: none"><font color="#afafb6">No que isso impacta?</font></h1>
<h2>Na garantia/confiança do seu trabalho!</h2>
</section>
<section>
<h1 style="text-shadow: none"><font color="#afafb6">Dá para melhorar?</font></h1>
<h2>Sim!</h2>
<h1 style="text-shadow: none"><font color="#afafb6">Como?</font></h1>
<h2>Fazer a máquina executar os testes!</h2>
</section>
<section>
<h1>Testes unitários e ABAP Unit<h1>
</section>
<section>
<h2>DevOps</h2>
<img src="img/devops.png" alt="Devops">
</section>
<section>
<h2>Testes Unitários</h2>
<p>É uma abordagem de teste de software onde as unidades/componentes de um software são testadas individualmente.</p>
</section>
<section>
<h2>Pirâmide de testes</h2>
<img src="img/tests_pyramid.png" alt="Pirâmide de testes" height="540">
</section>
<section>
<h2>Custo e tempo de testes</h2>
<img src="img/tests_pyramid_1.png" alt="Pirâmide de testes">
</section>
<section>
<h2>Testes Unitários Automatizados</h2>
<h3>Objetivos</h3>
<ul>
<li>Encontrar erros o mais breve possível</li>
<li>Escrever uma vez, executar frequentemente</li>
<li>Repetitivo: A máquina executa e analisa os resultados</li>
<li>Garantir que o código desenvolvido funcione conforme o esperado</li>
<li>A máquina não comete erros ao executar</li>
</ul>
</section>
<section>
<h2>ABAP Unit</h2>
<p>É uma ferramenta de teste integrada ao ambiente de desenvolvimento ABAP utilizada para executar testes de unitários. Pode ser executada manualmente ou automaticamente.</p>
<a href="https://help.sap.com/saphelp_ewm94/helpdata/en/49/18061c005338a1e10000000a421937/frameset.htm">Fonte: Documentação SAP</a>
</section>
<section>
<h1><font color="#afafb6">Como funciona?</font></h1>
<h2>Fazer o que já fazemos hoje, porém de forma automatizada</h2>
</section>
<section>
<h2>Nosso fluxo atual</h2>
<img src="img/fluxo_dev.png" alt="Fluxo de desenvolvimento">
</section>
<section>
<h2>Fluxo de automatização</h2>
<img src="img/fluxo_unit_test.png" alt="Fluxo de automatização do teste">
</section>
<section>
<h1>SAP GUI</h1>
</section>
<section>
<h2>Criação da classe</h2>
<img src="img/unit_01.png" alt="Criação da classe" height="540">
</section>
<section>
<h2>Método</h2>
<img src="img/unit_02.png" alt="Método">
</section>
<section>
<h2>Parâmetros do método</h2>
<img src="img/unit_03.png" alt="Parâmetros do método">
</section>
<section>
<h2>Código do método</h2>
<img src="img/unit_04.png" alt="Código do método">
</section>
<section>
<h2>Geração da classe de teste</h2>
<img src="img/unit_05.png" alt="Geração da classe de teste" height="540">
</section>
<section>
<h2>Assistente da geração</h2>
<img src="img/unit_06.png" alt="Assistente de geração" height="540">
</section>
<section>
<img src="img/unit_07.png" alt="Wizard">
</section>
<section>
<h2>Criar uma nova classe de teste</h2>
<img src="img/unit_08.png" alt="Wizard">
</section>
<section>
<img src="img/unit_09.png" alt="Wizard">
</section>
<section>
<img src="img/unit_10.png" alt="Wizard">
</section>
<section>
<img src="img/unit_11.png" alt="Wizard">
</section>
<section>
<h2>Ir para classes de teste (quando já exite)</h2>
<img src="img/unit_12.png" alt="Ir para classes de teste">
</section>
<section>
<h2>Código dos testes</h2>
<img src="img/unit_13.png" alt="Código de teste" height="540">
</section>
<section>
<h2>Rodar os testes</h2>
<img src="img/unit_14.png" alt="Rodar os testes">
</section>
<section>
<h2>Testes passam</h2>
<img src="img/unit_15.png" alt="Testes com sucesso">
</section>
<section>
<h2>Se altero a regra...</h2>
<img src="img/unit_16.png" alt="Alteração de regra">
</section>
<section>
<h2>Testes falham</h2>
<img src="img/unit_17.png" alt="Testes falham">
</section>
<section>
<h1>Eclipse</h1>
<h1>+</h1>
<h2>ABAP Development Tools (ADT)</h2>
</section>
<section>
<h2>Código fonte</h2>
<img src="img/eclipse_1.png" alt="Código fonte" height="540">
</section>
<section>
<h2>Ir para classes de teste</h2>
<img src="img/eclipse_2.png" alt="Ir para classes de testes">
</section>
<section>
<h2>Código dos testes</h2>
<img src="img/eclipse_3.png" alt="" height="540">
</section>
<section>
<h2>Testes passam</h2>
<img src="img/eclipse_4.png" alt="Testes com sucesso">
</section>
<section>
<h2>Testes Falham</h2>
<img src="img/eclipse_5.png" alt="">
</section>
<section>
<h1>Dúvidas?</h1>
</section>
<section>
<h1>Linkedin</h1>
<ul>
<li>Ative o Bluetooth no dispositivo móvel.</li>
<li>Abra o app do Linkedin</li>
<li>Toque em <strong><font color="#afafb6">Minha rede</font></strong></li>
<li>Toque em <strong><font color="#afafb6">Na sua área</font></strong></li>
</ul>
</section>
<section data-markdown>
## Meus contatos
* Linkedin: [Valdir Mendes](https://www.linkedin.com/in/valdir-mendes-675bb524/)
* Skype: [valdir.mfjesus](https://join.skype.com/invite/CHR4bgJXCeOQ)
* Twitter: [@valdirmendesgt](https://twitter.com/valdirmendesgt)
* Email: [valdir.mfjesus@yahoo.com.br](mailto:valdir.mfjesus@yahoo.com.br)
</section>
<section>
<h2>Para estudar - SAP</h2>
<ul>
<li><a href="https://open.sap.com/courses/wtc1">Writing Testable Code for ABAP - Curso OpenSAP</a></li>
<li><a href="https://www.sap.com/community/topics/abap-testing-analysis.html">ABAP Testing and Analysis</a></li>
<li><a href="http://saptechnical.com/Tutorials/OOPS/ABAPUnit/Index.htm">Understanding ABAP Unit</a></li>
<li><a href="https://help.sap.com/saphelp_ewm94/helpdata/en/49/18061c005338a1e10000000a421937/frameset.htm">ABAP Test and Analysis Tools</a></li>
<li><a href="https://www.sap-press.com/abap-unit-writing-and-executing-unit-tests_4298/">ABAP Unit: Writing and Executing Unit Tests - E-bite</a></li>
</ul>
</section>
<section>
<h2>Para estudar - Geral</h2>
<ul>
<li><a href="https://www.casadocodigo.com.br/products/livro-testes-de-software">Testes automatizados de software</a></li>
<li><a href="https://www.casadocodigo.com.br/products/livro-tdd">Test-Driven Development</a></li>
<li><a href="https://www.casadocodigo.com.br/products/livro-testes-de-software">Testes automatizados de software</a></li>
<li><a href="https://www.amazon.com.br/Engenharia-Software-Uma-Abordagem-Profissional/dp/8580555337/ref=pd_sbs_14_2/130-9271035-2021562?_encoding=UTF8&pd_rd_i=8580555337&pd_rd_r=06bc2f1d-7063-11e9-bc3b-5ffc0e2db024&pd_rd_w=W9dTY&pd_rd_wg=arTv3&pf_rd_p=80c6065d-57d3-41bf-b15e-ee01dd80424f&pf_rd_r=RGBB9BCT50A4JKEJ46DV&psc=1&refRID=RGBB9BCT50A4JKEJ46DV">Engenharia de Software: Uma Abordagem Profissional</a></li>
</ul>
</section>
<section>
<h2>Muito obrigado!</h2>
<img src="img/thank-you.gif" alt="Agradecimento">
</section>
</div>
</div>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: "zoom", // none/fade/slide/convex/concave/zoom
slideNumber: true,
dependencies: [
{
src: "plugin/markdown/marked.js"
},
{
src: "plugin/markdown/markdown.js"
},
{
src: "plugin/notes/notes.js",
async: true
},
{
src: "plugin/highlight/highlight.js",
async: true
},
{
src: "plugin/zoom-js/zoom.js",
async: true
},
// MathJax
{
src: "plugin/math/math.js",
async: true
},
{
src: 'node_modules/reveal.js-menu/menu.js'
}
],
menu: {
themes: true,
transition: true,
numbers: true
},
});
</script>
</body>
</html>