SlideShare a Scribd company logo
1 of 11
How to Cover all Your Backend
Testing Needs With API & UI Tests
Refael Botbol -
Performance Engineer
AGENDA
Who Are We?
Quick Overview of API & UI Testing
API & UI Tests: Which Should You Use and When?
How Testing Integrates Into Your Application Lifecycle
Live Demo: Let’s Get Hands-On
Q&A§
02
What is BlazeMeter?
The Performance Testing Platform for
Load, API, CI and Monitoring
 Developer Friendly
 Open Source Compatibility
 Self Served
03
What Can You Do With BlazeMeter?
• Test any mobile app, website or API ​​in under 10 minutes
• Simulate any number of users
• Run any ​open source ​Apache JMeter script
• Integrate automatically with your APM & CI tools
• Analyze results through comprehensive reporting
• Find and fix bottlenecks in your apps and website’s performance
04
Quick Overview of API & UI Testing
The practice of using APIs in order to loosen the
interdependencies between frontend
(browser & mobile) and backend
API test your actual backend
performance / functionality
Analyzing hits/s VS response times to identify
bottlenecks
Testing UIs to verify user scenario(s)
are working and responsive
Analyzing users VS response times
Using Selenium to improve understanding
of actual user experience during the
load test
Error monitoring: important in both cases but
crucial for API calls!
05
The application responds in the
same way throughout the test.
Response times are not affected by
the simulated load in any way.
The Perfect Load Test
0
10
20
30
40
50
60
70
0:00 0:10 0:20 0:30 0:40
Users Response Time
The Perfect Load Test
06
The application initially responds well.
But once it reaches a certain load,
the response time starts to increase accordingly.
However, when you stop adding more load, the
response time will also stabilize.
Sensitive to Load
0
10
20
30
40
50
60
70
0:00 0:10 0:20 0:30 0:40
Users Response Time
Sensitive to Load
07
We’re in a hell of a mess!
The application can’t sustain the load, and
response times keep rising even though we’ve
stopped increasing the load.
It’s clear that we’ve hit a significant bottleneck,
something has probably broken and unless we
solve it – the response time will only get worse!
Breaks Under Load
0
20
40
60
80
100
120
140
160
0:00 0:10 0:20 0:30 0:40
Users Response Time
Breaks Under Load
08
API & UI Tests: Which Should You Use and When?
1. Unit testing
2. As part of your CI builds
3. Staging performance
4. Before adding a new service
which will require more hits/s
5. Changes in the application
design (New DB, Upgrades..)
API – Testing your backend
functionality and performance
to understand how many hits/s
it can sustain
1. Before major events
(Black Friday, commercial
events, elections etc..)
2. Before releasing a new
frontend version
UI – Verifying the quality of your
user scenario and response
times
Both can be used as
monitoring scripts
09
Write your unit testing scripts to verify the code
works (simple JMX)
HOW TESTING
INTEGRATES
INTO YOUR APPLICATION
LIFECYCLE
Integrate unit testing into your CI tools (Jenkins,
CloudBees etc.) and run them after important
builds
Create a user scenario script and add it to your CI
builds to verify critical user scenarios are not
broken
Use these scripts with higher load on your staging
environment to verify your API and user scenarios
are working as planned
Add a JMeter Selenium Web Driver to measure
user experience during the load
Take the same scripts and load test in
production when needed
10
For more information about Performance Testing and JMeter:
BlazeMeter.com/blog/ support@blazemeter.com @BlazeMeter
Want to find out more?
Read our blog post on API & UI Testing:
http://bit.ly/UI-API
Watch the webcast:
http://bit.ly/apiuiwebcast
11

More Related Content

What's hot

What's hot (20)

Running JMeter Tests In Appvance PerformanceCloud
Running JMeter Tests In Appvance PerformanceCloudRunning JMeter Tests In Appvance PerformanceCloud
Running JMeter Tests In Appvance PerformanceCloud
 
Selenium and Appium Training from Sauce Labs
Selenium and Appium Training from Sauce LabsSelenium and Appium Training from Sauce Labs
Selenium and Appium Training from Sauce Labs
 
Performance Testing Terms
Performance Testing Terms Performance Testing Terms
Performance Testing Terms
 
