SlideShare a Scribd company logo
3
Most read
9
Most read
20
Most read
1
11/19/2018
API Testing Tools Selection Work flow
API Methods Advantages Demo
API - REST API
&
API Testing
Tools for API testing How API works?
&
Testing types
Different API methods Advantages of API testing Live Demo
2
11/19/2018
API stands for Application Programming
Interface.
API is an software to software interface,
not a user interface.
 With APIs, application talk to each other
without any user knowledge or
intervention.
 Implemented by writing function calls in
the program.
3
11/19/2018
4
REST- stands for Representational State Transfer.
It is a set of functions to which the developers performs
requests and receive responses. In REST API
interaction is made via HTTP protocol.
REST also allows computers to talk to each other over
a network.
It involves using HTTP methods to send an receive
messages, and does not require a strict message
definition, unlike Web Services.
REST messages often take the form of XML, or
JavaScript Object Notation (JSON).
11/19/2018
5
API testing uses software to send calls to the API and
get the output.
API testing treats the component user test as black
box.
 The goal of API testing is to verify correct
performance and error handling of the component prior
to its integration into an application.
11/19/2018
6
 Data Tier: Data is retrieved from the database and file system and
then stored.
 Business Logic Tier: This is the brain of the application, this
processes the data between the layers, coordinating the application,
processing commands, and making logical decisions. This layer is
made of the API.
 Presentation Tier: This top layer of the app is the user interface,
which translates tasks into something the user understands.
11/19/2018
7
11/19/2018
8
 SOAPUI
 Runscope
 Eclipse SDK tool
 Curl
 Cfix
 Check
 CTESK
 dotTEST
 Postman
11/19/2018
9
Postman is a Google Chrome app for interacting with HTTP APIs.
11/19/2018
Why Postman
1. Easy to create test suites.
2. Store information for running tests in different
environments.
3. Store data for use in other tests.
4. Integrates with build systems, such as Jenkins
using the Newman command line tool.
5. Easily move tests and environments to code
repositories.
6. On-the-fly testing
10
Functionality testing - The API works and does exactly what it’s
supposed to do.
Reliability testing - The API can be consistently connected to and lead
to consistent results.
Load testing- The API can handle a large amount of calls
Creativity testing -The API can handle being used in different ways.
Security testing - The API has defined security requirements including
authentication, permissions and access controls.
Proficiency testing - The API increases what developers are able to
do.
API documentation testing – This is also called discovery testing, the
API documentation easily guides the user.
Negative Testing -Checking for every kind of wrong input the user can
possibly supply.
11/19/2018
11
4 Commonly Used Methods-
 GET- Provides a read only access to a
resource.
 POST- Used to update an existing resource
or create a new resource.
 PUT- Used to create a new resource.
 DELETE-Used to Remove a resource.
RESOURCE GET PUT POST DELETE
URL Retrieve the
member
Create/
Replace a
new
resource
Create new
entry
Used to
remove a
resource
11/19/2018
12
URL- http://www.pmts6currentapi.tpgsi.com:9333
11/19/2018
13
URL- http://www.pmts6currentapi.tpgsi.com:9333/token
11/19/2018
14
11/19/2018
www.pmts6currentapi.tpgsi.com:9333/api/Customer/Search/Asharaminfra
15
11/19/2018
www.pmts6currentapi.tpgsi.com:9333/api/Customer/Contract
Body - JSON(application/ json)
{
"id": 0,
"contractCode": "ASHARAM1945-1945-2015",
"contractName": "ASHARAM65487-1945",
"fromDate": "2018-01-01T00:00:00",
"toDate": "2019-12-31T00:00:00",
"isActive": true,
"contractDescription": "Materials and properties
Being ill 1 intransitive transitive.
"projectName": null,
"projectContractTypeId": 3,
"projectContractTypeName": null
}
Status- 200Ok
16
Response Status Code Meaning
200 Ok Successful requests other than creations and deletions.
201 Created Successful creation of a queue, topic, temporary queue, temporary topic,
session, producer, consumer, listener, queue browser, or message.
204 No Content Successful deletion of a queue, topic, session, producer, or listener.
400 Bad Request The path info doesn't have the right format, or a parameter or request body
value doesn't have the right format, or a required parameter is missing, or
values have the right format but are invalid in some way (for
example, destination parameter does not exist, content is too big, or
client ID is in use).
403 Forbidden The invoker is not authorized to invoke the operation.
404 Not Found The object referenced by the path does not exist.
405 Method Not Allowed The method is not one of those allowed for the path.
409 Conflict An attempt was made to create an object that already exists.
500 Internal Server Error The execution of the service failed in some way.
11/19/2018
17
 Time Effective
 Language Independent
 Test core Functionality
 Reduce Testing Cost
 Reduced Risks
