SlideShare a Scribd company logo
THE MAGIC BEHIND FASTER API
DEVELOPMENT, TESTING AND DELIVERY
WITH API VIRTUALIZATION
Presentedby: SmartBearCTO, Ole Lensmar
@olensmar| @SmartBear|#esconfs
Page
Proprietary & Confidential@SmartBear | #esconfs
What is API Virtualization?
Page
Proprietary & Confidential@SmartBear | #esconfs
Stubbing / Static Mocking
• Static responses
• Semanticallycorrect
• No logic
• Payloads generatedfrom schemas or examples
• Code or generated from metadata
• Usage: Client and Test development
Page
Proprietary & Confidential@SmartBear | #esconfs
Dynamic Mocking (Simulation)
• Dynamic responses
• Based on input
• Re-use input in output
• Scripting
• Data-driven/Data-generation
• Simulate state
• Assertions on incoming content
• Usage: Scenario Testing, Development
Page
Proprietary & Confidential@SmartBear | #esconfs
API Virtualization
• Runtime behavior simulation
• Runtime management
• Redirecttrafficto VirtualAPIs dynamically
• Accesscontrol
• Deployment
• Test execution integration
• Usage: Integration / Scenario Testing, Load Testing, Development
• Learn more: https://smartbear.com/learn/api-testing/what-is-api-virtualization/?md=social-post
Page
Proprietary & Confidential@SmartBear | #esconfs
A couple of use cases…
Page
Proprietary & Confidential@SmartBear | #esconfs
Bootstrap Development
Virtualized
API
Generate from
spec or with tools
Client Development
Test Design
Integration Development
• Shortcut the API development cycle / process
• Bridge dependencies between roles/teams
• Enable early feedback on API design / implementation
Page
Proprietary & Confidential@SmartBear | #esconfs
Component Isolation during Dev and Test
Component in
dev or test
Test Execution
(automated or manual)
3rd party APIs
(virtualized)
Other APIs
(virtualized)
Legacy Systems
(virtualized)
Development
• Simulate (un)expected behavior
• Minimize impact on and usage of external systems
• Assert usage of external components
Page
Proprietary & Confidential@SmartBear | #esconfs
Provide Sandbox for API consumers
Hardware / Software
Solution
API Virtual API
Evaluate
Integrate
Integration Test
• Provide simulations of different usage scenarios
• Minimize usage / exposure of real system
• Understand how customers interact with API
Page
Proprietary & Confidential@SmartBear | #esconfs
Performance Testing with API dependencies
Solution
under test
Load Test Execution
(automated or manual)
3rd party APIs
(virtualized)
Other APIs
(virtualized)
Legacy Systems
(virtualized)
• Simulate (un)expected performance in external systems
• Minimize impact on and usage of external systems
• Triage Performance bottlenecks
Page
Proprietary & Confidential@SmartBear | #esconfs
Corp
Corp
Web app
Corp
App +
API
API
API
API
Device
API
Device
IoT
Device
IoT
Device
API
API
API
Component Evolution in complex architectures
• Enable independent evolution of services by simulating
external dependencies as services move through lifecycle
Page
Proprietary & Confidential
Virtualization across the API Lifecycle
Design Build Test Deploy Manage
Static mocking
Dynamic mocking
API Virtualization
@SmartBear | #esconfs
Page
Proprietary & Confidential@SmartBear | #esconfs
How create virtualized APIs?
Page
Proprietary & Confidential@SmartBear | #esconfs
Create from API definition / contract
• Swagger,RAML, API Blueprint, WSDL, WADL, etc.
• Integratedschemasor examplesfor payloadgeneration
• StaticMocking often integratedin designtools
• Dedicatedtoolingcommon
Page
Proprietary & Confidential@SmartBear | #esconfs
Create from captured API usage
• Turn intercepted traffic into virtual APIs
• Log-file – limited payload data
• Captured traffic often needs to be “refined”
• Removal/ change of headers
• Removalof sensitive data
• Added logic for propagation of values
• SSL can be a challenge
• MITM with dedicatedcertificate
• Recordnon-functional aspects
Page
Proprietary & Confidential@SmartBear | #esconfs
Refine with dedicated tooling
• Add complex logic for request dispatching
• Add data-driven payloads
• Simulate non-functional behavior
• Add assertions for validating requests
• Pass-through to actual APIs as appropriate
Page
Proprietary & Confidential@SmartBear | #esconfs
Considerations
• How will virtual APIs be used and managed
• Local/Team/Enterprise
• Technical proficiency of maintainers
• Scripting /coding requirements
• Easy to createnew configurations
• CI-Integration
• How redirectAPI callstovirtualizedAPIs
• Access control (internal / external)
• Reporting and Governance
Page
Proprietary & Confidential@SmartBear | #esconfs
Virtualising Async APIs
• Domains
• Web: Webhooks, Async SOAP, Websockets
• Legacy:JMS, MQSeries, etc
• IoT protocols: MQTT, AMQP,XMPP, etc
• Virtualization Needs
• Simulate both sender and receiverof events
• Coordinate decoupled message flows /transactions
• Simulate both functional and non-functional behaviour
• Challenging to coordinate orchestrated components
Page
Proprietary & Confidential@SmartBear | #esconfs
API Virtualization – do you need it?
• Local development and basic component testing –> Probablynot
• For providing Sandbox environments -> Probably
• Collaborative evolution and testing of APIs with low number of controlled dependencies ->
Maybe
• The same – but with high number of complex dependencies -> Probably
• For simulating both functional and non-functional behavior in complex distributed API-based
solutions -> Definitely
Thank you!
@olensmar @SmartBear #esconfs