Automation Best Practices
Automation Best PracticesAutomation Best Practices
Automation Best Practices
 
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
[Webinar] Test First, Fail Fast - Simplifying the Tester's Transition to DevOps
 
Continuous Testing in the Cloud
Continuous Testing in the CloudContinuous Testing in the Cloud
Continuous Testing in the Cloud
 
Deeper Root Cause Analysis to App Performance Bottlenecks with Appvance APM I...
Deeper Root Cause Analysis to App Performance Bottlenecks with Appvance APM I...Deeper Root Cause Analysis to App Performance Bottlenecks with Appvance APM I...
Deeper Root Cause Analysis to App Performance Bottlenecks with Appvance APM I...
 
Serverless Delivery
Serverless DeliveryServerless Delivery
Serverless Delivery
 
Test automation process
Test automation processTest automation process
Test automation process
 
Best Practices in Mobile CI (webinar)
Best Practices in Mobile CI (webinar)Best Practices in Mobile CI (webinar)
Best Practices in Mobile CI (webinar)
 
Helpful Automation Techniques - Selenium Camp 2014
Helpful Automation Techniques - Selenium Camp 2014Helpful Automation Techniques - Selenium Camp 2014
Helpful Automation Techniques - Selenium Camp 2014
 
Top10 Characteristics of Awesome Apps
Top10 Characteristics of Awesome AppsTop10 Characteristics of Awesome Apps
Top10 Characteristics of Awesome Apps
 
Testing Salesforce at Cloud Scale
Testing Salesforce at Cloud ScaleTesting Salesforce at Cloud Scale
Testing Salesforce at Cloud Scale
 
Using Automation to Meet Demands for Performance and Quality
Using Automation to Meet Demands for Performance and QualityUsing Automation to Meet Demands for Performance and Quality
Using Automation to Meet Demands for Performance and Quality
 
Mock Servers - Fake All the Things!
Mock Servers - Fake All the Things!Mock Servers - Fake All the Things!
Mock Servers - Fake All the Things!
 
Testing Microservices Architectures
Testing Microservices ArchitecturesTesting Microservices Architectures
Testing Microservices Architectures
 
Jenkins as the Test Reporting Framework
Jenkins as the Test Reporting FrameworkJenkins as the Test Reporting Framework
Jenkins as the Test Reporting Framework
 
What DevOps means for QA Teams
What DevOps means for QA TeamsWhat DevOps means for QA Teams
What DevOps means for QA Teams
 
Accelerating DevOps Collaboration with Sauce Labs and JIRA
Accelerating DevOps Collaboration with Sauce Labs and JIRAAccelerating DevOps Collaboration with Sauce Labs and JIRA
Accelerating DevOps Collaboration with Sauce Labs and JIRA
 
Postman for Efficient Professional Services: Collaboration, Mocking Dependenc...
Postman for Efficient Professional Services: Collaboration, Mocking Dependenc...Postman for Efficient Professional Services: Collaboration, Mocking Dependenc...
Postman for Efficient Professional Services: Collaboration, Mocking Dependenc...
 

Viewers also liked

Gatling - Bordeaux JUG
Gatling - Bordeaux JUGGatling - Bordeaux JUG
Gatling - Bordeaux JUG
slandelle
 
Hands On, Duchess 10/17/2012
Hands On, Duchess 10/17/2012Hands On, Duchess 10/17/2012
Hands On, Duchess 10/17/2012
slandelle
 

Viewers also liked (10)

BlazeMeter- Effective Performance Reporting
BlazeMeter- Effective Performance ReportingBlazeMeter- Effective Performance Reporting
BlazeMeter- Effective Performance Reporting
 
Performance Testing using Real Browsers with JMeter & Webdriver
Performance Testing using Real Browsers with JMeter & WebdriverPerformance Testing using Real Browsers with JMeter & Webdriver
Performance Testing using Real Browsers with JMeter & Webdriver
 
Gatling - Bordeaux JUG
Gatling - Bordeaux JUGGatling - Bordeaux JUG
Gatling - Bordeaux JUG
 
Hands On, Duchess 10/17/2012
Hands On, Duchess 10/17/2012Hands On, Duchess 10/17/2012
Hands On, Duchess 10/17/2012
 
