Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Because every QA should know API Testing
Search
Frederico Moreira
May 07, 2019
Technology
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Because every QA should know API Testing
Frederico Moreira
May 07, 2019
More Decks by Frederico Moreira
See All by Frederico Moreira
3 Tópicos sobre testes em APIs GraphQL que todo QA deveria saber.
fredmoreira
0
97
Para, entenda seu contexto e contribua de maneira efetiva como QA
fredmoreira
0
54
Pirâmide testes mobile, distribua seus testes de maneira efetiva
fredmoreira
1
57
Porque todo QA deveria saber testes de APIs
fredmoreira
0
150
Tudo que você sempre quis saber sobre testes de APIs REST, mas que nunca te contaram...
fredmoreira
0
74
Testes de APIs
fredmoreira
0
77
Microservices alterando seu mindset de tester
fredmoreira
1
150
Palestra de como testar sua API Rest no Grupo de Teste Carioca
fredmoreira
0
41
Docker para testers - Um passeio fora da caixa
fredmoreira
0
66
Other Decks in Technology
See All in Technology
How to Design Configuration for Rails Applications
willnet
1
770
エンタメ企業のM&Aを支えるデータ基盤 ― 統合から店舗のリアルタイム分析まで / Data Engineering Summit 2026
genda
0
170
日本語に強いオープンな大規模言語モデル「LLM-jp」
odashi
4
1.1k
⾮構造化データを価値に変える AI エージェント基盤とその組織
ivry_presentationmaterials
0
190
QA4AI 2026-Oct 生成AI時代の品質保証
tokuty
1
860
Temporal 最高!でも改めて「日付」について調べたら人類の負債すぎる件
riyaamemiya
0
150
Active Record Connection Adaptersにおける長年の課題に再び取り組む
yahonda
0
150
PagerDuty Tech Hub-鳴らすけれど、人は動かない
ezaki
0
170
Post AI時代のリファクタリング実践記 / Refactoring in the post AI era
kaminashi
1
230
re:Invent初参加で変わったこと、2回目にやってみたいこと(JAWS-UG彩の国埼玉 #12)
mhrtech
2
220
TinyGoでオブザーバビリティ?OpenTelemetryはTinyGoで使えるのか / Is OpenTelemetry available in TinyGo environment?
ymotongpoo
2
140
Local CI × GitHub Actions
gogutan
2
190
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Typedesign – Prime Four
hannesfritz
42
3.2k
How GitHub (no longer) Works
holman
316
150k
How to Ace a Technical Interview
jacobian
280
24k
Building Adaptive Systems
keathley
44
3.2k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
300
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Building the Perfect Custom Keyboard
takai
2
910
First, design no harm
axbom
PRO
2
1.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
Accessibility Awareness
sabderemane
1
250
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Transcript
Because every QA should know API Testing Frederico Moreira /
Ramilo Neves
Brazil (Minas Gerais) • Café, testes e pão de queijo
• MTC - Minas Testing Conference Agile Testers • Fórum • Agile Testers Conference UAI, TREM, SÔ, PÃO DE QUEIJO • if(cachaça || bagaço) @fredaomoreira @farfetch
@ramilomcneves @farfetch Brazil (Petrópolis - Rio de Janeiro) • Tester
Automation Engineer • In love with football –Flamengo (Brazil) –Porto (Portugal) • Living two years in Porto • Second time speaking at PTM
API • Who is here doing an API test today?
• Who has tested the API? • Who automates API testing?
What is an API? “An API is created when a
software company intends that other software developers develop products associated with its service.”
Examples • Google ◦ Google Maps ◦ Google Flights •
Accommodation ◦ Trivago ◦ Airbnb • Payment providers ◦ Paypal ◦ Klarna
Testing data
Service Level Tests Subcutaneous Test - Martin Fowler Fills gap
between unit and UI tests They occur in parallel to the development Focus on functionality rather than behavior / experience
Anti Patterns
Anti Patterns
The most common to find in the market are new
designs using Rest, over HTTP protocol. But you can use Rest with other protocols like TCP, UDP and gRPC (http:/ /www.grpc.io/).
None
None
What we validate in a api test? ➔ http status
code 200, 201, 400, 401, 500 ... ➔ body content Json, Plain text, XML ... ➔ http headers "Content-Type"":"application/json"
None
None
None
None
None
None
None
None
http:/ /racksburg.com/choosing-an-http-status-code/
Understanding HTTP transactions
request response VIEW
None
Manual Test Tools:
But I really need to automate API tests?
Automated Testing Frameworks:
http:/ /www.mocky.io/
https:/ /github.com/fredmoreira/register-employees
API Test Project DB INTERNAL TECH WORKSHOPS Environment
API Test Project DB HTTP
Show me the code...
Repositórios: https:/ /github.com/fredmoreira/register-employees-pyresttest https:/ /github.com/fredmoreira/register-employee-rest-assured-test https:/ /github.com/fredmoreira/register-employees-super-test https:/ /github.com/RamiloNeves18/register-employees-httparty https:/
/github.com/fredmoreira/phone-book https:/ /github.com/RamiloNeves18/register-employees-restsharp https:/ /github.com/fredmoreira/register-employees
Questions?