More Related Content

PPTX
Advanced Automation in Your API Lifecycle
PPTX
Advanced Mocking for Swagger APIs
PPTX
Understanding and Executing on API Developer Experience
PPTX
The State of Testing 2017
PPTX
Continuous Integration and Delivery at Shapeways (Matt Boyle)
PPTX
Effective API Lifecycle Management
PPTX
Introducing OpenAPI Version 3.1
PDF
API Design Collaboration
Advanced Automation in Your API Lifecycle
Advanced Mocking for Swagger APIs
Understanding and Executing on API Developer Experience
The State of Testing 2017
Continuous Integration and Delivery at Shapeways (Matt Boyle)
Effective API Lifecycle Management
Introducing OpenAPI Version 3.1
API Design Collaboration

What's hot (20)

PPTX
Executing on API Developer Experience
PDF
OpenAPI 3.0, And What It Means for the Future of Swagger
PDF
Rest api best practices – comprehensive handbook
PDF
Lessons Learned from Revamping Our Doc Site
PDF
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
PDF
Kasten securing access to your kubernetes applications
PPTX
Pain Points In API Development? They’re Everywhere
PDF
Why your APIs should fly first class
PDF
The Most Common Errors That Aren’t Caught
PPTX
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
PDF
TDD for APIs in a Microservice World (Short Version) by Michael Kuehne-Schlin...
PDF
API SDK Development – Lessons Learned
PPTX
How LISI Automotive Accelerated Application Delivery with SwaggerHub
PPTX
apidays LIVE Paris 2021 - Inside API delivery Pipeline, the checklist! - Fran...
PDF
apidays Paris 2019 - How Do Async APIs Survive in a Rest World? by Luca Ferra...
PDF
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
PPTX
Public API
PPTX
Operational API design anti-patterns (Jason Harmon)
PDF
The Magic Behind Faster API Development, Testing and Delivery with API Virtua...
PPTX
API Docs with OpenAPI 3.0
Executing on API Developer Experience
OpenAPI 3.0, And What It Means for the Future of Swagger
Rest api best practices – comprehensive handbook
Lessons Learned from Revamping Our Doc Site
The API Lifecycle Series: Evolving API Development and Testing from Open Sour...
Kasten securing access to your kubernetes applications
Pain Points In API Development? They’re Everywhere
Why your APIs should fly first class
The Most Common Errors That Aren’t Caught
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
TDD for APIs in a Microservice World (Short Version) by Michael Kuehne-Schlin...
API SDK Development – Lessons Learned
How LISI Automotive Accelerated Application Delivery with SwaggerHub
apidays LIVE Paris 2021 - Inside API delivery Pipeline, the checklist! - Fran...
apidays Paris 2019 - How Do Async APIs Survive in a Rest World? by Luca Ferra...
The API Lifecycle Series: Exploring Design-First and Code-First Approaches to...
Public API
Operational API design anti-patterns (Jason Harmon)
The Magic Behind Faster API Development, Testing and Delivery with API Virtua...
API Docs with OpenAPI 3.0
Ad