'Shift-Right' - Rapid Evolution with DesignOps
'Shift-Right' - Rapid Evolution with DesignOps'Shift-Right' - Rapid Evolution with DesignOps
'Shift-Right' - Rapid Evolution with DesignOps
 
Pre-Con Lab: Test Automation Across Nine Open Source Tools—Taurus
Pre-Con Lab: Test Automation Across Nine Open Source Tools—TaurusPre-Con Lab: Test Automation Across Nine Open Source Tools—Taurus
Pre-Con Lab: Test Automation Across Nine Open Source Tools—Taurus
 
Testing Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeterTesting Soap/Rest Web Services with JMeter
Testing Soap/Rest Web Services with JMeter
 
Beyond JSON - An Introduction to FlatBuffers
Beyond JSON - An Introduction to FlatBuffersBeyond JSON - An Introduction to FlatBuffers
Beyond JSON - An Introduction to FlatBuffers
 
JMeter Database Performace Testing - Keytorc Approach
JMeter Database Performace Testing - Keytorc ApproachJMeter Database Performace Testing - Keytorc Approach
JMeter Database Performace Testing - Keytorc Approach
 
Zero to Sixty: AWS OpsWorks (DMG202) | AWS re:Invent 2013
Zero to Sixty: AWS OpsWorks (DMG202) | AWS re:Invent 2013Zero to Sixty: AWS OpsWorks (DMG202) | AWS re:Invent 2013
Zero to Sixty: AWS OpsWorks (DMG202) | AWS re:Invent 2013
 

Similar to How to Cover All Your Backend Testing Needs with API and UI Tests

apitestinginiadalahkatalontestingapiapiapiip
apitestinginiadalahkatalontestingapiapiapiipapitestinginiadalahkatalontestingapiapiapiip
apitestinginiadalahkatalontestingapiapiapiip
DikaSwatans
 
Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01
Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01
Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01
Anshuman Rai
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech
suhasreddy1
 

Similar to How to Cover All Your Backend Testing Needs with API and UI Tests (20)

APM Talk
APM TalkAPM Talk
APM Talk
 
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.ioMuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
 
Service virtualization with npm modules updated
Service virtualization with npm modules updatedService virtualization with npm modules updated
Service virtualization with npm modules updated
 
OMSOFTWARE NEW Service
OMSOFTWARE NEW ServiceOMSOFTWARE NEW Service
OMSOFTWARE NEW Service
 
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
 
Top 11 API testing tools for 2022
Top 11 API testing tools for 2022Top 11 API testing tools for 2022
Top 11 API testing tools for 2022
 
Webservicex.pdf
Webservicex.pdfWebservicex.pdf
Webservicex.pdf
 
apitestinginiadalahkatalontestingapiapiapiip
apitestinginiadalahkatalontestingapiapiapiipapitestinginiadalahkatalontestingapiapiapiip
apitestinginiadalahkatalontestingapiapiapiip
 
API Testing With Katalon Studio
API Testing With Katalon StudioAPI Testing With Katalon Studio
API Testing With Katalon Studio
 
Test Strategies for Microservices with Christoph Ebeling
Test Strategies for Microservices with Christoph EbelingTest Strategies for Microservices with Christoph Ebeling
Test Strategies for Microservices with Christoph Ebeling
 
Info manual testing questions
Info manual testing questionsInfo manual testing questions
Info manual testing questions
 
Appium Interview Questions and Answers | Edureka
Appium Interview Questions and Answers | EdurekaAppium Interview Questions and Answers | Edureka
Appium Interview Questions and Answers | Edureka
 
API Testing Useful Tools Postman Tutorial And Hints.pdf
API Testing Useful Tools Postman Tutorial And Hints.pdfAPI Testing Useful Tools Postman Tutorial And Hints.pdf
API Testing Useful Tools Postman Tutorial And Hints.pdf
 
Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01
Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01
Manualtestinginterviewquestionbyinfotech 100901071035-phpapp01
 
Manual testing interview questions by infotech
Manual testing interview questions by infotech Manual testing interview questions by infotech
Manual testing interview questions by infotech
 
Why You Should Be Doing Contract-First API Development
Why You Should Be Doing Contract-First API DevelopmentWhy You Should Be Doing Contract-First API Development
Why You Should Be Doing Contract-First API Development
 
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
 
