SlideShare a Scribd company logo
API Test
Load Test
A New Tool : Locust
Proposed Framework
Agenda:
1. API functionality test by Python scripting
2. Load test and Introducing new tool for load test in python
3. Showing at a time load and Continuous load generate
4. Find out reports, monitoring and analyzing server stability easily
API functionality test by Python scripting
Tasks, Problem solving and example:
1. Face API
2. Face API Automated functionality test
3. Data import from CSV file which comes from Media server
4. Downloading images as file data, from Media server and Converting as local path by
python script
5. New API test with Downloaded local data
6. Record response status code, response time, record status/message from API
API LOAD Test:
Load Test by python:
 Face API test with Image file data
 by sending generated image url
 (which files we downloaded and generated local path)
Introducing new tool for load test in python
What is locust (API/Any Web)
Why locust? What is the benefit of locust!
Lets see a-------- >> Demo
Benefit for long run
What is locust (API/Any Web)
Locust is an easy-to-use, distributed user load testing tool.
 It is intended for load-testing web sites or API (or other
systems) and figuring out how many concurrent users a
system can handle.
Why Locust?! What is the benefit of locust!
 Why do we need to look into this new tool when there are lots of well-
established tools available in the market for decades like JMeter,
LoadRunner, ApacheBench, Gatling, Tsung, etc…
 Here is why we should give a try for this new tool,
* Allows a user to write code in plain python.
* Supports distributed user.
* Supports default HTML + JS based reporting.
* Open source.
* Locust is completely event-based, and therefore it’s possible to support
thousands of concurrent users on a single machine. In contrast to many other
event-based apps, it doesn’t use callbacks. Instead, it uses light-weight
processes, through event.
COMPARISON OF LOCUST WITH JMETER:
When we talk about performance testing, the tool which comes into everyone’s mind
is JMeter, including myself. But when we dive deep here are the drawbacks it has:
 * Point-and-click interface, a graphical interface to point, Independence of scope
implementation, Easy to code, Easy to see and compare report, Easy to download
report, and execute the click events.
 Easy to learn - locust
 * JMeter is thread bounded, internally it means each user we stimulate needs a
separate thread, benchmarking thousands of user in a single machine is not
feasible.
Locust automated api_load_test_framework_development
Featured snippet from the web
That's why Locust has a great benefit over JMeter,
 As you can use built-in monitoring even if you need to
simulate a lot of users.
On the other hand, default monitoring doesn't provide very
detailed information that you can get from open source 3rd
party tools
Statistics Monitoring:
Charts: Total requests per second, Responses Time(ms) and Number of Users
Failures:
Exceptions:
Download Data:
Load test for ALL TYPES OF API WITH
 WE ONLY CREATE DATA FILE
 For each api a json file (all
request)
 AND RUN IT.
Solved manual Load test by a Automated Load Test
IDEA:
 Introducing A developing Framework
for Automated Load API Test
 by Locust
Lets See a Demo …
API Json parse Data file:
Future goal:
 All Methods
 All types of URL
 All Types of input payload (URL param, Body, images etc)
 Support or SureAPI, Core Api, Android GateWay etc
 Run TEST from one or multiple server simultaneously
 More…
Thank you

More Related Content

PDF
Top Performance Testing Tools of 2025: Ensure Speed, Stability, and Scale
PPTX
Robot framework
PPT
Android overview
ODP
Software testing tools
PDF
OSMC 2021 | Robotmk: You don’t run IT – you deliver services!
PDF
Pro smartbooksquestions
PPT
Elefrant [ng-Poznan]
PDF
Web application penetration testing lab setup guide
Top Performance Testing Tools of 2025: Ensure Speed, Stability, and Scale
Robot framework
Android overview
Software testing tools
OSMC 2021 | Robotmk: You don’t run IT – you deliver services!
Pro smartbooksquestions
Elefrant [ng-Poznan]
Web application penetration testing lab setup guide

Similar to Locust automated api_load_test_framework_development (20)

