SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Downloaden Sie, um offline zu lesen
• Introduction to API’s (how they work, real-life
applications, and API monitoring foundations)
• API transaction testing tutorial
• Advanced monitoring tips and tricks
Agenda
ROBERT CASTLEY
SR. PERFORMANCE ENGINEER
Today’s Presenter
Intro to API’s
“Application Programming Interface”
• Set of rules or standards that
extends the functionality of an
application.
• Allow different applications to
connect and interact with each
other.
• Multiple processes built using APIs
are encapsulated into a “web
service”
What are API’s?
• Integrating payment gateways with
ecommerce platforms
• Integrating social media apps with
websites
• Integrating analytics tools to track
website performance and revenue
growth
• Integrating additional functionality
such as advanced search, affiliate
programs and advertising
• Integrating tools like Salesforce, Slack
etc. to manage and track productivity
within the organization
API’s in the Wild
*Diagram by Annie Cannon
*
The basic concept of a web API is data exchange over HTTP/HTTPS and involves two main
components:
• Data Structure: The API requests and response use specific formats, either XML or JSON.
• Data Transfer and Security: The API exchanges/manipulates data using HTTP methods like
PUT, POST, GET etc. These requests/responses are processed based on the web service
being used – SOAP or REST. HTTP headers, cookies, or query string parameters are used to
secure the data exchanged over web services.
How do they work?
*
XML JSON
Data Structures
SOAP REST
Data Transfer Methods
SOAP REST
Data Transfer Methods
The performance of the API integration has
a direct impact on the user’s digital
experience.
Real-life examples of API impact on
performance:
• Unavailable third-party website
component like search or chat
• Broken payment gateway on
ecommerce site
• API’s used to automate inventory
management fail causing delays in
fulfillment
Why monitor API’s?
API monitoring tools keep track of crucial processes –
both backend (database impacting) and frontend (end-
user impacting).
We can break down what is involved in API monitoring
into the following:
• Monitoring service uptime/downtime (availability)
• Monitoring multi-step transactions
• Validating the data returned and handling errors
• Measuring response times
• Triggering alerts when API generates errors
• Evaluating performance from different perspectives –
developers, testers, and DevOps
What is API Monitoring?
API Transaction Overview
• Use a customized subset of the Selenium language, in conjunction with some additional
Catchpoint-specific commands
• Scripts are created manually
• Features of script creation:
• Syntax highlighting
• Autocomplete
• Suggestions
API Transactions
Opening
URL
Set
Header
Extract
Content
Open new
URL, set
headers with
extracted
variables
API Script Example
Validate
HTTP
response
QUESTIONS
API Test Settings & Debugging
ADVANCED TIPS & TRICKS
• Verbs are actions that allow the script to
perform as you see fit
• Macros are dynamic system keywords
allowing you to add variations to a test
• Examples:
• ${extract}
• storeVariable()
• setNavigatePostData()
• Global Variable allows you to store and use
the same variable in more than one test
Macros, Verbs, & Global Variable
• Create custom metrics based on information passed through header
and/or response content
• Better correlate monitoring data to internal performance indicators
(server, etc.), and identify issues faster
• Indicators capture numerical values, while Tracepoints capture strings
Insight
• Along with Regular Expressions, Catchpoint API scripts support JSONPath
parsing in addition to regular expressions
• Similar to Xpath’s ability to extract data from XML documents
• Example:
• For more information, see jsonpath.com
storeVariable (‘${Extract(resp-content, json:$..book[?(@.isbn)]’, “book”)
This extracts all array(s) from the response content with the ISBN number in it and stores it as the variable “book.”
JSON Parsing
QUESTIONS
THANK YOU FOR YOUR TIME.

Weitere ähnliche Inhalte

Was ist angesagt?

Using microsoft application insights to implement a build, measure, learn loop
Using microsoft application insights to implement a build, measure, learn loopUsing microsoft application insights to implement a build, measure, learn loop
Using microsoft application insights to implement a build, measure, learn loop
Marcel de Vries
 
Introducing Salt Apps for SAP
Introducing Salt Apps for SAPIntroducing Salt Apps for SAP
Introducing Salt Apps for SAP
saltapps
 
Sp2013 apps with vs2013
Sp2013 apps with vs2013Sp2013 apps with vs2013
Sp2013 apps with vs2013
Bas Lijten
 

Was ist angesagt? (20)

(ATS6-DEV03) Building an Enterprise Web Solution with AEP
(ATS6-DEV03) Building an Enterprise Web Solution with AEP(ATS6-DEV03) Building an Enterprise Web Solution with AEP
(ATS6-DEV03) Building an Enterprise Web Solution with AEP
 
Web api using rest based architecture
Web api using rest based architectureWeb api using rest based architecture
Web api using rest based architecture
 
Visual studio 2015 - Application Insights
Visual studio 2015 - Application InsightsVisual studio 2015 - Application Insights
Visual studio 2015 - Application Insights
 
Introduction to the Microsoft identity platform for developers
Introduction to the Microsoft identity platform for developersIntroduction to the Microsoft identity platform for developers
Introduction to the Microsoft identity platform for developers
 
2.2.management center
2.2.management center2.2.management center
2.2.management center
 
Apinizer - Full API Lifecycle and Integration Platform
Apinizer - Full API Lifecycle and Integration Platform Apinizer - Full API Lifecycle and Integration Platform
Apinizer - Full API Lifecycle and Integration Platform
 
02 api gateway
02 api gateway02 api gateway
02 api gateway
 
Anypoint Connectors
Anypoint ConnectorsAnypoint Connectors
Anypoint Connectors
 
Anypoint platform release highlights
Anypoint platform release highlightsAnypoint platform release highlights
Anypoint platform release highlights
 
Deep-Dive to Application Insights
Deep-Dive to Application Insights Deep-Dive to Application Insights
Deep-Dive to Application Insights
 
Apica Company Summary
Apica Company SummaryApica Company Summary
Apica Company Summary
 
Mule sap connector
Mule sap connectorMule sap connector
Mule sap connector
 
Using microsoft application insights to implement a build, measure, learn loop
Using microsoft application insights to implement a build, measure, learn loopUsing microsoft application insights to implement a build, measure, learn loop
Using microsoft application insights to implement a build, measure, learn loop
 
Introducing Salt Apps for SAP
Introducing Salt Apps for SAPIntroducing Salt Apps for SAP
Introducing Salt Apps for SAP
 
Monitoring Service of Alibaba Cloud
Monitoring Service of Alibaba CloudMonitoring Service of Alibaba Cloud
Monitoring Service of Alibaba Cloud
 
Running JMeter Tests In Appvance PerformanceCloud
Running JMeter Tests In Appvance PerformanceCloudRunning JMeter Tests In Appvance PerformanceCloud
Running JMeter Tests In Appvance PerformanceCloud
 
SOAP Monitoring
SOAP MonitoringSOAP Monitoring
SOAP Monitoring
 
Developing share point 2013 apps with mvc 5, signalr 2.0, webapi 2 and visual...
Developing share point 2013 apps with mvc 5, signalr 2.0, webapi 2 and visual...Developing share point 2013 apps with mvc 5, signalr 2.0, webapi 2 and visual...
Developing share point 2013 apps with mvc 5, signalr 2.0, webapi 2 and visual...
 
Sp2013 apps with vs2013
Sp2013 apps with vs2013Sp2013 apps with vs2013
Sp2013 apps with vs2013
 
Ladies Be Architects - Apex Basics
Ladies Be Architects - Apex BasicsLadies Be Architects - Apex Basics
Ladies Be Architects - Apex Basics
 

Ähnlich wie Planet of the APIs: Monitoring Transactions in the Wild

Extend soa with api management Doag18
Extend soa with api management Doag18Extend soa with api management Doag18
Extend soa with api management Doag18
Vinay Kumar
 
REST API Recommendations
REST API RecommendationsREST API Recommendations
REST API Recommendations
Jeelani Shaik
 

Ähnlich wie Planet of the APIs: Monitoring Transactions in the Wild (20)

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...
 
Open Banking & Open Insurance
Open Banking & Open InsuranceOpen Banking & Open Insurance
Open Banking & Open Insurance
 
Smartone v1.0
Smartone v1.0Smartone v1.0
Smartone v1.0
 
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
 
Lessons learned on the Azure API Stewardship Journey.pptx
Lessons learned on the Azure API Stewardship Journey.pptxLessons learned on the Azure API Stewardship Journey.pptx
Lessons learned on the Azure API Stewardship Journey.pptx
 
Global Azure 2022 - Architecting Modern Serverless APIs with Azure Functions ...
Global Azure 2022 - Architecting Modern Serverless APIs with Azure Functions ...Global Azure 2022 - Architecting Modern Serverless APIs with Azure Functions ...
Global Azure 2022 - Architecting Modern Serverless APIs with Azure Functions ...
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 
Extend soa with api management Sangam18
Extend soa with api management Sangam18Extend soa with api management Sangam18
Extend soa with api management Sangam18
 
M meijer api management - tech-days 2015
M meijer   api management - tech-days 2015M meijer   api management - tech-days 2015
M meijer api management - tech-days 2015
 
Webinar: Embracing REST APIs through APPSeCONNECT
Webinar: Embracing REST APIs through APPSeCONNECTWebinar: Embracing REST APIs through APPSeCONNECT
Webinar: Embracing REST APIs through APPSeCONNECT
 
Performance monitoring in a DevOps World
Performance monitoring in a DevOps WorldPerformance monitoring in a DevOps World
Performance monitoring in a DevOps World
 
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
WSO2Con USA 2017: Brokerage as a Service (BaaS), Transforming Fidelity Broker...
 
Enterprise API New Features and Roadmap
Enterprise API New Features and RoadmapEnterprise API New Features and Roadmap
Enterprise API New Features and Roadmap
 
Azure Functions Real World Examples
Azure Functions Real World Examples Azure Functions Real World Examples
Azure Functions Real World Examples
 
Day 1 axway apim-training
Day 1   axway apim-trainingDay 1   axway apim-training
Day 1 axway apim-training
 
API Check Overview - Rigor Monitoring
API Check Overview - Rigor MonitoringAPI Check Overview - Rigor Monitoring
API Check Overview - Rigor Monitoring
 
Api design part 1
Api design part 1Api design part 1
Api design part 1
 
What is API test automation
What is API test automation What is API test automation
What is API test automation
 
Extend soa with api management Doag18
Extend soa with api management Doag18Extend soa with api management Doag18
Extend soa with api management Doag18
 
REST API Recommendations
REST API RecommendationsREST API Recommendations
REST API Recommendations
 

Mehr von Deborah Schalm

EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017
EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017
EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017
Deborah Schalm
 

Mehr von Deborah Schalm (20)

Exploring Prometheus: Combining Metrics and Alerting to Improve Incident Mana...
Exploring Prometheus: Combining Metrics and Alerting to Improve Incident Mana...Exploring Prometheus: Combining Metrics and Alerting to Improve Incident Mana...
Exploring Prometheus: Combining Metrics and Alerting to Improve Incident Mana...
 
Discovering Dark Debt in your Culture
Discovering Dark Debt in your CultureDiscovering Dark Debt in your Culture
Discovering Dark Debt in your Culture
 
A Discussion of Automated Infrastructure Security with a Practical Example
A Discussion of Automated Infrastructure Security with a Practical ExampleA Discussion of Automated Infrastructure Security with a Practical Example
A Discussion of Automated Infrastructure Security with a Practical Example
 
Protect Your Organization Against Known Security Defects
Protect Your Organization Against Known Security DefectsProtect Your Organization Against Known Security Defects
Protect Your Organization Against Known Security Defects
 
Putting the Ops in DevOps
Putting the Ops in DevOpsPutting the Ops in DevOps
Putting the Ops in DevOps
 
Machine Learning to Turbo-Charge the Ops Portion of DevOps
Machine Learning to Turbo-Charge the Ops Portion of DevOpsMachine Learning to Turbo-Charge the Ops Portion of DevOps
Machine Learning to Turbo-Charge the Ops Portion of DevOps
 
Post-Equifax: How to Trust But Verify Your Software Supply Chain
Post-Equifax: How to Trust But Verify Your Software Supply ChainPost-Equifax: How to Trust But Verify Your Software Supply Chain
Post-Equifax: How to Trust But Verify Your Software Supply Chain
 
30 Minutes to a Private Cloud
30 Minutes to a Private Cloud30 Minutes to a Private Cloud
30 Minutes to a Private Cloud
 
Taking DevOps Monitoring to the Next Level - The 5 Step Guide to Monitoring N...
Taking DevOps Monitoring to the Next Level - The 5 Step Guide to Monitoring N...Taking DevOps Monitoring to the Next Level - The 5 Step Guide to Monitoring N...
Taking DevOps Monitoring to the Next Level - The 5 Step Guide to Monitoring N...
 
Top 5 Considerations for Operating a Kubernetes Environment at Scale
Top 5 Considerations for Operating a Kubernetes Environment at ScaleTop 5 Considerations for Operating a Kubernetes Environment at Scale
Top 5 Considerations for Operating a Kubernetes Environment at Scale
 
Is a Monolith Standing in the Way of Your Digital Transformation? Refactor fo...
Is a Monolith Standing in the Way of Your Digital Transformation? Refactor fo...Is a Monolith Standing in the Way of Your Digital Transformation? Refactor fo...
Is a Monolith Standing in the Way of Your Digital Transformation? Refactor fo...
 
EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017
EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017
EMA: Ten Priorities for Hybrid Cloud, Containers and DevOps in 2017
 
Application Discovery! The Gift That Keeps on Giving
Application Discovery! The Gift That Keeps on GivingApplication Discovery! The Gift That Keeps on Giving
Application Discovery! The Gift That Keeps on Giving
 
Top 5 Challenges in Scaling DevOps in Brownfield Environments
Top 5 Challenges in Scaling DevOps in Brownfield EnvironmentsTop 5 Challenges in Scaling DevOps in Brownfield Environments
Top 5 Challenges in Scaling DevOps in Brownfield Environments
 
The Coming Earthquake in WebSphere Application Server Configuration Management
The Coming Earthquake in WebSphere Application Server Configuration ManagementThe Coming Earthquake in WebSphere Application Server Configuration Management
The Coming Earthquake in WebSphere Application Server Configuration Management
 
Get Loose! Microservices and Loosely Coupled Architectures
Get Loose! Microservices and Loosely Coupled ArchitecturesGet Loose! Microservices and Loosely Coupled Architectures
Get Loose! Microservices and Loosely Coupled Architectures
 
Proactive Monitoring: Playing Offense for the Win
Proactive Monitoring: Playing Offense for the WinProactive Monitoring: Playing Offense for the Win
Proactive Monitoring: Playing Offense for the Win
 
No Tool is an Island: Building DevOps into your business
No Tool is an Island: Building DevOps into your businessNo Tool is an Island: Building DevOps into your business
No Tool is an Island: Building DevOps into your business
 
Scale Continuous Deployment to Production with DeployHub and CloudBees
Scale Continuous Deployment to Production with DeployHub and CloudBeesScale Continuous Deployment to Production with DeployHub and CloudBees
Scale Continuous Deployment to Production with DeployHub and CloudBees
 
Monitoring First - Instrumenting Your Entire Stack for the Ultimate in Observ...
Monitoring First - Instrumenting Your Entire Stack for the Ultimate in Observ...Monitoring First - Instrumenting Your Entire Stack for the Ultimate in Observ...
Monitoring First - Instrumenting Your Entire Stack for the Ultimate in Observ...
 

Kürzlich hochgeladen

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Kürzlich hochgeladen (20)

Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
Generic or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisionsGeneric or specific? Making sensible software design decisions
Generic or specific? Making sensible software design decisions
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 

Planet of the APIs: Monitoring Transactions in the Wild

  • 1.
  • 2. • Introduction to API’s (how they work, real-life applications, and API monitoring foundations) • API transaction testing tutorial • Advanced monitoring tips and tricks Agenda
  • 3. ROBERT CASTLEY SR. PERFORMANCE ENGINEER Today’s Presenter
  • 5. “Application Programming Interface” • Set of rules or standards that extends the functionality of an application. • Allow different applications to connect and interact with each other. • Multiple processes built using APIs are encapsulated into a “web service” What are API’s?
  • 6. • Integrating payment gateways with ecommerce platforms • Integrating social media apps with websites • Integrating analytics tools to track website performance and revenue growth • Integrating additional functionality such as advanced search, affiliate programs and advertising • Integrating tools like Salesforce, Slack etc. to manage and track productivity within the organization API’s in the Wild *Diagram by Annie Cannon *
  • 7. The basic concept of a web API is data exchange over HTTP/HTTPS and involves two main components: • Data Structure: The API requests and response use specific formats, either XML or JSON. • Data Transfer and Security: The API exchanges/manipulates data using HTTP methods like PUT, POST, GET etc. These requests/responses are processed based on the web service being used – SOAP or REST. HTTP headers, cookies, or query string parameters are used to secure the data exchanged over web services. How do they work? *
  • 11.
  • 12. The performance of the API integration has a direct impact on the user’s digital experience. Real-life examples of API impact on performance: • Unavailable third-party website component like search or chat • Broken payment gateway on ecommerce site • API’s used to automate inventory management fail causing delays in fulfillment Why monitor API’s?
  • 13. API monitoring tools keep track of crucial processes – both backend (database impacting) and frontend (end- user impacting). We can break down what is involved in API monitoring into the following: • Monitoring service uptime/downtime (availability) • Monitoring multi-step transactions • Validating the data returned and handling errors • Measuring response times • Triggering alerts when API generates errors • Evaluating performance from different perspectives – developers, testers, and DevOps What is API Monitoring?
  • 15. • Use a customized subset of the Selenium language, in conjunction with some additional Catchpoint-specific commands • Scripts are created manually • Features of script creation: • Syntax highlighting • Autocomplete • Suggestions API Transactions
  • 16. Opening URL Set Header Extract Content Open new URL, set headers with extracted variables API Script Example Validate HTTP response
  • 18. API Test Settings & Debugging
  • 19. ADVANCED TIPS & TRICKS
  • 20. • Verbs are actions that allow the script to perform as you see fit • Macros are dynamic system keywords allowing you to add variations to a test • Examples: • ${extract} • storeVariable() • setNavigatePostData() • Global Variable allows you to store and use the same variable in more than one test Macros, Verbs, & Global Variable
  • 21. • Create custom metrics based on information passed through header and/or response content • Better correlate monitoring data to internal performance indicators (server, etc.), and identify issues faster • Indicators capture numerical values, while Tracepoints capture strings Insight
  • 22. • Along with Regular Expressions, Catchpoint API scripts support JSONPath parsing in addition to regular expressions • Similar to Xpath’s ability to extract data from XML documents • Example: • For more information, see jsonpath.com storeVariable (‘${Extract(resp-content, json:$..book[?(@.isbn)]’, “book”) This extracts all array(s) from the response content with the ISBN number in it and stores it as the variable “book.” JSON Parsing
  • 24. THANK YOU FOR YOUR TIME.