J Meter Presentation 4
J Meter Presentation 4J Meter Presentation 4
J Meter Presentation 4
 
Reduce Release Risk with Feature Monitoring
Reduce Release Risk with Feature MonitoringReduce Release Risk with Feature Monitoring
Reduce Release Risk with Feature Monitoring
 
Load Runner Methodology to Performance Testing
Load Runner Methodology to Performance TestingLoad Runner Methodology to Performance Testing
Load Runner Methodology to Performance Testing
 

Recently uploaded

+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@
 

Recently uploaded (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
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
 
+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...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

How to Cover All Your Backend Testing Needs with API and UI Tests

  • 1. How to Cover all Your Backend Testing Needs With API & UI Tests Refael Botbol - Performance Engineer
  • 2. AGENDA Who Are We? Quick Overview of API & UI Testing API & UI Tests: Which Should You Use and When? How Testing Integrates Into Your Application Lifecycle Live Demo: Let’s Get Hands-On Q&A§ 02
  • 3. What is BlazeMeter? The Performance Testing Platform for Load, API, CI and Monitoring  Developer Friendly  Open Source Compatibility  Self Served 03
  • 4. What Can You Do With BlazeMeter? • Test any mobile app, website or API ​​in under 10 minutes • Simulate any number of users • Run any ​open source ​Apache JMeter script • Integrate automatically with your APM & CI tools • Analyze results through comprehensive reporting • Find and fix bottlenecks in your apps and website’s performance 04
  • 5. Quick Overview of API & UI Testing The practice of using APIs in order to loosen the interdependencies between frontend (browser & mobile) and backend API test your actual backend performance / functionality Analyzing hits/s VS response times to identify bottlenecks Testing UIs to verify user scenario(s) are working and responsive Analyzing users VS response times Using Selenium to improve understanding of actual user experience during the load test Error monitoring: important in both cases but crucial for API calls! 05
  • 6. The application responds in the same way throughout the test. Response times are not affected by the simulated load in any way. The Perfect Load Test 0 10 20 30 40 50 60 70 0:00 0:10 0:20 0:30 0:40 Users Response Time The Perfect Load Test 06
  • 7. The application initially responds well. But once it reaches a certain load, the response time starts to increase accordingly. However, when you stop adding more load, the response time will also stabilize. Sensitive to Load 0 10 20 30 40 50 60 70 0:00 0:10 0:20 0:30 0:40 Users Response Time Sensitive to Load 07
  • 8. We’re in a hell of a mess! The application can’t sustain the load, and response times keep rising even though we’ve stopped increasing the load. It’s clear that we’ve hit a significant bottleneck, something has probably broken and unless we solve it – the response time will only get worse! Breaks Under Load 0 20 40 60 80 100 120 140 160 0:00 0:10 0:20 0:30 0:40 Users Response Time Breaks Under Load 08
  • 9. API & UI Tests: Which Should You Use and When? 1. Unit testing 2. As part of your CI builds 3. Staging performance 4. Before adding a new service which will require more hits/s 5. Changes in the application design (New DB, Upgrades..) API – Testing your backend functionality and performance to understand how many hits/s it can sustain 1. Before major events (Black Friday, commercial events, elections etc..) 2. Before releasing a new frontend version UI – Verifying the quality of your user scenario and response times Both can be used as monitoring scripts 09
  • 10. Write your unit testing scripts to verify the code works (simple JMX) HOW TESTING INTEGRATES INTO YOUR APPLICATION LIFECYCLE Integrate unit testing into your CI tools (Jenkins, CloudBees etc.) and run them after important builds Create a user scenario script and add it to your CI builds to verify critical user scenarios are not broken Use these scripts with higher load on your staging environment to verify your API and user scenarios are working as planned Add a JMeter Selenium Web Driver to measure user experience during the load Take the same scripts and load test in production when needed 10
  • 11. For more information about Performance Testing and JMeter: BlazeMeter.com/blog/ support@blazemeter.com @BlazeMeter Want to find out more? Read our blog post on API & UI Testing: http://bit.ly/UI-API Watch the webcast: http://bit.ly/apiuiwebcast 11