Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
VR Dev Summit 2016 - Primeiros Passos em Automa...
Search
Stefan Teixeira
April 09, 2016
Programming
0
51
VR Dev Summit 2016 - Primeiros Passos em Automação de Testes
Palestra apresentada no VR Dev Summit 2016, no dia 09/04. Site do evento: vr.devsummit.com.br
Stefan Teixeira
April 09, 2016
Tweet
Share
More Decks by Stefan Teixeira
See All by Stefan Teixeira
Scrum Gathering Portugal 2016 - Containerizing Tests with Docker
stefanteixeira
0
82
Agile Brazil 2016 - 5 fundamentos essenciais de padrões xUnit
stefanteixeira
0
110
Latinoware 2016 - Continuous Delivery com ferramentas open source
stefanteixeira
0
67
Ágiles 2016 - Using open source tools to support Continuous Delivery
stefanteixeira
0
55
6º Encontro do Grupo de Testes Carioca - Testes em um contexto de Continuous Delivery
stefanteixeira
0
48
TDC 2016 SP - Desmistificando cobertura de código como métrica de qualidade
stefanteixeira
0
130
TDC 2016 SP - Continuous Delivery para aplicações Java com ferramentas open-source
stefanteixeira
0
86
TDC 2016 SP - Cobertura de código de procedures T-SQL com SQLCC
stefanteixeira
0
76
TDC 2016 SP - 5 libs de teste JavaScript que você deveria conhecer
stefanteixeira
0
61
Other Decks in Programming
See All in Programming
Oxlintはいいぞ
yug1224
5
1.4k
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
Oxlint JS plugins
kazupon
1
1k
HTTPプロトコル正しく理解していますか? 〜かわいい猫と共に学ぼう。ฅ^•ω•^ฅ ニャ〜
hekuchan
2
690
Package Management Learnings from Homebrew
mikemcquaid
0
230
dchart: charts from deck markup
ajstarks
3
1k
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
210
CSC307 Lecture 06
javiergs
PRO
0
690
AtCoder Conference 2025
shindannin
0
1.1k
AIによる高速開発をどう制御するか? ガードレール設置で開発速度と品質を両立させたチームの事例
tonkotsuboy_com
7
2.4k
React Native × React Router v7 API通信の共通化で考えるべきこと
suguruooki
0
100
Featured
See All Featured
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
79
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
Agile that works and the tools we love
rasmusluckow
331
21k
The Cost Of JavaScript in 2023
addyosmani
55
9.5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
440
Art, The Web, and Tiny UX
lynnandtonic
304
21k
Ethics towards AI in product and experience design
skipperchong
2
200
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
220
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
250
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
410
Color Theory Basics | Prateek | Gurzu
gurzu
0
200
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Transcript
Primeiros Passos em Automação de Testes Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com
• QA Engineer @ M4U • Entusiasta de Automação de
Testes, Agile Testing e DevOps • Blogs técnicos: stefanteixeira.com.br (pt-br) / stefanteixeira.com (en) Contatos: • E-mail:
[email protected]
• Twitter: twitter.com/stefan_teixeira • Facebook: facebook.com/stefan.teixeira • LinkedIn: linkedin.com/in/stefanteixeira • GitHub: github.com/stefanteixeira • SlideShare: slideshare.net/stefanteixeira Sobre
Vocês automatizam testes?
Estágios iniciais de automação
Automação hardcore
Pirâmide de Automação de Testes
Pirâmide de Automação de Testes
None
Cuidado!
Testes de UI são mais lentos!
Anti-patterns
None
None
Tempo de feedback
•Perda de confiança do time E quando o feedback é
lento?
E quando o feedback é lento? •Perda de confiança do
time •Time deixa de rodar os testes
None
Importância do tempo de build/ feedback •XP (Extreme Programming) ‣
10-minute build
Importância do tempo de build/ feedback •James Shore (The Art
of Agile Development) ‣ 10 or 15-minute build
“That's about the right amount of time to stretch my
legs, get some coffee, and talk over our work with my pairing partner.” - James Shore, The Art of Agile Development
Testes de Unidade
Testes de Unidade •Rodam MUITO rápido ➤ feedback rápido!
Testes de Unidade •Ótimos para testar valores limite ou combinações
de desvios no código
Testes de Unidade •Boa quantidade e cobertura de testes ➤
menor necessidade de testes exaustivos pela UI
Testes de Unidade •Oferecem segurança para introduzir mudanças (safety net)
Cobertura de Código
“High coverage numbers are too easy to reach with low
quality testing" - Martin Fowler
Importante! •Cobertura alta != bons testes
Importante! •Cobertura alta != bons testes •Você pode ter 100%
de cobertura sem nenhum assert nos testes!
Exemplos de ferramentas
Testes de Serviço
Testes de Serviço •Preencher gap entre unidade e UI
Testes de Serviço •Testar regras de negócio “abaixo" da UI,
sem depender da interface (Web, Mobile, Desktop)
Alguns tipos •Testes de Componente / Integração
Alguns tipos •Testes de Componente / Integração •Testes de Webservices
/ APIs
Alguns tipos •Testes de Componente / Integração •Testes de Webservices
/ APIs •Testes de Contrato
Exemplos de ferramentas
Testes de UI
Testes de UI •Mais lentos, frágeis, feedback lento
Testes de UI •Focar nos cenários mais importantes da sua
aplicação
Alguns tipos •Cross Browser Testing (xBrowser)
Alguns tipos •Cross Browser Testing (xBrowser) •Headless Testing
Alguns tipos •Cross Browser Testing (xBrowser) •Headless Testing •Visual Regression
Testing
Visual Regression Testing: como é?
Ferramentas: xBrowser/Headless Testing
Ferramentas: Mobile UI Testing
Ferramentas: Visual Regression Testing
Hands-on
Hands-on •https://github.com/ stefanteixeira/primeiros-passos- automacao-testes •JUnit + REST Assured + Selenium
WebDriver
E quando o feedback é lento? Livros Recomendados
Obrigado! Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com