11/19/2018
18
API LIVE DEMO
11/19/2018
19
11/19/2018
20
11/19/2018

More Related Content

What's hot (20)

PDF
API Testing: The heart of functional testing" with Bj Rollison
TEST Huddle
 
PPSX
API Test Automation
SQALab
 
PDF
API Testing. Streamline your testing process.
Andrey Oleynik
 
PPT
Postman.ppt
ParrotBAD
 
PDF
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
Postman
 
PPTX
An introduction to api testing | David Tzemach
David Tzemach
 
PDF
4 Major Advantages of API Testing
QASource
 
PDF
API_Testing_with_Postman
Mithilesh Singh
 
PDF
How to Automate API Testing
Bruno Pedro
 
PPTX
Postman. From simple API test to end to end scenario
HYS Enterprise
 
PDF
Postman
Igor Shubovych
 
PPTX
RESTful API Testing using Postman, Newman, and Jenkins
QASymphony
 
PPTX
Test Design and Automation for REST API
Ivan Katunou
 
PPTX
REST API Design & Development
Ashok Pundit
 
PPTX
Api Testing
Vishwanath KC
 
DOCX
Api testing bible using postman
Abhishek Saxena
 
PPTX
What is an API
Elliott Richmond
 
PPTX
Belajar Postman test runner
Fachrul Choliluddin
 
PDF
An Introduction To Automated API Testing
Sauce Labs
 
PDF
Rest API Automation with REST Assured
TO THE NEW Pvt. Ltd.
 
API Testing: The heart of functional testing" with Bj Rollison
TEST Huddle
 
API Test Automation
SQALab
 
API Testing. Streamline your testing process.
Andrey Oleynik
 
Postman.ppt
ParrotBAD
 
POST/CON 2019 Workshop: Testing, Automated Testing, and Reporting APIs with P...
Postman
 
An introduction to api testing | David Tzemach
David Tzemach
 
4 Major Advantages of API Testing
QASource
 
API_Testing_with_Postman
Mithilesh Singh
 
How to Automate API Testing
Bruno Pedro
 
Postman. From simple API test to end to end scenario
HYS Enterprise
 
RESTful API Testing using Postman, Newman, and Jenkins
QASymphony
 
Test Design and Automation for REST API
Ivan Katunou
 
REST API Design & Development
Ashok Pundit
 
Api Testing
Vishwanath KC
 
Api testing bible using postman
Abhishek Saxena
 
What is an API
Elliott Richmond
 
Belajar Postman test runner
Fachrul Choliluddin
 
An Introduction To Automated API Testing
Sauce Labs
 
Rest API Automation with REST Assured
TO THE NEW Pvt. Ltd.
 

Similar to Api Testing (20)

PPTX
API Design- Best Practices
Prakash Bhandari
 
PDF
Session 8 Android Web Services - Part 1.pdf
EngmohammedAlzared
 
PDF
The Complete Guide to API Development in 2022.pdf
Concetto Labs
 
PPTX
API Management Workshop (at Startupbootcamp Berlin)
3scale
 
PDF
The ultimate api checklist by Blendr.io
Blendr.io
 
PDF
22 REST & JSON API Design #burningkeyboards
Denis Ristic
 
PPTX
INTERFACE by apidays_What's your Type? Understanding API Types and Choosing t...
apidays
 
PDF
A Snapshot of API Design Trends In 2019
Bill Doerrfeld
 
PDF
7 network programmability concepts python-ansible
SagarR24
 
PPTX
Timings API: Performance Assertion during the functional testing
PetrosPlakogiannis
 
PDF
7 network programmability concepts api
SagarR24
 
PDF
7 network programmability concepts api
SagarR24
 
PDF
Xamarin Workshop Noob to Master – Week 5
Charlin Agramonte
 
PDF
Best practices and advantages of REST APIs
Aparna Sharma
 