Similar to The Magic Behind Faster API Development, Testing and Delivery with API Virtualization (20)

PPTX
API Virtualization: Mocking on Steroids
PDF
Can virtualization transform your API lifecycle?
PDF
Api virtualization
PDF
WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?
PPTX
API Readiness: Visualizing and Virtualizing
PPTX
Microservices
PPTX
Unlock Open Banking with Definition-driven API Development
PDF
Virtualize APIs for Better Application Testing
PDF
API Testing: The heart of functional testing" with Bj Rollison
PPTX
Build Better Apps through API Virtualization
PDF
Parasoft Testing anything, any time with containerized service virtualization
PPTX
Devs & Testers : BFFs with Virtual APIs
PPTX
Beyond 200 OK.pptx
PDF
Developers Are Users, Too
PDF
Continuous Testing with Service Virtualization
PDF
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
PPTX
Evaluating and Testing Web APIs
DOCX
Best Practices For Automating APIs.docx
PPTX
apidays LIVE Singapore 2021 - Novel approaches in API security by Dr Tal Stei...
PDF
Manage your ap is securely and easily ibm apim 4.0
API Virtualization: Mocking on Steroids
Can virtualization transform your API lifecycle?
Api virtualization
WSO2Con EU 2015: API Readiness: Is Your API Ready for Primetime?
API Readiness: Visualizing and Virtualizing
Microservices
Unlock Open Banking with Definition-driven API Development
Virtualize APIs for Better Application Testing
API Testing: The heart of functional testing" with Bj Rollison
Build Better Apps through API Virtualization
Parasoft Testing anything, any time with containerized service virtualization
Devs & Testers : BFFs with Virtual APIs
Beyond 200 OK.pptx
Developers Are Users, Too
Continuous Testing with Service Virtualization
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
Evaluating and Testing Web APIs
Best Practices For Automating APIs.docx
apidays LIVE Singapore 2021 - Novel approaches in API security by Dr Tal Stei...
Manage your ap is securely and easily ibm apim 4.0
Ad

More from SmartBear (20)

