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
Because every QA should know API Testing
Search
Frederico Moreira
May 07, 2019
Technology
0
130
Because every QA should know API Testing
Frederico Moreira
May 07, 2019
Tweet
Share
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
71
Para, entenda seu contexto e contribua de maneira efetiva como QA
fredmoreira
0
41
Pirâmide testes mobile, distribua seus testes de maneira efetiva
fredmoreira
1
47
Porque todo QA deveria saber testes de APIs
fredmoreira
0
130
Tudo que você sempre quis saber sobre testes de APIs REST, mas que nunca te contaram...
fredmoreira
0
61
Testes de APIs
fredmoreira
0
72
Microservices alterando seu mindset de tester
fredmoreira
1
130
Palestra de como testar sua API Rest no Grupo de Teste Carioca
fredmoreira
0
34
Docker para testers - Um passeio fora da caixa
fredmoreira
0
49
Other Decks in Technology
See All in Technology
ESXi のAIOps だ!2025冬
unnowataru
0
480
純粋なイミュータブルモデルを設計してからイベントソーシングと組み合わせるDeciderの実践方法の紹介 /Introducing Decider Pattern with Event Sourcing
tomohisa
1
740
戰略轉變:從建構 AI 代理人到發展可擴展的技能生態系統
appleboy
0
180
Authlete で実装する MCP OAuth 認可サーバー #CIMD の実装を添えて
watahani
0
430
歴史から学ぶ、Goのメモリ管理基礎
logica0419
10
2.3k
Oracle Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
2
720
Next.js 16の新機能 Cache Components について
sutetotanuki
0
210
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
5
60k
[PR] はじめてのデジタルアイデンティティという本を書きました
ritou
0
770
2025-12-27 Claude CodeでPRレビュー対応を効率化する@機械学習社会実装勉強会第54回
nakamasato
4
1.4k
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
Introduction to Bill One Development Engineer
sansan33
PRO
0
340
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.6k
Design in an AI World
tapps
0
110
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2k
Balancing Empowerment & Direction
lara
5
840
Information Architects: The Missing Link in Design Systems
soysaucechin
0
730
Building a Modern Day E-commerce SEO Strategy
aleyda
45
8.5k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.8k
How to train your dragon (web standard)
notwaldorf
97
6.5k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
420
Ruling the World: When Life Gets Gamed
codingconduct
0
120
End of SEO as We Know It (SMX Advanced Version)
ipullrank
2
3.8k
Being A Developer After 40
akosma
91
590k
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?