PDF
Top 5 API Load Testing Tools & Their Benefits
DOCX
Android Malware Detection Using Genetic Algorithm.docx
PPT
[null]Metapwn - Pwn at a puff by Prajwal Panchmahalkar
DOCX
Malware Detection using ML Malware Detection using ml
PDF
Scale and Load Testing of Micro-Service
PDF
automation framework
PDF
Open Source Software Testing Tools
PPTX
How to use Jmeter for performance testing
PDF
Innovation Generation - The Mobile Meetup: Android Best Practices
PPTX
Android 101 Session @thejunction32
PDF
Top 11 api testing tools for 2022
PPT
Android In A Nutshell
PDF
System design for Web Application
PPT
Stepin evening presented
PDF
Leveraging Python Telemetry, Azure Application Logging, and Performance Testi...
PDF
Top 11 API testing tools for 2022
PPTX
Windows 7 – Application Compatibility Toolkit 5.5 Overview
PPTX
Windows 7 For Developers
DOCX
QTP Interview Questions and answers
Top 5 API Load Testing Tools & Their Benefits
Android Malware Detection Using Genetic Algorithm.docx
[null]Metapwn - Pwn at a puff by Prajwal Panchmahalkar
Malware Detection using ML Malware Detection using ml
Scale and Load Testing of Micro-Service
automation framework
Open Source Software Testing Tools
How to use Jmeter for performance testing
Innovation Generation - The Mobile Meetup: Android Best Practices
Android 101 Session @thejunction32
Top 11 api testing tools for 2022
Android In A Nutshell
System design for Web Application
Stepin evening presented
Leveraging Python Telemetry, Azure Application Logging, and Performance Testi...
Top 11 API testing tools for 2022
Windows 7 – Application Compatibility Toolkit 5.5 Overview
Windows 7 For Developers
QTP Interview Questions and answers
Ad

Recently uploaded (20)

PPTX
Sustainable Sites - Green Building Construction
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPT
Mechanical Engineering MATERIALS Selection
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Welding lecture in detail for understanding
Sustainable Sites - Green Building Construction
CH1 Production IntroductoryConcepts.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Mechanical Engineering MATERIALS Selection
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Structs to JSON How Go Powers REST APIs.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
573137875-Attendance-Management-System-original
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
CYBER-CRIMES AND SECURITY A guide to understanding
Arduino robotics embedded978-1-4302-3184-4.pdf
OOP with Java - Java Introduction (Basics)
Lesson 3_Tessellation.pptx finite Mathematics
Internet of Things (IOT) - A guide to understanding
Lecture Notes Electrical Wiring System Components
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Welding lecture in detail for understanding
Ad

Locust automated api_load_test_framework_development

  • 1. API Test Load Test A New Tool : Locust Proposed Framework
  • 2. Agenda: 1. API functionality test by Python scripting 2. Load test and Introducing new tool for load test in python 3. Showing at a time load and Continuous load generate 4. Find out reports, monitoring and analyzing server stability easily
  • 3. API functionality test by Python scripting Tasks, Problem solving and example: 1. Face API 2. Face API Automated functionality test 3. Data import from CSV file which comes from Media server 4. Downloading images as file data, from Media server and Converting as local path by python script 5. New API test with Downloaded local data 6. Record response status code, response time, record status/message from API
  • 4. API LOAD Test: Load Test by python:  Face API test with Image file data  by sending generated image url  (which files we downloaded and generated local path)
  • 5. Introducing new tool for load test in python What is locust (API/Any Web) Why locust? What is the benefit of locust! Lets see a-------- >> Demo Benefit for long run
  • 6. What is locust (API/Any Web) Locust is an easy-to-use, distributed user load testing tool.  It is intended for load-testing web sites or API (or other systems) and figuring out how many concurrent users a system can handle.
  • 7. Why Locust?! What is the benefit of locust!  Why do we need to look into this new tool when there are lots of well- established tools available in the market for decades like JMeter, LoadRunner, ApacheBench, Gatling, Tsung, etc…  Here is why we should give a try for this new tool, * Allows a user to write code in plain python. * Supports distributed user. * Supports default HTML + JS based reporting. * Open source. * Locust is completely event-based, and therefore it’s possible to support thousands of concurrent users on a single machine. In contrast to many other event-based apps, it doesn’t use callbacks. Instead, it uses light-weight processes, through event.
  • 8. COMPARISON OF LOCUST WITH JMETER: When we talk about performance testing, the tool which comes into everyone’s mind is JMeter, including myself. But when we dive deep here are the drawbacks it has:  * Point-and-click interface, a graphical interface to point, Independence of scope implementation, Easy to code, Easy to see and compare report, Easy to download report, and execute the click events.  Easy to learn - locust  * JMeter is thread bounded, internally it means each user we stimulate needs a separate thread, benchmarking thousands of user in a single machine is not feasible.
  • 10. Featured snippet from the web That's why Locust has a great benefit over JMeter,  As you can use built-in monitoring even if you need to simulate a lot of users. On the other hand, default monitoring doesn't provide very detailed information that you can get from open source 3rd party tools
  • 12. Charts: Total requests per second, Responses Time(ms) and Number of Users
  • 16. Load test for ALL TYPES OF API WITH  WE ONLY CREATE DATA FILE  For each api a json file (all request)  AND RUN IT.
  • 17. Solved manual Load test by a Automated Load Test IDEA:  Introducing A developing Framework for Automated Load API Test  by Locust
  • 18. Lets See a Demo …
  • 19. API Json parse Data file:
  • 20. Future goal:  All Methods  All types of URL  All Types of input payload (URL param, Body, images etc)  Support or SureAPI, Core Api, Android GateWay etc  Run TEST from one or multiple server simultaneously  More…