SlideShare a Scribd company logo
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
API testing is a critical component of the whole testing process.
It deals with testing the business logic of an application, which
is typically encompassed in the business layer and is
instrumental in handling all the transactions between user
interface and underlying data. It is deemed as a part of
Integration testing that involves verification of functionality,
performance and robustness of API’s.
API’s evolve and develop as and when business and functional
requirements change, thus making it even more important to
test them on a continuous basis. They also become suitable
candidates for automation testing since they need to be tested
with every release cycle. Besides checking for the functionality
API testing tests for error condition handling, response
handling in terms of time and data, performance issues, security
issues etc. It is quite evident that API testing is the key to testing
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
the business requirements, thus it is imperative to follow certain
best practices in order to achieve good outcome.
Following table gives a quick overview of what to do and what
not to do while conducting API testing. These points are further
elaborated in entailing paragraphs.
Do’sDon’tsCategorize the test casesUse static data Prioritize
API callsIgnore dependenciesAutomateMiss including response
time assertionsChoose suitable automation toolTake security
testing slightly positive and Negative testing ignores one time
call functions share test results Keeping documentation on low
priority reform load tests
What to do for successful API Testing
• Categorize the test cases
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
An application may involve several APIs which may sometimes
run into triple digits. In order to maintain the test cases for
quick reference and execution, it is a good idea to categorize
them.
• Prioritize the API calls
Calls made to API’s should be prioritized for ease of testing.
• Automate the API testing process
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
API tests are usually deemed stable and major changes are done
mainly when business logic is changed. This makes them perfect
candidates for test automation. Since API testing is a type of
Black-box testing different combinations of inputs can be used
to test a scenario, making this a Data driven test approach. The
test data, scripts and API endpoints can be saved for execution
at a later stage.
• Choose a suitable Automation Testing Tool
There are several tools, like Parasoft
SOATest, POSTMAN, RestAssured, JMeter, Swagger, API
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
Fortress etc that are available in the market for API testing.
Choose a suitable tool carefully to leverage the benefits of
automation.
• Create positive and negative tests
For a complete scenario check API testing requires to run both,
positive and negative tests. Since API testing is a data driven
approach, various combinations of data inputs can be used to
test these. In either case, proper care must be taken to ensure
that API returns appropriate response to the calling function.
• Share the test results
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
API testing failure should be brought to the attention of all the
stakeholders involved on a priority basis. Even better approach
would be to send out immediate notifications using team
notification channels in event of any failure. This will help the
team in taking prompt action.
• Perform Load Tests
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
An API should handle load tests either by functioning as
expected or failing gracefully in a predictable manner. It should
be able to handle a variety of input data and manage error
conditions, in case of failure.
What to avoid during API Testing
Following points should be taken care of while performing API
testing.
• Using static data
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
In a real life scenario, API endpoints rely on inputs from calling
code or on the outputs of other API’s. Using static data
embedded in code or otherwise will yield incorrect results when
the API is called in the live environment. It is prudent to
perform a proper Integration testing of API’s by following actual
user and data flows.
• Ignore dependencies
API’s often depend on other API’s and sometimes on external
services also. It is vital to test the third party API’s in test
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
environment and then test the dependent API along with those
API’s to have a holistic picture. In a nutshell, the whole
ecosystem needs to be tested in order to ensure that any
changes/upgrades in other API’s does not impact the
functioning of dependent API’s.
• Missing the response time assertions
It is important to keep track of the response time of API calls.
While a test may pass functionally, there could be a number of
reasons for delayed response. This affects the end user
experience. Any application which takes too long to compute or
load or give results is not what the end user wishes to use.
Hence, it is a good practice to include a time based test to check
the response time. If API is taking too long to respond then it
should be reported so that the developers can look into the code
to understand the delayed response.Click here to read more: Api
Automation
Do’s and Don’ts of API Testing WWW.WEBOMATES.COM
Tags: API Testing, Postman, REST API, Swagger

More Related Content

What's hot

Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing tools
QACraft
 
Just Enough (Automated) Testing
Just Enough (Automated) TestingJust Enough (Automated) Testing
Just Enough (Automated) Testing
Sauce Labs
 
Designing a Test Automation Framework By Quontra solutions
Designing a Test Automation Framework By Quontra solutionsDesigning a Test Automation Framework By Quontra solutions
Designing a Test Automation Framework By Quontra solutions
QUONTRASOLUTIONS
 
Test Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutionsTest Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutions
Quontra Solutions
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
Archana Krushnan
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNet
Hai Tran Son
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation
OmarUsman6
 
WSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile EnvironmentWSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile EnvironmentWSO2
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
Steven Li
 
Functional testing
Functional testingFunctional testing
Functional testing
Vaibhav Dash
 
IGT's Intelligent Automation Framework
IGT's Intelligent Automation FrameworkIGT's Intelligent Automation Framework
IGT's Intelligent Automation Framework
greyaudrina
 
How to Optimise Continuous Testing
How to Optimise Continuous TestingHow to Optimise Continuous Testing
How to Optimise Continuous Testing
Sauce Labs
 
Which test cases to automate
Which test cases to automateWhich test cases to automate
Which test cases to automate
sachxn1
 
Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
Nivetha Padmanaban
 
Creating Digital Confidence with Test Automation
Creating Digital Confidence with Test AutomationCreating Digital Confidence with Test Automation
Creating Digital Confidence with Test Automation
Sauce Labs
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
Idexcel Technologies
 
WSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and AdoptionWSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and AdoptionWSO2
 
Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...
Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...
Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...
AFour Technologies
 

What's hot (20)

Automation_testing
Automation_testingAutomation_testing
Automation_testing
 
Top 20 best automation testing tools
Top 20 best automation testing toolsTop 20 best automation testing tools
Top 20 best automation testing tools
 
Just Enough (Automated) Testing
Just Enough (Automated) TestingJust Enough (Automated) Testing
Just Enough (Automated) Testing
 
Designing a Test Automation Framework By Quontra solutions
Designing a Test Automation Framework By Quontra solutionsDesigning a Test Automation Framework By Quontra solutions
Designing a Test Automation Framework By Quontra solutions
 
Test Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutionsTest Automation Framework Online Training by QuontraSolutions
Test Automation Framework Online Training by QuontraSolutions
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNet
 
Appium Presentation
Appium Presentation Appium Presentation
Appium Presentation
 
WSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile EnvironmentWSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
WSO2Con Asia 2014 - Effective Test Automation in an Agile Environment
 
Automation test scripting guidelines
Automation test scripting guidelines Automation test scripting guidelines
Automation test scripting guidelines
 
Test automation principles, terminologies and implementations
Test automation principles, terminologies and implementationsTest automation principles, terminologies and implementations
Test automation principles, terminologies and implementations
 
Functional testing
Functional testingFunctional testing
Functional testing
 
IGT's Intelligent Automation Framework
IGT's Intelligent Automation FrameworkIGT's Intelligent Automation Framework
IGT's Intelligent Automation Framework
 
How to Optimise Continuous Testing
How to Optimise Continuous TestingHow to Optimise Continuous Testing
How to Optimise Continuous Testing
 
Which test cases to automate
Which test cases to automateWhich test cases to automate
Which test cases to automate
 
Automation With A Tool Demo
Automation With A Tool DemoAutomation With A Tool Demo
Automation With A Tool Demo
 
Creating Digital Confidence with Test Automation
Creating Digital Confidence with Test AutomationCreating Digital Confidence with Test Automation
Creating Digital Confidence with Test Automation
 
Test Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.comTest Automation Framework Design | www.idexcel.com
Test Automation Framework Design | www.idexcel.com
 
WSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and AdoptionWSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and Adoption
 
Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...
Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...
Afourtech Helped A Data Integration And Analytics Platform Provider With Effi...
 

Similar to Do’s and don’ts of api testing

Do you know How to Effectively Test APIs.pdf
Do you know How to Effectively Test APIs.pdfDo you know How to Effectively Test APIs.pdf
Do you know How to Effectively Test APIs.pdf
AmeliaJonas2
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
ssuser751c981
 
What is API test automation
What is API test automation What is API test automation
What is API test automation
Aparna Sharma
 
What is API Testing_ .pdf
What is API Testing_ .pdfWhat is API Testing_ .pdf
What is API Testing_ .pdf
Domain News Tech
 
Api testing and steps to do it
Api testing and steps to do itApi testing and steps to do it
Api testing and steps to do it
Zoe Gilbert
 
Effective practices for API Test Automation
 Effective practices for API Test Automation  Effective practices for API Test Automation
Effective practices for API Test Automation
Cigniti Technologies Ltd
 
Accelerating Software Product Development with API Testing
Accelerating Software Product Development with API TestingAccelerating Software Product Development with API Testing
Accelerating Software Product Development with API Testing
Mindfire LLC
 