PDF
A_Complete_Guide_to_API_Development.pdf
PamRobert
 
PDF
API Best Practices
EmmanuelParaskakis1
 
PPTX
Kochi Mulesoft Meetup #6
sumitahuja94
 
PPTX
2022 APIsecure_Securing APIs with Open Standards
APIsecure_ Official
 
PDF
Developing IBM Connections Community Apps using Domino
LetsConnect
 
PPTX
API Workshop: Deep dive into REST APIs
Tom Johnson
 
API Design- Best Practices
Prakash Bhandari
 
Session 8 Android Web Services - Part 1.pdf
EngmohammedAlzared
 
The Complete Guide to API Development in 2022.pdf
Concetto Labs
 
API Management Workshop (at Startupbootcamp Berlin)
3scale
 
The ultimate api checklist by Blendr.io
Blendr.io
 
22 REST & JSON API Design #burningkeyboards
Denis Ristic
 
INTERFACE by apidays_What's your Type? Understanding API Types and Choosing t...
apidays
 
A Snapshot of API Design Trends In 2019
Bill Doerrfeld
 
7 network programmability concepts python-ansible
SagarR24
 
Timings API: Performance Assertion during the functional testing
PetrosPlakogiannis
 
7 network programmability concepts api
SagarR24
 
7 network programmability concepts api
SagarR24
 
Xamarin Workshop Noob to Master – Week 5
Charlin Agramonte
 
Best practices and advantages of REST APIs
Aparna Sharma
 
A_Complete_Guide_to_API_Development.pdf
PamRobert
 
API Best Practices
EmmanuelParaskakis1
 
Kochi Mulesoft Meetup #6
sumitahuja94
 
2022 APIsecure_Securing APIs with Open Standards
APIsecure_ Official
 
Developing IBM Connections Community Apps using Domino
LetsConnect
 
API Workshop: Deep dive into REST APIs
Tom Johnson
 
Ad

More from Vishwanath KC (6)

PPT
Introduction to Agile Scrum Methodology
Vishwanath KC
 
PPTX
Cucumber With Selenium
Vishwanath KC
 
PPTX
Automation frameworks
Vishwanath KC
 
PPTX
Time management
Vishwanath KC
 
PPTX
Non-functional testing
Vishwanath KC
 
PPTX
Jasmine framework
Vishwanath KC
 
Introduction to Agile Scrum Methodology
Vishwanath KC
 
Cucumber With Selenium
Vishwanath KC
 
Automation frameworks
Vishwanath KC
 
Time management
Vishwanath KC
 
Non-functional testing
Vishwanath KC
 
Jasmine framework
Vishwanath KC
 
Ad

Recently uploaded (20)

PDF
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PDF
Protecting the Digital World Cyber Securit
dnthakkar16
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PDF
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
PPTX
Farrell__10e_ch04_PowerPoint.pptx Programming Logic and Design slides
bashnahara11
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PPT
Brief History of Python by Learning Python in three hours
adanechb21
 
PDF
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
 
PDF
How Agentic AI Networks are Revolutionizing Collaborative AI Ecosystems in 2025
ronakdubey419
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
Troubleshooting Virtual Threads in Java!
Tier1 app
 
PDF
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
PDF
What companies do with Pharo (ESUG 2025)
ESUG
 
PDF
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
PDF
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 
Applitools Platform Pulse: What's New and What's Coming - July 2025
Applitools
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Protecting the Digital World Cyber Securit
dnthakkar16
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
AWS_Agentic_AI_in_Indian_BFSI_A_Strategic_Blueprint_for_Customer.pdf
siddharthnetsavvies
 
Farrell__10e_ch04_PowerPoint.pptx Programming Logic and Design slides
bashnahara11
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
Brief History of Python by Learning Python in three hours
adanechb21
 
Infrastructure planning and resilience - Keith Hastings.pptx.pdf
Safe Software
 
How Agentic AI Networks are Revolutionizing Collaborative AI Ecosystems in 2025
ronakdubey419
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Troubleshooting Virtual Threads in Java!
Tier1 app
 
New Download MiniTool Partition Wizard Crack Latest Version 2025
imang66g
 
What companies do with Pharo (ESUG 2025)
ESUG
 
Using licensed Data Loss Prevention (DLP) as a strategic proactive data secur...
Q-Advise
 
