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
73
Para, entenda seu contexto e contribua de maneira efetiva como QA
fredmoreira
0
42
Pirâmide testes mobile, distribua seus testes de maneira efetiva
fredmoreira
1
48
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
62
Testes de APIs
fredmoreira
0
72
Microservices alterando seu mindset de tester
fredmoreira
1
140
Palestra de como testar sua API Rest no Grupo de Teste Carioca
fredmoreira
0
35
Docker para testers - Um passeio fora da caixa
fredmoreira
0
50
Other Decks in Technology
See All in Technology
最強のAIエージェントを諦めたら品質が上がった話 / how quality improved after giving up on the strongest AI agent
kt2mikan
0
140
JAWSDAYS2026_A-6_現場SEが語る 回せるセキュリティ運用~設計で可視化、AIで加速する「楽に回る」運用設計のコツ~
shoki_hata
0
2.9k
Agentic Software Modernization - Back to the Roots (Zürich Agentic Coding and Architectures, März 2026)
feststelltaste
1
240
ナレッジワークのご紹介(第88回情報処理学会 )
kworkdev
PRO
0
170
OCI Security サービス 概要
oracle4engineer
PRO
2
13k
マルチプレーンGPUネットワークを実現するシャッフルアーキテクチャの整理と考察
markunet
2
230
JAWS DAYS 2026 楽しく学ぼう!ストレージ 入門
yoshiki0705
2
140
参考スライド:AI_Driven_Engineering_Redefined
creationline
0
100
OpenClawで回す組織運営
jacopen
3
680
「Blue Team Labs Online」入門 - みんなで挑むログ解析バトル
v_avenger
0
150
組織全体で実現する標準監視設計
yuobayashi
2
470
マルチアカウント環境でSecurity Hubの運用!導入の苦労とポイント / JAWS DAYS 2026
genda
0
400
Featured
See All Featured
New Earth Scene 8
popppiees
1
1.7k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
210
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
140
The Mindset for Success: Future Career Progression
greggifford
PRO
0
270
30 Presentation Tips
portentint
PRO
1
250
Git: the NoSQL Database
bkeepers
PRO
432
66k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
Google's AI Overviews - The New Search
badams
0
930
The browser strikes back
jonoalderson
0
780
WCS-LA-2024
lcolladotor
0
480
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Are puppies a ranking factor?
jonoalderson
1
3.1k
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?