Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
1º Encontro do Grupo de Testes Carioca - Primei...
Search
Stefan Teixeira
December 08, 2015
Programming
0
42
1º Encontro do Grupo de Testes Carioca - Primeiros Passos em Automação de Testes
Palestra apresentada no 1º Encontro do GTC, no dia 08/12/15.
Stefan Teixeira
December 08, 2015
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
54
6º Encontro do Grupo de Testes Carioca - Testes em um contexto de Continuous Delivery
stefanteixeira
0
45
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
84
TDC 2016 SP - Cobertura de código de procedures T-SQL com SQLCC
stefanteixeira
0
74
TDC 2016 SP - 5 libs de teste JavaScript que você deveria conhecer
stefanteixeira
0
61
Other Decks in Programming
See All in Programming
TypeScriptで設計する 堅牢さとUXを両立した非同期ワークフローの実現
moeka__c
6
3k
SwiftUIで本格音ゲー実装してみた
hypebeans
0
110
チームをチームにするEM
hitode909
0
300
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
120
C-Shared Buildで突破するAI Agent バックテストの壁
po3rin
0
380
Microservices Platforms: When Team Topologies Meets Microservices Patterns
cer
PRO
1
1k
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
5
2k
30分でDoctrineの仕組みと使い方を完全にマスターする / phpconkagawa 2025 Doctrine
ttskch
3
800
まだ間に合う!Claude Code元年をふりかえる
nogu66
5
730
俺流レスポンシブコーディング 2025
tak_dcxi
14
8.5k
AIコーディングエージェント(skywork)
kondai24
0
150
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
440
Featured
See All Featured
RailsConf 2023
tenderlove
30
1.3k
Scaling GitHub
holman
464
140k
Java REST API Framework Comparison - PWX 2021
mraible
34
9k
Balancing Empowerment & Direction
lara
5
790
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
54k
Agile that works and the tools we love
rasmusluckow
331
21k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
253
22k
Side Projects
sachag
455
43k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Navigating Team Friction
lara
191
16k
Designing for Performance
lara
610
69k
Transcript
Primeiros Passos em Automação de Testes Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com
About me Stefan Teixeira • 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
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 Mike Cohn - Succeeding With
Agile
None
Cuidado!
Testes de UI são mais lentos!
Anti-patterns
None
None
Tempo de feedback
E quando o feedback é lento? • Perda de confiança
do time
E quando o feedback é lento? • Perda de confiança
do time • Time deixa de rodar os testes
E quando o feedback é lento? • Perda de confiança
do time • Time deixa de rodar os testes
Importância do tempo de build/feedback • XP (Extreme Programming) ➡
10-minute build
Importância do tempo de build/feedback • XP (Extreme Programming) ➡
10-minute build • 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
None
Testes de Unidade • Rodam MUITO rápido = feedback mais
rápido!
Testes de Unidade • Rodam MUITO rápido = feedback mais
rápido! • Ó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 • Boa quantidade e cobertura de testes
= menor necessidade de testes exaustivos pela UI • Te oferecerem segurança para introduzir mudanças (safety net)
Cobertura de código: dicas • “High coverage numbers are too
easy to reach with low quality testing” (Martin Fowler)
Cobertura de código: dicas • “High coverage numbers are too
easy to reach with low quality testing” (Martin Fowler) • Cobertura alta != bons testes
Cobertura de código: dicas • “High coverage numbers are too
easy to reach with low quality testing” (Martin Fowler) • Cobertura alta != bons testes • Você pode ter 100% de cobertura sem nenhum assert nos testes!
Ferramentas
None
Testes no nível de Serviço • Preencher o gap entre
Unidade e UI
Testes no nível de Serviço • Preencher o gap entre
Unidade e UI • Testar regras de negócio “abaixo” da UI, sem depender da interface (Web, Mobile, Desktop)
Testes no nível de Serviço • Preencher o gap entre
Unidade e UI • Testar regras de negócio “abaixo” da UI, sem depender da interface (Web, Mobile, Desktop) • Subcutaneous Tests (Martin Fowler)
Testes no nível de Serviço: Tipos • Testes de Componente
/ Integração
Testes no nível de Serviço: Tipos • Testes de Componente
/ Integração • Testes de WebServices / APIs
Testes no nível de Serviço: Tipos • Testes de Componente
/ Integração • Testes de WebServices / APIs • Testes de Contrato
Ferramentas
None
Testes pela UI • Mais lentos/frágeis, feedback lento
Testes pela UI • Mais lentos/frágeis, feedback lento • Ponto
de vista do usuário final
Testes pela UI • Mais lentos/frágeis, feedback lento • Ponto
de vista do usuário final • Focar nos cenários mais importantes
Testes pela UI: Tipos • Cross Browser Testing
• Cross Browser Testing • Headless Testing Testes pela UI:
Tipos
• Cross Browser Testing • Headless Testing • Visual Regression
Testing Testes pela UI: Tipos
Visual Regression Testing: como é?
Ferramentas: xBrowser/ Headless Testing
Ferramentas: Mobile UI Testing
Ferramentas: Visual Regression Testing
Hands-on
• Projeto de exemplo: https:/ / github.com/stefanteixeira/ primeiros-passos-automacao- testes •
JUnit + REST-Assured + Selenium Webdriver Hands-on
Livros Recomendados
Obrigado! Stefan Teixeira @stefan_teixeira
[email protected]
stefanteixeira.com.br stefanteixeira.com