SlideShare a Scribd company logo
1 of 10
Download to read offline
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 toolsQACraft
 
Just Enough (Automated) Testing
Just Enough (Automated) TestingJust Enough (Automated) Testing
Just Enough (Automated) TestingSauce 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 solutionsQUONTRASOLUTIONS
 
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 QuontraSolutionsQuontra Solutions
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation TestingArchana Krushnan
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNetHai 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 implementationsSteven Li
 
Functional testing
Functional testingFunctional testing
Functional testingVaibhav Dash
 
IGT's Intelligent Automation Framework
IGT's Intelligent Automation FrameworkIGT's Intelligent Automation Framework
IGT's Intelligent Automation Frameworkgreyaudrina
 
How to Optimise Continuous Testing
How to Optimise Continuous TestingHow to Optimise Continuous Testing
How to Optimise Continuous TestingSauce Labs
 
Which test cases to automate
Which test cases to automateWhich test cases to automate
Which test cases to automatesachxn1
 
Creating Digital Confidence with Test Automation
Creating Digital Confidence with Test AutomationCreating Digital Confidence with Test Automation
Creating Digital Confidence with Test AutomationSauce 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.comIdexcel 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.pdfAmeliaJonas2
 
What is API test automation
What is API test automation What is API test automation
What is API test automation Aparna Sharma
 
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 itZoe 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 TestingMindfire 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 TestingSwetha 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.pdfpcloudy2
 
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-Testingb4usolution .
 
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.pptxTest 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 overcomeTestingXperts
 
[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 TzemachDavid 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.pdfTestrig 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 GuideTestrig 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 Testingwebomates
 
Software Testing In Media
Software Testing In MediaSoftware Testing In Media
Software Testing In Mediawebomates
 
OTT Testing Challenges
OTT Testing ChallengesOTT Testing Challenges
OTT Testing Challengeswebomates
 
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 Testingwebomates
 
Functional vs non-functional testing.pdf
Functional vs non-functional testing.pdfFunctional vs non-functional testing.pdf
Functional vs non-functional testing.pdfwebomates
 
DevOps continuous testing service
DevOps continuous testing serviceDevOps continuous testing service
DevOps continuous testing servicewebomates
 
Test optimization in software testing.pdf
Test optimization in software testing.pdfTest optimization in software testing.pdf
Test optimization in software testing.pdfwebomates
 
Defect leakage
Defect leakageDefect leakage
Defect leakagewebomates
 
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 coveragewebomates
 
How to Implement shift left testing
How to Implement shift left testingHow to Implement shift left testing
How to Implement shift left testingwebomates
 
Automation failure
Automation failureAutomation failure
Automation failurewebomates
 
DevOps Testing
DevOps TestingDevOps Testing
DevOps Testingwebomates
 
Media Testing services
Media Testing servicesMedia Testing services
Media Testing serviceswebomates
 
Continue with DevOps Testing
Continue with DevOps TestingContinue with DevOps Testing
Continue with DevOps Testingwebomates
 
OTT Testing / Media Testing services
OTT Testing / Media Testing servicesOTT Testing / Media Testing services
OTT Testing / Media Testing serviceswebomates
 
Defect Triage in software testing.pdf
Defect Triage in software testing.pdfDefect Triage in software testing.pdf
Defect Triage in software testing.pdfwebomates
 
Why code coverage
Why code coverageWhy code coverage
Why code coveragewebomates
 

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

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 

Recently uploaded (20)

E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 

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