PPTX
Enforcing Your Organization's API Design Standards with SwaggerHub
PPTX
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
PPTX
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
PPTX
Standardising APIs: Powering the Platform Economy in Financial Services
PPTX
Getting Started with API Standardization in SwaggerHub
PPTX
Adopting a Design-First Approach to API Development with SwaggerHub
PPTX
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
PPTX
Artificial intelligence for faster and smarter software testing - Galway Mee...
PDF
Successfully Implementing BDD in an Agile World
PPTX
The Best Kept Secrets of Code Review | SmartBear Webinar
PPTX
How Capital One Scaled API Design to Deliver New Products Faster
PPTX
Testing Without a GUI Using TestComplete
PPTX
Hidden Treasure - TestComplete Script Extensions
PDF
How Bdd Can Save Agile
PPTX
API Automation and TDD to Implement Master Data Survivorship Rules
PDF
Support Rapid Systems Growth with a Design-First Approach
PDF
Maximize Test Automation with a Risk-Based Approach
PPTX
Modernizing the Enterprise API Development Process
PPTX
Developing Performance-Oriented Code: Moore's Law Over 50
PPTX
Implementation of DevOps at SmartBear
Enforcing Your Organization's API Design Standards with SwaggerHub
IATA Open Air: How API Standardization Enables Innovation in the Airline Indu...
The State of API 2020 Webinar – Exploring Trends, Tools & Takeaways to Drive ...
Standardising APIs: Powering the Platform Economy in Financial Services
Getting Started with API Standardization in SwaggerHub
Adopting a Design-First Approach to API Development with SwaggerHub
Standardizing APIs Across Your Organization with Swagger and OAS | A SmartBea...
Artificial intelligence for faster and smarter software testing - Galway Mee...
Successfully Implementing BDD in an Agile World
The Best Kept Secrets of Code Review | SmartBear Webinar
How Capital One Scaled API Design to Deliver New Products Faster
Testing Without a GUI Using TestComplete
Hidden Treasure - TestComplete Script Extensions
How Bdd Can Save Agile
API Automation and TDD to Implement Master Data Survivorship Rules
Support Rapid Systems Growth with a Design-First Approach
Maximize Test Automation with a Risk-Based Approach
Modernizing the Enterprise API Development Process
Developing Performance-Oriented Code: Moore's Law Over 50
Implementation of DevOps at SmartBear

Recently uploaded (20)

