SlideShare une entreprise Scribd logo
1  sur  50
Télécharger pour lire hors ligne
Erik R. Yverling | SmartBear


Testing APIs in the Cloud
Erik R. Überling | SmartBear


Testing APIs in the Cloud
A little bit about me
• Developer at SmartBear working on soapUI

• Lives in Stockholm, Sweden


• Agile enthusiast

• Linux and Open Source lover

• Just another fellow geek
No code :(
Recommendations!
Overview
• Golden age of APIs

• Testing APIs

• Testing APIs in the Cloud

• Testing APIs from the Cloud


• Recommendations
Golden age of APIs
Golden age of APIs
• APIs are at the core of business strategies – not just
  technology strategies
Registred APIs
                           APIs are growing rapidly




                                      Year


Source: programmableweb.com
Testing APIs

API
Quality aspects of APIs
• Functionality – does it work as expected?

• Performance – does it perform as required?

• Security – is it secured for common attacks?

• Usability – is it usable?

• Compliance – does it follow common practices?
How are APIs tested?
APIs generally implement a request-response
model for exchanging messages or data


                  Parameterized Request

         Test                                 API

                                  Response



 A simple test sends a request message and validates
 that the response message has the expected content
Testing APIs in the Cloud

      API
APIs + the Cloud = true
• High availability

• High scalability

• Easy deployment on the locations of your customer
Quality aspects of cloud APIs
• Functionality – does it work as expected?

• Performance – does it perform as required?

• Security – is it secured for common attacks?

• Usability – is it usable?

• Compliance – does it follow common practices?

• Policy and regulations– does it follow your legal regulations?
Functionality
• Does it matter where your API is deployed?

   – Timestamps?

   – Time zones?

   – Locales?
Performance
• How to handle shared resources with others?

• How to make sure that the API is able to scale?
Security
• How to handle sensitive transactions to your
  backend?
Policy and regulations
• How much of your traffic that is allowed to cross
  country boarders?

• US export controls

• Is there a limit for load testing?

• What about costs related to transactions?
Policy and regulations
• What happens if your API stops working?
Testing APIs from the Cloud


  API
Test Environment
 as a service (TEaaS)

API
Quality aspects of APIs tested from the Cloud

• Functionality – does it work as expected?

• Performance – does it perform as required?

• Security – is it secured for common attacks?

• Usability – is it usable?

• Compliance – does it follow common practices?

• Policy and regulations– does it follow your legal regulations?
Functionality
• How will your application react to request from
  different locations?
Performance
• How will your API react on distributed load?
Security
• Will you be able to test your API from all kinds of
  locations?

• Is there some locations that should not be able to
  reach the API?
Whoa!



Using the Cloud seams like a lot of work!
Recommendations!
Testing APIs in the Cloud

      API
Functionality
• Reuse test cases during development for monitoring
In Agile you have
   “Continuous Integration”
 API Test should be run automatically and
continuously for every build of the software
In DevOps you have
 “Continuous Deployment”
   API Monitors run continuously to
ensure operations and production quality
Agile




Business           Development        Operations




                                 DevOps
Benefits of Test Asset Reuse
           Development :
 Continuous Integration / Deployment



            API Tests and
            Quality Assets




     Operations : API Monitoring
Functionality
• Reuse test cases during development for monitoring

• Start with a local baseline setup to compare with

• Mock out external dependencies to begin with

• Mind the backwards compatibility
Functionality
• Run regression tests against different locations

• Designing your application for failure recovery
Performance
• Make performance requirements

• Experiment with the load

• Parallelize

• Consider using dedicated machines

• Use monitoring together with the load test
Performance
• Run load tests in an isolated environment for root
  cause analysis

• Chaos monkey!
Security
• Make security requirements

• Encrypt sensitive transactions to your backend

• Encrypt data before sending it to the Cloud

• Find out who is responsible for the different aspects
  of security
Policy and regulations
• Check the legal implications with your company
  experts

• Check what backup/recovery solution your provider
  offers

• Check the providers regulations for load testing

• Do a calculation on what it may cost you to run your
  load tests
Compliance
• Don’t always follow standards to the letter (others
  may not).

• Look for best practices and reference
  implementations
Testing APIs from the Cloud


  API
Functionality
• Beware of from where you tests are run

• Run functional tests that depends on a geographical
  location from that actual geographical location

• Easily create nodes in your test lab for different client
  setups
Performance
• Use distributed load testing for better performance

• Scale your test suite along with your API
Security
• Make sure to cover locations that should not be able
  to access the API

• Be aware of firewalls if your API is protected
Summary
• Golden age of APIs

• Testing APIs

• Testing APIs in the Cloud

• Testing APIs from the Cloud


• Recommendations
Try this at home!




• Check out soapUI Test On Demand
• http://www.soapui.org
?
Contact
• @erikryverling

• @soapui

• erik.yverling@smartbear.com

Contenu connexe

Tendances

Tendances (20)

B4USolution_API-Testing
B4USolution_API-TestingB4USolution_API-Testing
B4USolution_API-Testing
 
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
 
RESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and JenkinsRESTful API Testing using Postman, Newman, and Jenkins
RESTful API Testing using Postman, Newman, and Jenkins
 
Postman Introduction
Postman IntroductionPostman Introduction
Postman Introduction
 
API Test Automation
API Test Automation API Test Automation
API Test Automation
 
Api Testing
Api TestingApi Testing
Api Testing
 
Postman
PostmanPostman
Postman
 
Api testing
Api testingApi testing
Api testing
 
API TESTING
API TESTINGAPI TESTING
API TESTING
 
Driving Pipeline Automation With Newman and the Postman API
Driving Pipeline Automation With Newman and the Postman APIDriving Pipeline Automation With Newman and the Postman API
Driving Pipeline Automation With Newman and the Postman API
 
Postman 101 & Office Hours
Postman 101 & Office HoursPostman 101 & Office Hours
Postman 101 & Office Hours
 
API Test Automation Tips and Tricks
API Test Automation Tips and TricksAPI Test Automation Tips and Tricks
API Test Automation Tips and Tricks
 
Postman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenarioPostman. From simple API test to end to end scenario
Postman. From simple API test to end to end scenario
 
How Secure Are Your APIs?
How Secure Are Your APIs?How Secure Are Your APIs?
How Secure Are Your APIs?
 
Using Postman to Automate API On-Boarding
Using Postman to Automate API On-BoardingUsing Postman to Automate API On-Boarding
Using Postman to Automate API On-Boarding
 
Space Camp :: API Lifecycle, Part I: Build and Test an API
Space Camp :: API Lifecycle, Part I: Build and Test an APISpace Camp :: API Lifecycle, Part I: Build and Test an API
Space Camp :: API Lifecycle, Part I: Build and Test an API
 
API_Testing_with_Postman
API_Testing_with_PostmanAPI_Testing_with_Postman
API_Testing_with_Postman
 
Postman: An Introduction for Testers
Postman: An Introduction for TestersPostman: An Introduction for Testers
Postman: An Introduction for Testers
 
Api testing
Api testingApi testing
Api testing
 
The Architecture of an API Platform
The Architecture of an API PlatformThe Architecture of an API Platform
The Architecture of an API Platform
 

En vedette

En vedette (18)

8 Reasons Why Developers Hate Marketers
8 Reasons Why Developers Hate Marketers8 Reasons Why Developers Hate Marketers
8 Reasons Why Developers Hate Marketers
 
Test api
Test apiTest api
Test api
 
12 Steps to API Load Testing with Apache JMeter
12 Steps to API Load Testing with Apache JMeter12 Steps to API Load Testing with Apache JMeter
12 Steps to API Load Testing with Apache JMeter
 
Electronic Discovery 101 - From ESI to the EDRM
Electronic Discovery 101 - From ESI to the EDRMElectronic Discovery 101 - From ESI to the EDRM
Electronic Discovery 101 - From ESI to the EDRM
 
eDiscovery Perspective
eDiscovery PerspectiveeDiscovery Perspective
eDiscovery Perspective
 
E Discovery General E Discovery Presentation
E Discovery General E Discovery PresentationE Discovery General E Discovery Presentation
E Discovery General E Discovery Presentation
 
The Technologist’s Guide to eDiscovery Law for Dummies
The Technologist’s Guide to eDiscovery Law for DummiesThe Technologist’s Guide to eDiscovery Law for Dummies
The Technologist’s Guide to eDiscovery Law for Dummies
 
Ediscovery 101
Ediscovery 101Ediscovery 101
Ediscovery 101
 
Marketing to Developers: How are they different and how do I talk to them?
Marketing to Developers: How are they different and how do I talk to them?Marketing to Developers: How are they different and how do I talk to them?
Marketing to Developers: How are they different and how do I talk to them?
 
Developer Marketing: Tactics & Technology
Developer Marketing: Tactics & TechnologyDeveloper Marketing: Tactics & Technology
Developer Marketing: Tactics & Technology
 
Catchy Developer Marketing (B2D) Agency. An overview of services.
Catchy Developer Marketing (B2D) Agency. An overview of services. Catchy Developer Marketing (B2D) Agency. An overview of services.
Catchy Developer Marketing (B2D) Agency. An overview of services.
 
Cloud api
Cloud apiCloud api
Cloud api
 
Marketing to Developers
Marketing to DevelopersMarketing to Developers
Marketing to Developers
 
Cloud APIs and Cloud Frameworks
Cloud APIs and Cloud FrameworksCloud APIs and Cloud Frameworks
Cloud APIs and Cloud Frameworks
 
The Concise Guide to E-Discovery
The Concise Guide to E-DiscoveryThe Concise Guide to E-Discovery
The Concise Guide to E-Discovery
 
Why vREST?
Why vREST?Why vREST?
Why vREST?
 
SEOmoz Pitch Deck July 2011
SEOmoz Pitch Deck July 2011SEOmoz Pitch Deck July 2011
SEOmoz Pitch Deck July 2011
 
Culture
CultureCulture
Culture
 

Similaire à Testing APIs in the Cloud

Similaire à Testing APIs in the Cloud (20)

DevSecCon Asia 2017 - Abhay Bhargav: Building an Application Vulnerability To...
DevSecCon Asia 2017 - Abhay Bhargav: Building an Application Vulnerability To...DevSecCon Asia 2017 - Abhay Bhargav: Building an Application Vulnerability To...
DevSecCon Asia 2017 - Abhay Bhargav: Building an Application Vulnerability To...
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 
Dev ops for mobile apps at microsoft teams
Dev ops for mobile apps at microsoft teamsDev ops for mobile apps at microsoft teams
Dev ops for mobile apps at microsoft teams
 
Microservices Testing at Scale
Microservices Testing at ScaleMicroservices Testing at Scale
Microservices Testing at Scale
 
Belajar Postman test runner
Belajar Postman test runnerBelajar Postman test runner
Belajar Postman test runner
 
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test AutomationSTARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
STARWest: Use Jenkins For Continuous 
Load Testing And Mobile Test Automation
 
Effective API Lifecycle Management
Effective API Lifecycle Management Effective API Lifecycle Management
Effective API Lifecycle Management
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-Architect
 
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
apidays LIVE Paris 2021 - Lessons from the API Stewardship Journey in Azure b...
 
Diving into the World of Test Automation The Approach and the Technologies
Diving into the World of Test Automation The Approach and the TechnologiesDiving into the World of Test Automation The Approach and the Technologies
Diving into the World of Test Automation The Approach and the Technologies
 
Use Jenkins For Continuous Load Testing And Mobile Test Automation
Use Jenkins For Continuous Load Testing And Mobile Test AutomationUse Jenkins For Continuous Load Testing And Mobile Test Automation
Use Jenkins For Continuous Load Testing And Mobile Test Automation
 
apidays LIVE Australia 2020 - Evaluating the usability of security APIs by Dr...
apidays LIVE Australia 2020 - Evaluating the usability of security APIs by Dr...apidays LIVE Australia 2020 - Evaluating the usability of security APIs by Dr...
apidays LIVE Australia 2020 - Evaluating the usability of security APIs by Dr...
 
Extend soa with api management spoug- Madrid
Extend soa with api management   spoug- MadridExtend soa with api management   spoug- Madrid
Extend soa with api management spoug- Madrid
 
APIs In Action -Harnessing the Power of Azure API Management: Building Robust...
APIs In Action -Harnessing the Power of Azure API Management: Building Robust...APIs In Action -Harnessing the Power of Azure API Management: Building Robust...
APIs In Action -Harnessing the Power of Azure API Management: Building Robust...
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-54&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
 
Continuous Integration, Deploy, Test From Beginning To End 2014
Continuous Integration, Deploy, Test From Beginning To End 2014Continuous Integration, Deploy, Test From Beginning To End 2014
Continuous Integration, Deploy, Test From Beginning To End 2014
 
Testing Best Practices
Testing Best PracticesTesting Best Practices
Testing Best Practices
 
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
Using BladeRunnerJS to Build Front-End Apps that Scale - Fluent 2014
 
How to design effective APIs
How to design effective APIsHow to design effective APIs
How to design effective APIs
 
Web Automation Testing for developers?
Web Automation Testing for developers?Web Automation Testing for developers?
Web Automation Testing for developers?
 

Plus de SmartBear

Plus de SmartBear (20)

Enforcing Your Organization's API Design Standards with SwaggerHub
Enforcing Your Organization's API Design Standards with SwaggerHubEnforcing Your Organization's API Design Standards with SwaggerHub
Enforcing Your Organization's API Design Standards with SwaggerHub
 
Introducing OpenAPI Version 3.1
Introducing OpenAPI Version 3.1Introducing OpenAPI Version 3.1
Introducing OpenAPI Version 3.1
 
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
 
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
 
How LISI Automotive Accelerated Application Delivery with SwaggerHub
How LISI Automotive Accelerated Application Delivery with SwaggerHubHow LISI Automotive Accelerated Application Delivery with SwaggerHub
How LISI Automotive Accelerated Application Delivery with SwaggerHub
 
Standardising APIs: Powering the Platform Economy in Financial Services
Standardising APIs: Powering the Platform Economy in Financial ServicesStandardising APIs: Powering the Platform Economy in Financial Services
Standardising APIs: Powering the Platform Economy in Financial Services
 
Getting Started with API Standardization in SwaggerHub
Getting Started with API Standardization in SwaggerHubGetting Started with API Standardization in SwaggerHub
Getting Started with API Standardization in SwaggerHub
 
Adopting a Design-First Approach to API Development with SwaggerHub
Adopting a Design-First Approach to API Development with SwaggerHubAdopting a Design-First Approach to API Development with SwaggerHub
Adopting a Design-First Approach to API Development with SwaggerHub
 
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
 
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
 
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
 
Artificial intelligence for faster and smarter software testing - Galway Mee...
Artificial intelligence for faster and smarter software testing  - Galway Mee...Artificial intelligence for faster and smarter software testing  - Galway Mee...
Artificial intelligence for faster and smarter software testing - Galway Mee...
 
Successfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile WorldSuccessfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile World
 
The Best Kept Secrets of Code Review | SmartBear Webinar
The Best Kept Secrets of Code Review | SmartBear WebinarThe Best Kept Secrets of Code Review | SmartBear Webinar
The Best Kept Secrets of Code Review | SmartBear Webinar
 
How Capital One Scaled API Design to Deliver New Products Faster
How Capital One Scaled API Design to Deliver New Products FasterHow Capital One Scaled API Design to Deliver New Products Faster
How Capital One Scaled API Design to Deliver New Products Faster
 
Testing Without a GUI Using TestComplete
 Testing Without a GUI Using TestComplete Testing Without a GUI Using TestComplete
Testing Without a GUI Using TestComplete
 
Hidden Treasure - TestComplete Script Extensions
Hidden Treasure - TestComplete Script ExtensionsHidden Treasure - TestComplete Script Extensions
Hidden Treasure - TestComplete Script Extensions
 
How Bdd Can Save Agile
 How Bdd Can Save Agile How Bdd Can Save Agile
How Bdd Can Save Agile
 
API Automation and TDD to Implement Master Data Survivorship Rules
API Automation and TDD to Implement Master Data Survivorship RulesAPI Automation and TDD to Implement Master Data Survivorship Rules
API Automation and TDD to Implement Master Data Survivorship Rules
 
Support Rapid Systems Growth with a Design-First Approach
Support Rapid Systems Growth with a Design-First ApproachSupport Rapid Systems Growth with a Design-First Approach
Support Rapid Systems Growth with a Design-First Approach
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

Testing APIs in the Cloud

  • 1.
  • 2. Erik R. Yverling | SmartBear Testing APIs in the Cloud
  • 3. Erik R. Überling | SmartBear Testing APIs in the Cloud
  • 4. A little bit about me • Developer at SmartBear working on soapUI • Lives in Stockholm, Sweden • Agile enthusiast • Linux and Open Source lover • Just another fellow geek
  • 7. Overview • Golden age of APIs • Testing APIs • Testing APIs in the Cloud • Testing APIs from the Cloud • Recommendations
  • 9. Golden age of APIs • APIs are at the core of business strategies – not just technology strategies
  • 10. Registred APIs APIs are growing rapidly Year Source: programmableweb.com
  • 12. Quality aspects of APIs • Functionality – does it work as expected? • Performance – does it perform as required? • Security – is it secured for common attacks? • Usability – is it usable? • Compliance – does it follow common practices?
  • 13. How are APIs tested? APIs generally implement a request-response model for exchanging messages or data Parameterized Request Test API Response A simple test sends a request message and validates that the response message has the expected content
  • 14. Testing APIs in the Cloud API
  • 15. APIs + the Cloud = true • High availability • High scalability • Easy deployment on the locations of your customer
  • 16. Quality aspects of cloud APIs • Functionality – does it work as expected? • Performance – does it perform as required? • Security – is it secured for common attacks? • Usability – is it usable? • Compliance – does it follow common practices? • Policy and regulations– does it follow your legal regulations?
  • 17. Functionality • Does it matter where your API is deployed? – Timestamps? – Time zones? – Locales?
  • 18. Performance • How to handle shared resources with others? • How to make sure that the API is able to scale?
  • 19. Security • How to handle sensitive transactions to your backend?
  • 20. Policy and regulations • How much of your traffic that is allowed to cross country boarders? • US export controls • Is there a limit for load testing? • What about costs related to transactions?
  • 21. Policy and regulations • What happens if your API stops working?
  • 22. Testing APIs from the Cloud API
  • 23. Test Environment as a service (TEaaS) API
  • 24. Quality aspects of APIs tested from the Cloud • Functionality – does it work as expected? • Performance – does it perform as required? • Security – is it secured for common attacks? • Usability – is it usable? • Compliance – does it follow common practices? • Policy and regulations– does it follow your legal regulations?
  • 25. Functionality • How will your application react to request from different locations?
  • 26. Performance • How will your API react on distributed load?
  • 27. Security • Will you be able to test your API from all kinds of locations? • Is there some locations that should not be able to reach the API?
  • 28. Whoa! Using the Cloud seams like a lot of work!
  • 30. Testing APIs in the Cloud API
  • 31. Functionality • Reuse test cases during development for monitoring
  • 32. In Agile you have “Continuous Integration” API Test should be run automatically and continuously for every build of the software
  • 33. In DevOps you have “Continuous Deployment” API Monitors run continuously to ensure operations and production quality
  • 34. Agile Business Development Operations DevOps
  • 35. Benefits of Test Asset Reuse Development : Continuous Integration / Deployment API Tests and Quality Assets Operations : API Monitoring
  • 36. Functionality • Reuse test cases during development for monitoring • Start with a local baseline setup to compare with • Mock out external dependencies to begin with • Mind the backwards compatibility
  • 37. Functionality • Run regression tests against different locations • Designing your application for failure recovery
  • 38. Performance • Make performance requirements • Experiment with the load • Parallelize • Consider using dedicated machines • Use monitoring together with the load test
  • 39. Performance • Run load tests in an isolated environment for root cause analysis • Chaos monkey!
  • 40. Security • Make security requirements • Encrypt sensitive transactions to your backend • Encrypt data before sending it to the Cloud • Find out who is responsible for the different aspects of security
  • 41. Policy and regulations • Check the legal implications with your company experts • Check what backup/recovery solution your provider offers • Check the providers regulations for load testing • Do a calculation on what it may cost you to run your load tests
  • 42. Compliance • Don’t always follow standards to the letter (others may not). • Look for best practices and reference implementations
  • 43. Testing APIs from the Cloud API
  • 44. Functionality • Beware of from where you tests are run • Run functional tests that depends on a geographical location from that actual geographical location • Easily create nodes in your test lab for different client setups
  • 45. Performance • Use distributed load testing for better performance • Scale your test suite along with your API
  • 46. Security • Make sure to cover locations that should not be able to access the API • Be aware of firewalls if your API is protected
  • 47. Summary • Golden age of APIs • Testing APIs • Testing APIs in the Cloud • Testing APIs from the Cloud • Recommendations
  • 48. Try this at home! • Check out soapUI Test On Demand • http://www.soapui.org
  • 49. ?
  • 50. Contact • @erikryverling • @soapui • erik.yverling@smartbear.com