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
55
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
More Decks by Stefan Teixeira
See All by Stefan Teixeira
Scrum Gathering Portugal 2016 - Containerizing Tests with Docker
stefanteixeira
0
91
Agile Brazil 2016 - 5 fundamentos essenciais de padrões xUnit
stefanteixeira
0
120
Latinoware 2016 - Continuous Delivery com ferramentas open source
stefanteixeira
0
75
Ágiles 2016 - Using open source tools to support Continuous Delivery
stefanteixeira
0
65
6º Encontro do Grupo de Testes Carioca - Testes em um contexto de Continuous Delivery
stefanteixeira
0
51
TDC 2016 SP - Desmistificando cobertura de código como métrica de qualidade
stefanteixeira
0
140
TDC 2016 SP - Continuous Delivery para aplicações Java com ferramentas open-source
stefanteixeira
0
94
TDC 2016 SP - Cobertura de código de procedures T-SQL com SQLCC
stefanteixeira
0
82
TDC 2016 SP - 5 libs de teste JavaScript que você deveria conhecer
stefanteixeira
0
68
Other Decks in Programming
See All in Programming
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
210
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
260
変わらないものが、変わるものを決める — 意図駆動開発 × イベントソーシング × イミュータブル | What Doesn't Change Decides What Can — IDD × Event Sourcing × Immutability
tomohisa
0
1.3k
夏だ!祭りだ!祭りとはドメインモデリングでは?
ryugen04
0
170
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
140
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
340
PHP初心者セッション2026 〜生成AIでは見えない裏側を知る:今だからLAMPを通して仕組みを学ぶ〜
kashioka
0
850
属人化した知識を、 AIが辿れる地図にする
pkshadeck
PRO
1
150
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
180
仕様駆動開発の消費期限
watany
14
6.8k
freee が目指す データ マネジメント戦略 AI-Ready 時代を支える 攻めのガバナンスとは
freee
PRO
0
290
FDEが実現するAI駆動経営の現在地
gonta
2
270
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
225
10k
How to train your dragon (web standard)
notwaldorf
97
6.7k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.8k
Music & Morning Musume
bryan
47
7.3k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
460
Speed Design
sergeychernyshev
33
2k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
470
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Designing for humans not robots
tammielis
254
26k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
KATA
mclloyd
PRO
35
15k
Tell your own story through comics
letsgokoyo
1
1k
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