PDF
System and Network Administraation Chapter 3
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPT
Introduction Database Management System for Course Database
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
top salesforce developer skills in 2025.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
assetexplorer- product-overview - presentation
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
medical staffing services at VALiNTRY
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
L1 - Introduction to python Backend.pptx
System and Network Administraation Chapter 3
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Introduction Database Management System for Course Database
Operating system designcfffgfgggggggvggggggggg
How to Migrate SBCGlobal Email to Yahoo Easily
Which alternative to Crystal Reports is best for small or large businesses.pdf
top salesforce developer skills in 2025.pdf
CHAPTER 2 - PM Management and IT Context
assetexplorer- product-overview - presentation
Softaken Excel to vCard Converter Software.pdf
Wondershare Filmora 15 Crack With Activation Key [2025
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
medical staffing services at VALiNTRY
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Reimagine Home Health with the Power of Agentic AI​
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PTS Company Brochure 2025 (1).pdf.......
2025 Textile ERP Trends: SAP, Odoo & Oracle
L1 - Introduction to python Backend.pptx

The Magic Behind Faster API Development, Testing and Delivery with API Virtualization

  • 1. THE MAGIC BEHIND FASTER API DEVELOPMENT, TESTING AND DELIVERY WITH API VIRTUALIZATION Presentedby: SmartBearCTO, Ole Lensmar @olensmar| @SmartBear|#esconfs
  • 2. Page Proprietary & Confidential@SmartBear | #esconfs What is API Virtualization?
  • 3. Page Proprietary & Confidential@SmartBear | #esconfs Stubbing / Static Mocking • Static responses • Semanticallycorrect • No logic • Payloads generatedfrom schemas or examples • Code or generated from metadata • Usage: Client and Test development
  • 4. Page Proprietary & Confidential@SmartBear | #esconfs Dynamic Mocking (Simulation) • Dynamic responses • Based on input • Re-use input in output • Scripting • Data-driven/Data-generation • Simulate state • Assertions on incoming content • Usage: Scenario Testing, Development
  • 5. Page Proprietary & Confidential@SmartBear | #esconfs API Virtualization • Runtime behavior simulation • Runtime management • Redirecttrafficto VirtualAPIs dynamically • Accesscontrol • Deployment • Test execution integration • Usage: Integration / Scenario Testing, Load Testing, Development • Learn more: https://smartbear.com/learn/api-testing/what-is-api-virtualization/?md=social-post
  • 6. Page Proprietary & Confidential@SmartBear | #esconfs A couple of use cases…
  • 7. Page Proprietary & Confidential@SmartBear | #esconfs Bootstrap Development Virtualized API Generate from spec or with tools Client Development Test Design Integration Development • Shortcut the API development cycle / process • Bridge dependencies between roles/teams • Enable early feedback on API design / implementation
  • 8. Page Proprietary & Confidential@SmartBear | #esconfs Component Isolation during Dev and Test Component in dev or test Test Execution (automated or manual) 3rd party APIs (virtualized) Other APIs (virtualized) Legacy Systems (virtualized) Development • Simulate (un)expected behavior • Minimize impact on and usage of external systems • Assert usage of external components
  • 9. Page Proprietary & Confidential@SmartBear | #esconfs Provide Sandbox for API consumers Hardware / Software Solution API Virtual API Evaluate Integrate Integration Test • Provide simulations of different usage scenarios • Minimize usage / exposure of real system • Understand how customers interact with API
  • 10. Page Proprietary & Confidential@SmartBear | #esconfs Performance Testing with API dependencies Solution under test Load Test Execution (automated or manual) 3rd party APIs (virtualized) Other APIs (virtualized) Legacy Systems (virtualized) • Simulate (un)expected performance in external systems • Minimize impact on and usage of external systems • Triage Performance bottlenecks
  • 11. Page Proprietary & Confidential@SmartBear | #esconfs Corp Corp Web app Corp App + API API API API Device API Device IoT Device IoT Device API API API Component Evolution in complex architectures • Enable independent evolution of services by simulating external dependencies as services move through lifecycle
  • 12. Page Proprietary & Confidential Virtualization across the API Lifecycle Design Build Test Deploy Manage Static mocking Dynamic mocking API Virtualization @SmartBear | #esconfs
  • 13. Page Proprietary & Confidential@SmartBear | #esconfs How create virtualized APIs?
  • 14. Page Proprietary & Confidential@SmartBear | #esconfs Create from API definition / contract • Swagger,RAML, API Blueprint, WSDL, WADL, etc. • Integratedschemasor examplesfor payloadgeneration • StaticMocking often integratedin designtools • Dedicatedtoolingcommon
  • 15. Page Proprietary & Confidential@SmartBear | #esconfs Create from captured API usage • Turn intercepted traffic into virtual APIs • Log-file – limited payload data • Captured traffic often needs to be “refined” • Removal/ change of headers • Removalof sensitive data • Added logic for propagation of values • SSL can be a challenge • MITM with dedicatedcertificate • Recordnon-functional aspects
  • 16. Page Proprietary & Confidential@SmartBear | #esconfs Refine with dedicated tooling • Add complex logic for request dispatching • Add data-driven payloads • Simulate non-functional behavior • Add assertions for validating requests • Pass-through to actual APIs as appropriate
  • 17. Page Proprietary & Confidential@SmartBear | #esconfs Considerations • How will virtual APIs be used and managed • Local/Team/Enterprise • Technical proficiency of maintainers • Scripting /coding requirements • Easy to createnew configurations • CI-Integration • How redirectAPI callstovirtualizedAPIs • Access control (internal / external) • Reporting and Governance
  • 18. Page Proprietary & Confidential@SmartBear | #esconfs Virtualising Async APIs • Domains • Web: Webhooks, Async SOAP, Websockets • Legacy:JMS, MQSeries, etc • IoT protocols: MQTT, AMQP,XMPP, etc • Virtualization Needs • Simulate both sender and receiverof events • Coordinate decoupled message flows /transactions • Simulate both functional and non-functional behaviour • Challenging to coordinate orchestrated components
  • 19. Page Proprietary & Confidential@SmartBear | #esconfs API Virtualization – do you need it? • Local development and basic component testing –> Probablynot • For providing Sandbox environments -> Probably • Collaborative evolution and testing of APIs with low number of controlled dependencies -> Maybe • The same – but with high number of complex dependencies -> Probably • For simulating both functional and non-functional behavior in complex distributed API-based solutions -> Definitely