advancepresentationskillshdhdhhdhdhdhhfhf
jasmenrojas249
 

Api Testing

  • 2. API Testing Tools Selection Work flow API Methods Advantages Demo API - REST API & API Testing Tools for API testing How API works? & Testing types Different API methods Advantages of API testing Live Demo 2 11/19/2018
  • 3. API stands for Application Programming Interface. API is an software to software interface, not a user interface.  With APIs, application talk to each other without any user knowledge or intervention.  Implemented by writing function calls in the program. 3 11/19/2018
  • 4. 4 REST- stands for Representational State Transfer. It is a set of functions to which the developers performs requests and receive responses. In REST API interaction is made via HTTP protocol. REST also allows computers to talk to each other over a network. It involves using HTTP methods to send an receive messages, and does not require a strict message definition, unlike Web Services. REST messages often take the form of XML, or JavaScript Object Notation (JSON). 11/19/2018
  • 5. 5 API testing uses software to send calls to the API and get the output. API testing treats the component user test as black box.  The goal of API testing is to verify correct performance and error handling of the component prior to its integration into an application. 11/19/2018
  • 6. 6  Data Tier: Data is retrieved from the database and file system and then stored.  Business Logic Tier: This is the brain of the application, this processes the data between the layers, coordinating the application, processing commands, and making logical decisions. This layer is made of the API.  Presentation Tier: This top layer of the app is the user interface, which translates tasks into something the user understands. 11/19/2018
  • 8. 8  SOAPUI  Runscope  Eclipse SDK tool  Curl  Cfix  Check  CTESK  dotTEST  Postman 11/19/2018
  • 9. 9 Postman is a Google Chrome app for interacting with HTTP APIs. 11/19/2018 Why Postman 1. Easy to create test suites. 2. Store information for running tests in different environments. 3. Store data for use in other tests. 4. Integrates with build systems, such as Jenkins using the Newman command line tool. 5. Easily move tests and environments to code repositories. 6. On-the-fly testing
  • 10. 10 Functionality testing - The API works and does exactly what it’s supposed to do. Reliability testing - The API can be consistently connected to and lead to consistent results. Load testing- The API can handle a large amount of calls Creativity testing -The API can handle being used in different ways. Security testing - The API has defined security requirements including authentication, permissions and access controls. Proficiency testing - The API increases what developers are able to do. API documentation testing – This is also called discovery testing, the API documentation easily guides the user. Negative Testing -Checking for every kind of wrong input the user can possibly supply. 11/19/2018
  • 11. 11 4 Commonly Used Methods-  GET- Provides a read only access to a resource.  POST- Used to update an existing resource or create a new resource.  PUT- Used to create a new resource.  DELETE-Used to Remove a resource. RESOURCE GET PUT POST DELETE URL Retrieve the member Create/ Replace a new resource Create new entry Used to remove a resource 11/19/2018
  • 15. 15 11/19/2018 www.pmts6currentapi.tpgsi.com:9333/api/Customer/Contract Body - JSON(application/ json) { "id": 0, "contractCode": "ASHARAM1945-1945-2015", "contractName": "ASHARAM65487-1945", "fromDate": "2018-01-01T00:00:00", "toDate": "2019-12-31T00:00:00", "isActive": true, "contractDescription": "Materials and properties Being ill 1 intransitive transitive. "projectName": null, "projectContractTypeId": 3, "projectContractTypeName": null } Status- 200Ok
  • 16. 16 Response Status Code Meaning 200 Ok Successful requests other than creations and deletions. 201 Created Successful creation of a queue, topic, temporary queue, temporary topic, session, producer, consumer, listener, queue browser, or message. 204 No Content Successful deletion of a queue, topic, session, producer, or listener. 400 Bad Request The path info doesn't have the right format, or a parameter or request body value doesn't have the right format, or a required parameter is missing, or values have the right format but are invalid in some way (for example, destination parameter does not exist, content is too big, or client ID is in use). 403 Forbidden The invoker is not authorized to invoke the operation. 404 Not Found The object referenced by the path does not exist. 405 Method Not Allowed The method is not one of those allowed for the path. 409 Conflict An attempt was made to create an object that already exists. 500 Internal Server Error The execution of the service failed in some way. 11/19/2018
  • 17. 17  Time Effective  Language Independent  Test core Functionality  Reduce Testing Cost  Reduced Risks 11/19/2018