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
47
Para, entenda seu contexto e contribua de maneira efetiva como QA
fredmoreira
0
31
Pirâmide testes mobile, distribua seus testes de maneira efetiva
fredmoreira
1
37
Porque todo QA deveria saber testes de APIs
fredmoreira
0
120
Tudo que você sempre quis saber sobre testes de APIs REST, mas que nunca te contaram...
fredmoreira
0
54
Testes de APIs
fredmoreira
0
64
Microservices alterando seu mindset de tester
fredmoreira
1
120
Palestra de como testar sua API Rest no Grupo de Teste Carioca
fredmoreira
0
26
Docker para testers - Um passeio fora da caixa
fredmoreira
0
38
Other Decks in Technology
See All in Technology
SREによる隣接領域への越境とその先の信頼性
shonansurvivors
2
520
ドメイン名の終活について - JPAAWG 7th -
mikit
33
20k
フルカイテン株式会社 採用資料
fullkaiten
0
40k
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
TypeScript、上達の瞬間
sadnessojisan
46
13k
Application Development WG Intro at AppDeveloperCon
salaboy
0
190
誰も全体を知らない ~ ロールの垣根を超えて引き上げる開発生産性 / Boosting Development Productivity Across Roles
kakehashi
1
230
強いチームと開発生産性
onk
PRO
34
11k
Security-JAWS【第35回】勉強会クラウドにおけるマルウェアやコンテンツ改ざんへの対策
4su_para
0
180
CysharpのOSS群から見るModern C#の現在地
neuecc
2
3.2k
なぜ今 AI Agent なのか _近藤憲児
kenjikondobai
4
1.4k
ドメインの本質を掴む / Get the essence of the domain
sinsoku
2
150
Featured
See All Featured
Facilitating Awesome Meetings
lara
50
6.1k
Designing the Hi-DPI Web
ddemaree
280
34k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
4 Signs Your Business is Dying
shpigford
180
21k
The Invisible Side of Design
smashingmag
298
50k
Speed Design
sergeychernyshev
25
620
GitHub's CSS Performance
jonrohan
1030
460k
Typedesign – Prime Four
hannesfritz
40
2.4k
Gamification - CAS2011
davidbonilla
80
5k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
28
8.2k
VelocityConf: Rendering Performance Case Studies
addyosmani
325
24k
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?