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
120
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
62
Para, entenda seu contexto e contribua de maneira efetiva como QA
fredmoreira
0
39
Pirâmide testes mobile, distribua seus testes de maneira efetiva
fredmoreira
1
46
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
59
Testes de APIs
fredmoreira
0
70
Microservices alterando seu mindset de tester
fredmoreira
1
130
Palestra de como testar sua API Rest no Grupo de Teste Carioca
fredmoreira
0
32
Docker para testers - Um passeio fora da caixa
fredmoreira
0
44
Other Decks in Technology
See All in Technology
Amazon Bedrockで実現する 新たな学習体験
kzkmaeda
2
540
Amazon ECS & AWS Fargate 運用アーキテクチャ2025 / Amazon ECS and AWS Fargate Ops Architecture 2025
iselegant
16
5.5k
2年でここまで成長!AWSで育てたAI Slack botの軌跡
iwamot
PRO
4
700
Welcome to the LLM Club
koic
0
170
AIの最新技術&テーマをつまんで紹介&フリートークするシリーズ #1 量子機械学習の入門
tkhresk
0
140
Postman AI エージェントビルダー最新情報
nagix
0
110
ひとり情シスなCTOがLLMと始めるオペレーション最適化 / CTO's LLM-Powered Ops
yamitzky
0
430
強化されたAmazon Location Serviceによる新機能と開発者体験
dayjournal
2
210
より良いプロダクトの開発を目指して - 情報を中心としたプロダクト開発 #phpcon #phpcon2025
bengo4com
1
3.1k
Oracle Audit Vault and Database Firewall 20 概要
oracle4engineer
PRO
3
1.7k
A2Aのクライアントを自作する
rynsuke
1
170
【TiDB GAME DAY 2025】Shadowverse: Worlds Beyond にみる TiDB 活用術
cygames
0
1.1k
Featured
See All Featured
BBQ
matthewcrist
89
9.7k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
130
19k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Visualization
eitanlees
146
16k
Unsuck your backbone
ammeep
671
58k
How to train your dragon (web standard)
notwaldorf
93
6.1k
Thoughts on Productivity
jonyablonski
69
4.7k
Embracing the Ebb and Flow
colly
86
4.7k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
181
53k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
Rebuilding a faster, lazier Slack
samanthasiow
82
9.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?