#Javou10 - Testes E2E com JavaScript
-
Upload
henrique-luz -
Category
Software
-
view
165 -
download
1
Transcript of #Javou10 - Testes E2E com JavaScript
![Page 1: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/1.jpg)
#JAVOU10
TESTES E2E COM JAVASCRIPT
Henrique Luz
![Page 2: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/2.jpg)
BIO
Henrique Luz
‣ Bacharel em Computação / UFC
‣ Desenvolvedor no Instituto Atlântico
‣ Corredor nas horas livres
![Page 3: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/3.jpg)
AGENDA
‣ Testes na Idade Média
‣ Agile testing
- Evolução
‣ Testes E2E
- Intro
- Trade-off
‣ Back-end x Front-end
‣ WebDriver I/O
‣ Hands-on
![Page 4: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/4.jpg)
TESTES NA IDADE MÉDIA
ANTES
▸Cascata
▸Manuais
▸Caixa-preta
▸Orientados a bugs
▸Feedback tardio
![Page 5: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/5.jpg)
![Page 6: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/6.jpg)
AGILE TESTING
EVOLUÇÃO
![Page 7: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/7.jpg)
TESTES ÁGEIS
DEPOIS
▸Agile Development
▸TDD BDD
▸Unitários + Integração
▸Entrega Contínua
▸Feedback Instantâneo
![Page 8: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/8.jpg)
SUFICIENTE?
DEPENDE!
![Page 9: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/9.jpg)
“CHECAM SE O FLUXO DA APLICAÇÃO FAZ O QUE FOI DESENHADA PARA FAZER,PASSANDO POR TODOS OS COMPONENTES E SUAS DEPENDÊNCIAS”
![Page 10: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/10.jpg)
E2E TESTING
▸Simula fluxo do usuário
▸UI’s
▸ Interage com toda app
▸Ajuda a validar critérios de aceitação
▸Regressão de testes bem mais rápida
![Page 11: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/11.jpg)
TRADE-OFF
▸Mais custosos
▸Mais lentos
▸Mudanças na UI tendem a impactar
![Page 12: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/12.jpg)
ONDE ESCREVER MEUS TESTES E2E?
MAIS UMA VEZ: DEPENDE
![Page 13: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/13.jpg)
![Page 14: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/14.jpg)
Tipo da Aplicação
Tecnologias disponíveisMaturidade do time
Conhecimento do time
?
? ?
?
??
??
?
?
?
? ???
![Page 15: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/15.jpg)
E2E TESTING
FERRAMENTAS JAVASCRIPT
![Page 16: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/16.jpg)
WEBDRIVER I/O
TESTES DE REGRESSÃO DE UI
DSL FLUENTE
VARIEDADE DE HOOKS
SUPORTA SINCRONISMO
SUPORTA GULP E GRUNT
FORNECE CLI
SETUP FÁCIL
![Page 17: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/17.jpg)
ALGUMAS FEATURES
▸ client.addValue(selector, values)
▸ client.click(selector)
▸ client.dragAndDrop(source, dest)
▸ client.submitForm(selector)
▸ client.getText(selector, attrName)
▸ client.getUrl()
▸ client.getValue(selector)
▸ client.launch()
▸ client.orientation([deviceOrientation])
▸ client.getGeolocation()
▸ client.rotate(x, y, duration, radius,
rotation, touchCount)
▸ client.swipe([selector][xoffset][yoffset][s
peed]);
▸ client.currentActivity();
![Page 18: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/18.jpg)
DEMO
![Page 19: #Javou10 - Testes E2E com JavaScript](https://reader034.fdocumentos.tips/reader034/viewer/2022051521/5a64f6327f8b9a93328b46ad/html5/thumbnails/19.jpg)
PERGUNTAS