API testing for
everyone
I am Pricilla
Team Leader, Billennium IT Services (M) Sdn. Bhd.
You can find me at @pricillabelwin
Hello!
2
What’s on the agenda today
◉ Brief introduction to APIs
◉ Deep dive into API Testing
◉ Introduction to Postman
◉ Demo
3
“
The only way you can stay on top
is to remember to touch bottom
and get back to basics - Shane
Black
4
Introduction to
APIs
Are you wondering what is an API?
1
5
API stands for Application
Programming Interface
API is a set of routines, protocols,
and tools for building Software
Application
6
History of APIs
● Late 1990s as web services.
● Salesforce released its first API in 2000.
● Amazon, Flickr, Facebook, and Twitter
Types of APIs
Public
Open to anyone. Ex:
Google APIs
Private
Requires specific
rights or license. In-
house APIs
Shared/Partner
Requires specific
rights or license. Ex:
Expedia, Airbnb
8
What is an API call?
Types of API Protocols
● SOAP (Simple Object Access Protocol)
● REST (REpresentational State Transfer)
● GraphQL
● JSON-RPC (JavaScript Object Notation- Remote Procedural Call)
● gRPC (Google Remote Procedural Call)
● XML-RPC (Extensible Markup Language Remote Procedural Call)
● Apache Thrift
HTTP Request methods
HTTP Response codes
API Testing
What, How, Why?
2
What is API Testing?
API testing is the process of sending requests to an
API and monitoring the responses to ensure its
behaving as expected.
Types of API Testing
● Validation Testing
● Functional Testing
● Integration Testing
● Security Testing
● Performance Testing
● Reliability Testing
● API Documentation Testing
● Regression Testing
Advantages of API Testing
● Earlier Testing
● Faster
● Efficient
● Language independent
● Less maintenance
Challenges in API Testing
● Lack of documentation
● Initial Project setup
● Tool selection
● Without UI, tough to visualize the flow
● Unstable APIs
● Exceptional handling
● Lack of skilled testers
Tools available
Introduction to
Postman
Play your heart out
3
19
Building blocks of Postman
● Collections
● Request/Response
● Variables
● Environments
Postman HOME page
21
Small exercises
Any questions ?
Thanks!
23
Credits
Special thanks to all the people who made and
released these awesome resources for free:
◉ Presentation template by SlidesCarnival
◉ Photographs by Unsplash
24

API Testing for everyone.pptx

  • 1.
  • 2.
    I am Pricilla TeamLeader, Billennium IT Services (M) Sdn. Bhd. You can find me at @pricillabelwin Hello! 2
  • 3.
    What’s on theagenda today ◉ Brief introduction to APIs ◉ Deep dive into API Testing ◉ Introduction to Postman ◉ Demo 3
  • 4.
    “ The only wayyou can stay on top is to remember to touch bottom and get back to basics - Shane Black 4
  • 5.
    Introduction to APIs Are youwondering what is an API? 1 5
  • 6.
    API stands forApplication Programming Interface API is a set of routines, protocols, and tools for building Software Application 6
  • 7.
    History of APIs ●Late 1990s as web services. ● Salesforce released its first API in 2000. ● Amazon, Flickr, Facebook, and Twitter
  • 8.
    Types of APIs Public Opento anyone. Ex: Google APIs Private Requires specific rights or license. In- house APIs Shared/Partner Requires specific rights or license. Ex: Expedia, Airbnb 8
  • 9.
    What is anAPI call?
  • 10.
    Types of APIProtocols ● SOAP (Simple Object Access Protocol) ● REST (REpresentational State Transfer) ● GraphQL ● JSON-RPC (JavaScript Object Notation- Remote Procedural Call) ● gRPC (Google Remote Procedural Call) ● XML-RPC (Extensible Markup Language Remote Procedural Call) ● Apache Thrift
  • 11.
  • 12.
  • 13.
  • 14.
    What is APITesting? API testing is the process of sending requests to an API and monitoring the responses to ensure its behaving as expected.
  • 15.
    Types of APITesting ● Validation Testing ● Functional Testing ● Integration Testing ● Security Testing ● Performance Testing ● Reliability Testing ● API Documentation Testing ● Regression Testing
  • 16.
    Advantages of APITesting ● Earlier Testing ● Faster ● Efficient ● Language independent ● Less maintenance
  • 17.
    Challenges in APITesting ● Lack of documentation ● Initial Project setup ● Tool selection ● Without UI, tough to visualize the flow ● Unstable APIs ● Exceptional handling ● Lack of skilled testers
  • 18.
  • 19.
  • 20.
    Building blocks ofPostman ● Collections ● Request/Response ● Variables ● Environments
  • 21.
  • 22.
  • 23.
  • 24.
    Credits Special thanks toall the people who made and released these awesome resources for free: ◉ Presentation template by SlidesCarnival ◉ Photographs by Unsplash 24

Editor's Notes

  • #13 https://httpstatusdogs.com/