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
Testes Automatizados para Web - Uma Introdução
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Cadu Ribeiro
July 16, 2020
Programming
78
0
Share
Testes Automatizados para Web - Uma Introdução
Cadu Ribeiro
July 16, 2020
More Decks by Cadu Ribeiro
See All by Cadu Ribeiro
DevContainers: Facilitando o Setup de ambientes de desenvolvimento
duduribeiro
0
49
Uma introdução em perfomance de Aplicações Web para impactar positivamente a vida de seus usuários
duduribeiro
0
53
Vim inside VSCode
duduribeiro
0
38
Continuous Delivery - On the real world
duduribeiro
0
120
An Introduction to Automated Web Testing
duduribeiro
3
88
Continuous Delivery
duduribeiro
0
69
Agility Through Continuous Delivery
duduribeiro
0
58
Hello Ruby
duduribeiro
2
89
Other Decks in Programming
See All in Programming
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
210
バックエンドにElysiaJSを採用して気付いた、良い点・悪い点
wanko_it
1
180
新規プロダクトを高速で生み出すハーネスエンジニアリング
seanchas116
4
290
CSC307 Lecture 17
javiergs
PRO
0
240
OCRを使ってゲームのアイテムをデータ化する
kishikawakatsumi
0
120
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
760
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
130
技術記事、AIに書かせるか、自分で書くか? 〜それでも私が自分の手で書く理由〜 / #QiitaConference
jnchito
2
1.1k
inferと仲良くなる10分間
ryokatsuse
1
260
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
270
Sans tests, vos agents ne sont pas fiables
nabondance
0
160
LLM Plugin for Node-REDの利用方法と開発について
404background
0
120
Featured
See All Featured
Are puppies a ranking factor?
jonoalderson
1
3.4k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
380
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1.1k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
370
Joys of Absence: A Defence of Solitary Play
codingconduct
1
380
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Six Lessons from altMBA
skipperchong
29
4.2k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
150
Context Engineering - Making Every Token Count
addyosmani
9
910
Transcript
testes automatizados para Web uma introdução
Carlos Ribeiro • software developer @ DNSimple • organizador Opensanca
•
[email protected]
• https:#//cadu.dev
o que é um teste?
testes são códigos para garantir o comportamento do seu código
None
None
como garantir o comportamento?
None
None
None
None
None
None
None
None
None
None
None
None
None
testes devem ser simples, legível e direto ao ponto
por quê?
economizar tempo e dinheiro
qualidade
evoluir rápido sem quebrar nada
confiança
None
documentação
TDD
o teste nos guia em como programar
None
None
None
None
None
None
None
None
None
None
na WEB
UI
UI
UI
UI
UI
UI
tipos de testes
pirâmide de testes
UI teste de UI
UI teste de Service (ou Integration Test)
UI teste de Unidade
None
sempre crie teste o mais abaixo da pirâmide que você
conseguir
None
None
None
o teste de Unidade
None
None
None
None
None
o teste de Service (Integration test)
UI teste de Service (ou Integration Test)
None
None
None
None
arrange
arrange act
arrange act assert
None
None
None
o teste de UI
passos para criar um Post • visitar a página de
cadastro de post • preencher o título • preencher o conteúdo • clicar no botão Cadastrar • verificar se o post foi cadastrado
convertendo para código
None
None
None
None
None
None
None
None
None