Can you trust your APIs - White Paper on API Testing
Can you trust your APIs - White Paper on API TestingCan you trust your APIs - White Paper on API Testing
Can you trust your APIs - White Paper on API Testing
Swetha Sridharan
 
How To Get Started With API Testing In Your Organization.pdf
How To Get Started With API Testing In Your Organization.pdfHow To Get Started With API Testing In Your Organization.pdf
How To Get Started With API Testing In Your Organization.pdf
pcloudy2
 
API Documentation - StudySection
API Documentation - StudySection API Documentation - StudySection
API Documentation - StudySection
Study Section
 
API Documentation - StudySection
API Documentation - StudySection API Documentation - StudySection
API Documentation - StudySection
Study Section
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
b4usolution .
 
What is API Testing Types and Benefits of API Testing.pptx
What is API Testing Types and Benefits of API Testing.pptxWhat is API Testing Types and Benefits of API Testing.pptx
What is API Testing Types and Benefits of API Testing.pptx
Test Evolve
 
5 challenges of api testing and how to overcome
5 challenges of api testing and how to overcome5 challenges of api testing and how to overcome
5 challenges of api testing and how to overcome
TestingXperts
 
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage [WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
WSO2
 
An introduction to api testing | David Tzemach
An introduction to api testing | David TzemachAn introduction to api testing | David Tzemach
An introduction to api testing | David Tzemach
David Tzemach
 
What is API Testing with Real-life Examples.pdf
What is API Testing with Real-life Examples.pdfWhat is API Testing with Real-life Examples.pdf
What is API Testing with Real-life Examples.pdf
Testrig Technologies
 
Optimizing API Performance Testing A Comprehensive Guide
Optimizing API Performance Testing A Comprehensive GuideOptimizing API Performance Testing A Comprehensive Guide
Optimizing API Performance Testing A Comprehensive Guide
Testrig Technologies
 
API Testing course in hyderabad...........
API Testing course in hyderabad...........API Testing course in hyderabad...........
API Testing course in hyderabad...........
sowmyavibhin
 
API testing training in hyderabad .
API testing training in hyderabad                .API testing training in hyderabad                .
API testing training in hyderabad .
rajasrichalamala3zen
 

Similar to Do’s and don’ts of api testing (20)

Do you know How to Effectively Test APIs.pdf
Do you know How to Effectively Test APIs.pdfDo you know How to Effectively Test APIs.pdf
Do you know How to Effectively Test APIs.pdf
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 
What is API test automation
What is API test automation What is API test automation
What is API test automation
 
What is API Testing_ .pdf
What is API Testing_ .pdfWhat is API Testing_ .pdf
What is API Testing_ .pdf
 
Api testing and steps to do it
Api testing and steps to do itApi testing and steps to do it
Api testing and steps to do it
 
Effective practices for API Test Automation
 Effective practices for API Test Automation  Effective practices for API Test Automation
Effective practices for API Test Automation
 
Accelerating Software Product Development with API Testing
Accelerating Software Product Development with API TestingAccelerating Software Product Development with API Testing
Accelerating Software Product Development with API Testing
 
Can you trust your APIs - White Paper on API Testing
Can you trust your APIs - White Paper on API TestingCan you trust your APIs - White Paper on API Testing
Can you trust your APIs - White Paper on API Testing
 
How To Get Started With API Testing In Your Organization.pdf
How To Get Started With API Testing In Your Organization.pdfHow To Get Started With API Testing In Your Organization.pdf
How To Get Started With API Testing In Your Organization.pdf
 
API Documentation - StudySection
API Documentation - StudySection API Documentation - StudySection
API Documentation - StudySection
 
API Documentation - StudySection
API Documentation - StudySection API Documentation - StudySection
API Documentation - StudySection
 
B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
What is API Testing Types and Benefits of API Testing.pptx
What is API Testing Types and Benefits of API Testing.pptxWhat is API Testing Types and Benefits of API Testing.pptx
What is API Testing Types and Benefits of API Testing.pptx
 
5 challenges of api testing and how to overcome
5 challenges of api testing and how to overcome5 challenges of api testing and how to overcome
5 challenges of api testing and how to overcome
 
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage [WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
 
An introduction to api testing | David Tzemach
An introduction to api testing | David TzemachAn introduction to api testing | David Tzemach
An introduction to api testing | David Tzemach
 
What is API Testing with Real-life Examples.pdf
What is API Testing with Real-life Examples.pdfWhat is API Testing with Real-life Examples.pdf
What is API Testing with Real-life Examples.pdf
 
Optimizing API Performance Testing A Comprehensive Guide
Optimizing API Performance Testing A Comprehensive GuideOptimizing API Performance Testing A Comprehensive Guide
Optimizing API Performance Testing A Comprehensive Guide
 
API Testing course in hyderabad...........
API Testing course in hyderabad...........API Testing course in hyderabad...........
API Testing course in hyderabad...........
 
API testing training in hyderabad .
API testing training in hyderabad                .API testing training in hyderabad                .
API testing training in hyderabad .
 

More from webomates

Artificial intelligence Testing
Artificial intelligence TestingArtificial intelligence Testing
Artificial intelligence Testing
webomates
 
Software Testing In Media
Software Testing In MediaSoftware Testing In Media
Software Testing In Media
webomates
 
OTT Testing Challenges
OTT Testing ChallengesOTT Testing Challenges
OTT Testing Challenges
webomates
 
API Testing vs UI testing
API Testing vs UI testing API Testing vs UI testing
API Testing vs UI testing
webomates
 
Rtm In Software Testing
Rtm In Software TestingRtm In Software Testing
Rtm In Software Testing
webomates
 
Functional vs non-functional testing.pdf
Functional vs non-functional testing.pdfFunctional vs non-functional testing.pdf
Functional vs non-functional testing.pdf
webomates
 
DevOps continuous testing service
DevOps continuous testing serviceDevOps continuous testing service
DevOps continuous testing service
webomates
 
Test optimization in software testing.pdf
Test optimization in software testing.pdfTest optimization in software testing.pdf
Test optimization in software testing.pdf
webomates
 
Defect leakage
Defect leakageDefect leakage
Defect leakage
webomates
 
Continuous testing in devops.
Continuous testing in devops.Continuous testing in devops.
Continuous testing in devops.
webomates
 
Testing code coverage
Testing code coverageTesting code coverage
Testing code coverage
webomates
 
How to Implement shift left testing
How to Implement shift left testingHow to Implement shift left testing
How to Implement shift left testing
webomates
 
Automation failure
Automation failureAutomation failure
Automation failure
webomates
 
DevOps Testing
DevOps TestingDevOps Testing
DevOps Testing
webomates
 
Media Testing services
Media Testing servicesMedia Testing services
Media Testing services
webomates
 
Continue with DevOps Testing
Continue with DevOps TestingContinue with DevOps Testing
Continue with DevOps Testing
webomates
 
OTT Testing / Media Testing services
OTT Testing / Media Testing servicesOTT Testing / Media Testing services
OTT Testing / Media Testing services
webomates
 
Defect Triage in software testing.pdf
Defect Triage in software testing.pdfDefect Triage in software testing.pdf
Defect Triage in software testing.pdf
webomates
 
Why code coverage
Why code coverageWhy code coverage
Why code coverage
webomates
 
AI Testing
AI TestingAI Testing
AI Testing
webomates
 

More from webomates (20)

Artificial intelligence Testing
Artificial intelligence TestingArtificial intelligence Testing
Artificial intelligence Testing
 
Software Testing In Media
Software Testing In MediaSoftware Testing In Media
Software Testing In Media
 
OTT Testing Challenges
OTT Testing ChallengesOTT Testing Challenges
OTT Testing Challenges
 
API Testing vs UI testing
API Testing vs UI testing API Testing vs UI testing
API Testing vs UI testing
 
Rtm In Software Testing
Rtm In Software TestingRtm In Software Testing
Rtm In Software Testing
 
Functional vs non-functional testing.pdf
Functional vs non-functional testing.pdfFunctional vs non-functional testing.pdf
Functional vs non-functional testing.pdf
 
DevOps continuous testing service
DevOps continuous testing serviceDevOps continuous testing service
DevOps continuous testing service
 
Test optimization in software testing.pdf
Test optimization in software testing.pdfTest optimization in software testing.pdf
Test optimization in software testing.pdf
 
Defect leakage
Defect leakageDefect leakage
Defect leakage
 
Continuous testing in devops.
Continuous testing in devops.Continuous testing in devops.
Continuous testing in devops.
 
Testing code coverage
Testing code coverageTesting code coverage
Testing code coverage
 
How to Implement shift left testing
How to Implement shift left testingHow to Implement shift left testing
How to Implement shift left testing
 
Automation failure
Automation failureAutomation failure
Automation failure
 
DevOps Testing
DevOps TestingDevOps Testing
DevOps Testing
 
Media Testing services
Media Testing servicesMedia Testing services
Media Testing services
 
Continue with DevOps Testing
Continue with DevOps TestingContinue with DevOps Testing
Continue with DevOps Testing
 
OTT Testing / Media Testing services
OTT Testing / Media Testing servicesOTT Testing / Media Testing services
OTT Testing / Media Testing services
 
Defect Triage in software testing.pdf
Defect Triage in software testing.pdfDefect Triage in software testing.pdf
Defect Triage in software testing.pdf
 
Why code coverage
Why code coverageWhy code coverage
Why code coverage
 
AI Testing
AI TestingAI Testing
AI Testing
 

Recently uploaded

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 

Recently uploaded (20)

Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 

Do’s and don’ts of api testing

  • 1. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM API testing is a critical component of the whole testing process. It deals with testing the business logic of an application, which is typically encompassed in the business layer and is instrumental in handling all the transactions between user interface and underlying data. It is deemed as a part of Integration testing that involves verification of functionality, performance and robustness of API’s. API’s evolve and develop as and when business and functional requirements change, thus making it even more important to test them on a continuous basis. They also become suitable candidates for automation testing since they need to be tested with every release cycle. Besides checking for the functionality API testing tests for error condition handling, response handling in terms of time and data, performance issues, security issues etc. It is quite evident that API testing is the key to testing
  • 2. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM the business requirements, thus it is imperative to follow certain best practices in order to achieve good outcome. Following table gives a quick overview of what to do and what not to do while conducting API testing. These points are further elaborated in entailing paragraphs. Do’sDon’tsCategorize the test casesUse static data Prioritize API callsIgnore dependenciesAutomateMiss including response time assertionsChoose suitable automation toolTake security testing slightly positive and Negative testing ignores one time call functions share test results Keeping documentation on low priority reform load tests What to do for successful API Testing • Categorize the test cases
  • 3. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM An application may involve several APIs which may sometimes run into triple digits. In order to maintain the test cases for quick reference and execution, it is a good idea to categorize them. • Prioritize the API calls Calls made to API’s should be prioritized for ease of testing. • Automate the API testing process
  • 4. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM API tests are usually deemed stable and major changes are done mainly when business logic is changed. This makes them perfect candidates for test automation. Since API testing is a type of Black-box testing different combinations of inputs can be used to test a scenario, making this a Data driven test approach. The test data, scripts and API endpoints can be saved for execution at a later stage. • Choose a suitable Automation Testing Tool There are several tools, like Parasoft SOATest, POSTMAN, RestAssured, JMeter, Swagger, API
  • 5. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM Fortress etc that are available in the market for API testing. Choose a suitable tool carefully to leverage the benefits of automation. • Create positive and negative tests For a complete scenario check API testing requires to run both, positive and negative tests. Since API testing is a data driven approach, various combinations of data inputs can be used to test these. In either case, proper care must be taken to ensure that API returns appropriate response to the calling function. • Share the test results
  • 6. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM API testing failure should be brought to the attention of all the stakeholders involved on a priority basis. Even better approach would be to send out immediate notifications using team notification channels in event of any failure. This will help the team in taking prompt action. • Perform Load Tests
  • 7. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM An API should handle load tests either by functioning as expected or failing gracefully in a predictable manner. It should be able to handle a variety of input data and manage error conditions, in case of failure. What to avoid during API Testing Following points should be taken care of while performing API testing. • Using static data
  • 8. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM In a real life scenario, API endpoints rely on inputs from calling code or on the outputs of other API’s. Using static data embedded in code or otherwise will yield incorrect results when the API is called in the live environment. It is prudent to perform a proper Integration testing of API’s by following actual user and data flows. • Ignore dependencies API’s often depend on other API’s and sometimes on external services also. It is vital to test the third party API’s in test
  • 9. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM environment and then test the dependent API along with those API’s to have a holistic picture. In a nutshell, the whole ecosystem needs to be tested in order to ensure that any changes/upgrades in other API’s does not impact the functioning of dependent API’s. • Missing the response time assertions It is important to keep track of the response time of API calls. While a test may pass functionally, there could be a number of reasons for delayed response. This affects the end user experience. Any application which takes too long to compute or load or give results is not what the end user wishes to use. Hence, it is a good practice to include a time based test to check the response time. If API is taking too long to respond then it should be reported so that the developers can look into the code to understand the delayed response.Click here to read more: Api Automation
  • 10. Do’s and Don’ts of API Testing WWW.WEBOMATES.COM Tags: API Testing, Postman, REST API, Swagger