SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
#ATAGTR2021
Use of AI and ML in Performance
Testing
Adolf Patel
 Overview
 Artificial Intelligence & Machine Learning
 Aspect of AI in testing
 How AI and ML can help in performance testing
 AI and ML based strategy for performance testing
 How AI and ML are changing performance testing process
 Detecting performance anomalies using AI & ML
 Benefits of AI-ML in performance testing
 Q&A
Agenda
Overview
In today's world of digital era where performance testing is a must to do activity before production
rollout, Artificial intelligence(AI) and Machine Learning(ML) is a game changer.
Despite of many automation tools available in the market which reduces human effort in
developing the scripts, executing the test scenarios and analysing the result, still, there is good
deal of manual/human efforts required when it comes to evaluate the results. Use of AI in
performance testing will make tasks like scripting, monitoring highly impactful and help to
get real time results very quickly and more accurately.
AI is crowding the technological landscape at snowballing speed. Appl’s Sri, Microsoft’s Cortana or Google’s
Assistance are some of the common AI powered tools we hear in everyday life. How about something similar for
performance testing like, you say, “Hey Sri, please send me the performance metrics of XYZ application on my
email” and you get a nice report appear in your mailbox or you say, “Hey Sri, please execute an endurance test for 4
hours for XYZ application and send me the report to my email” and your test environment spin up and execute the
test and send the report to your email. It sounds very impressive, isn’t it? Can it be done or even possible now? AI is
here, and it's bringing a whole new dimension to the performance testing.
AI is a system with increasingly self-learning capabilities, that can
complement human reasoning and activities by understanding the
environment, solving human problems, and perform human tasks.
In simple, Artificial intelligence is the simulation of human intelligence
processes by machines, especially computer systems.
Machine learning is a method of data analysis that automates analytical
model building using historical data as input to predict new output values. ML
is a subset of Artificial Intelligence. The machines learn from the history to
produce reliable results.
• Supervised Learning - Supervised learning algorithms analyze the
training datasets data and produce an inferred function. Example, Credit
card fraud detection.
Artificial Intelligence & Machine Learning
• Unsupervised Learning - Unsupervised learning algorithms analyze and learn the un-clustered data
and produce an inferred function. The algorithm itself finds the patterns in the data. Example,
Facebook friend request suggestion mechanism.
• Reinforcement Learning - Reinforcement learning is defined by characterizing a learning problem
and not by characterizing learning methods. Example, bots
Aspect of AI in testing
In the world of Agile, IT Managers want the code to build quickly, test quickly
before the production and deploy the code to production. If any errors comes
during testing, fix the issue and repeat the testing lifecycle quickly. More than
80% of the teams follow Agile methodology for software development
and 70% of the release happens weekly or before weekly basis.
Functional issues can be found and tested before production but
finding a performance issue or predicting the performance issue or
pattern in the production is bit difficult. So, can we use AI solution
to make things faster and smarter? AI brings the ability to
anticipate problems appearing in a system can prevent any
unforeseen issues in app development
Not only will AI increase the reliability of predicting system
breakdown in general operations, but test engineers will also be able
to use AI to create test strategies focused on recognizing dangers
most likely to appear.
How AI and ML can help in performance testing
• Quick and Better Data Analysis – Reduce error and improve data usages.
• Enhanced user experience – Conventional load testing involves server side
performance testing using some protocol like HTTP, This does not give the real user
experience performance. AI can be useful to load test the real browser based load
testing which give the better user experience performance. Tool like Loadninja, a
testing platform on the cloud to load test web applications with real browsers at
scale.
SMART
Identify performance trends with more granularity – Use machine
learning(ML) to dig deep into the data and highlight key performance
bottleneck for QA and Dev.
Create SMART SLA’s – A SMART SLA helps service providers to set
stakeholder expectation according to current as opposed to the past
system behavior. It also enable test engineers to create performance
tests scenarios according to the latest performance data available rather
than depending on the past data every time they perform the test.
Prevention is better than cure – AI help predict the issues before it occur thus giving time to
engineers to fix before it pops up.
AI and ML based strategy for performance testing
Planning Test Design Test Execution
Analysis &
Reporting
Production -
Live
• NFR Collection
• SLA Definition
• Script Creation • Workload Modelling • Smart Analysis
• Issue finding
• Tunning
Recommendations
• Live Monitoring
Issue, Fixes & Retest
Application Updates/Maintenance
Collect
Analyse
Learn
Predict
AL/ML Assisted
Components
AI-powered application monitoring and
scripting tools can detect issues in real
time, pinpoint the source of the
problems and automatically launch the
proper remediation processes — often
before end-users even recognize that
there’s been any kind of problem.
Application/
Environmen
t
How AI and ML are changing performance testing process
Make realistic test data – Setting up test data for a performance test scripts are not so easy. Many times, you need
to do it manually in csv files, sometimes you capture dynamic data from response packets and use for next course of
action in your scripts. An ML assisted tools or simple ML program can help building the vast range of data in no times.
Ensure system is resilient - Many of us are familiar with Chaos Monkey, the Netflix tool that intentionally pulls down
production instances, given that every system should be redundant. The objective is to test if a system is pulled
down, there should be no impact to system performance. By monitoring performance when tests are running,
management can determine when redundancy is lacking. Picking systems and randomly pulling them down is
arguably a type of AI. By noticing what is failing and what is working, Chaos Monkey can produce more complex
strategies for breaking things, a sort of true AI that can improve the customer experience.
Provide Realtime insight into a system’s performance - ML solutions can analyze and interpret millions of data in
no time, providing near to real time insight into systems performance. They can provide patterns and make
predictions to solve performance issues faster and more accurately than human, hence improving the efficiency.
Predicting performance in production – Can we predict how the application will perform under
certain load in production? The answer is may be. The simplest application of ML is to use data
sources to predict trends. Trends help leaders tell if a situation is under control, getting better, or
getting worse and how fast it's improving or worsening.
As enterprise software platforms expand in complexity and usability, performance anomalies have
become a serious threat that can result in huge loss in cost and reputation of an enterprise. Machine
learning solutions can analyze and interpret thousands of statistics per second, providing real-time
insight into a system’s performance.
There are several ways machine learning can be utilized to detect performance anomalies in
performance. It keeps baselining the real time behavior and comparing against the new normal for
any anomalies. Here are few of the most popular methods.
Detecting performance anomalies using AI & ML
Poor User
experienc
e
Failed
Load
Balancing
Blurred
Video
Streamin
g
Decrease
d
Throughp
ut
Server
Crash
Freezing
Hanging
Increased
Latency
Delayed
Response
Time
Density-Based – Assuming that normal data points occur around a dense neighborhood and, therefore, anomalies
are far always, this method of detection is based on the K-Nearest neighbors' algorithm, or alternatively the local
outlier factor.
Clustering-based- This method is one of the most popular concepts for unsupervised learning. It assumes that data
points that are similar usually belong to similar groups. Here, a K-means algorithm creates ‘k’ similar clusters of data
points, with instances that fall outside the clusters being marked as potential anomalies.
Support vector machine-based – Support vector machine is generally associated with supervised learning. Here the
algorithm learns a soft boundary to cluster the normal data and then identifies instances that fall outside the learned
region.
Benefits of AI-ML in performance testing
 Codeless automation using natural language processing(NLP)
 Testing environment developed using ML helps in self healing and corrections
 Test flows can be automated and can be tested using data
 Performance test modelling process provide real time workload during test execution
 SMART SLA preparation and real time workload modelling
 Adapting the performance rules over time and inventing new rules for automated
remediation
 Extrapolating the resulting data to human experience of performance
 Increased used of AI assisted APM tools
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf Patel
#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf Patel

More Related Content

What's hot (20)

PDF
DevSecOps | DevOps Sec
Rubal Jain
 
PPTX
Test Automation in Agile
Agile Testing Alliance
 
PPSX
Microservices Testing Strategies JUnit Cucumber Mockito Pact
Araf Karsh Hamid
 
PPTX
Pruebas de software
Gomez Gomez
 
PPT
Security Compliance Web Application Risk Management
Marco Morana
 
PPTX
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
SHASHI JAISWAL
 
PPTX
The shift left strategy
Clearsky testautomation
 
PDF
DevTest Portfolio Overview
CA Technologies
 
PDF
Building functional Quality Gates with ReportPortal
Dmitriy Gumeniuk
 
PPTX
Katalon Studio - GUI Overview
Katalon Studio
 
PDF
Integrating Automated Testing into DevOps
TechWell
 
PPTX
DevOps and Build Automation
Heiswayi Nrird
 
PDF
Native vs. Hybrid Apps
Visual Net Design
 
PDF
Ai in software automation testing - testim.io
Aliaa Monier Ismaail
 
PPTX
Cucumber BDD
Pravin Dsilva
 
PPTX
Automation testing
Mona M. Abd El-Rahman
 
PPTX
Idexcel Independent Testing Services Presentation
Idexcel
 
PDF
Test Automation Framework Design | www.idexcel.com
Idexcel Technologies
 
PPTX
Static Analysis Security Testing for Dummies... and You
Kevin Fealey
 
PDF
Automated vs manual testing
Kanoah
 
DevSecOps | DevOps Sec
Rubal Jain
 
Test Automation in Agile
Agile Testing Alliance
 
Microservices Testing Strategies JUnit Cucumber Mockito Pact
Araf Karsh Hamid
 
Pruebas de software
Gomez Gomez
 
Security Compliance Web Application Risk Management
Marco Morana
 
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
SHASHI JAISWAL
 
The shift left strategy
Clearsky testautomation
 
DevTest Portfolio Overview
CA Technologies
 
Building functional Quality Gates with ReportPortal
Dmitriy Gumeniuk
 
Katalon Studio - GUI Overview
Katalon Studio
 
Integrating Automated Testing into DevOps
TechWell
 
DevOps and Build Automation
Heiswayi Nrird
 
Native vs. Hybrid Apps
Visual Net Design
 
Ai in software automation testing - testim.io
Aliaa Monier Ismaail
 
Cucumber BDD
Pravin Dsilva
 
Automation testing
Mona M. Abd El-Rahman
 
Idexcel Independent Testing Services Presentation
Idexcel
 
Test Automation Framework Design | www.idexcel.com
Idexcel Technologies
 
Static Analysis Security Testing for Dummies... and You
Kevin Fealey
 
Automated vs manual testing
Kanoah
 

Similar to #ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf Patel (20)

PPTX
implementing_ai_for_improved_performance_testing_the_key_to_success.pptx
sarah david
 
PDF
implementing_ai_for_improved_performance_testing_the_key_to_success.pdf
sarah david
 
PDF
Implementing AI for improved performance testing – Cuneiform.pdf
Cuneiform Consulting Pvt Ltd.
 
PDF
Leveraging AI to Revolutionize Software Testing.pdf
RohitBhandari66
 
PPTX
#Interactive Session by Sujeet Kumar Maurya, "Performance engineering with AI...
Agile Testing Alliance
 
PDF
The power of AI and ML in Testing .
tisnatom
 
PDF
AI in Modern Software Testing: Smarter QA Today
digitaljignect
 
PDF
Guide to Successful AI.pdf
Zoe Gilbert
 
PDF
Applying Machine Learning to Boost Digital Business Performance
Cognizant
 
PDF
Integrating AI in software quality in absence of a well-defined requirements
Nagarro
 
PDF
Rise of the Machines: Can Artificial Intelligence Terminate Manual Testing?
TechWell
 
PDF
AI Trends and Benefits in Software Testing
Enov8
 
PPTX
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
DevDay Da Nang
 
PDF
Testing of artificial intelligence; AI quality engineering skils - an introdu...
Rik Marselis
 
PDF
How AI supports software testing at Kokkola
Kari Kakkonen
 
PDF
Testing tools and AI - ideas what to try with some tool examples
Kari Kakkonen
 
PDF
AI in Automation Testing_ A Game-Changer for Quality Assurance (QA).pdf
kalichargn70th171
 
PDF
Hidden Costs of Ignoring AI Testing in Your QA Strategy.pdf
Jace Reed
 
PDF
Pstc 2018
Roopesh Kohad
 
PPTX
How AI Can Be Leveraged In All Aspects Of Testing
Alisha Henderson
 
implementing_ai_for_improved_performance_testing_the_key_to_success.pptx
sarah david
 
implementing_ai_for_improved_performance_testing_the_key_to_success.pdf
sarah david
 
Implementing AI for improved performance testing – Cuneiform.pdf
Cuneiform Consulting Pvt Ltd.
 
Leveraging AI to Revolutionize Software Testing.pdf
RohitBhandari66
 
#Interactive Session by Sujeet Kumar Maurya, "Performance engineering with AI...
Agile Testing Alliance
 
The power of AI and ML in Testing .
tisnatom
 
AI in Modern Software Testing: Smarter QA Today
digitaljignect
 
Guide to Successful AI.pdf
Zoe Gilbert
 
Applying Machine Learning to Boost Digital Business Performance
Cognizant
 
Integrating AI in software quality in absence of a well-defined requirements
Nagarro
 
Rise of the Machines: Can Artificial Intelligence Terminate Manual Testing?
TechWell
 
AI Trends and Benefits in Software Testing
Enov8
 
[DevDay2019] How AI is changing the future of Software Testing? - By Vui Nguy...
DevDay Da Nang
 
Testing of artificial intelligence; AI quality engineering skils - an introdu...
Rik Marselis
 
How AI supports software testing at Kokkola
Kari Kakkonen
 
Testing tools and AI - ideas what to try with some tool examples
Kari Kakkonen
 
AI in Automation Testing_ A Game-Changer for Quality Assurance (QA).pdf
kalichargn70th171
 
Hidden Costs of Ignoring AI Testing in Your QA Strategy.pdf
Jace Reed
 
Pstc 2018
Roopesh Kohad
 
How AI Can Be Leveraged In All Aspects Of Testing
Alisha Henderson
 
Ad

More from Agile Testing Alliance (20)

PPTX
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
Agile Testing Alliance
 
PDF
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
Agile Testing Alliance
 
PPTX
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
Agile Testing Alliance
 
PDF
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
Agile Testing Alliance
 
PDF
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
Agile Testing Alliance
 
PPTX
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
Agile Testing Alliance
 
PPTX
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
Agile Testing Alliance
 
PPTX
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
Agile Testing Alliance
 
PDF
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
Agile Testing Alliance
 
PPTX
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
Agile Testing Alliance
 
PPTX
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
PPTX
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
Agile Testing Alliance
 
PPTX
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
Agile Testing Alliance
 
PDF
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
Agile Testing Alliance
 
PPTX
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
Agile Testing Alliance
 
PDF
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
Agile Testing Alliance
 
PDF
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
Agile Testing Alliance
 
PPTX
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
Agile Testing Alliance
 
PDF
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
Agile Testing Alliance
 
PPTX
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
Agile Testing Alliance
 
#Interactive Session by Anindita Rath and Mahathee Dandibhotla, "From Good to...
Agile Testing Alliance
 
#Interactive Session by Ajay Balamurugadas, "Where Are The Real Testers In T...
Agile Testing Alliance
 
#Interactive Session by Jishnu Nambiar and Mayur Ovhal, "Monitoring Web Per...
Agile Testing Alliance
 
#Interactive Session by Pradipta Biswas and Sucheta Saurabh Chitale, "Navigat...
Agile Testing Alliance
 
#Interactive Session by Apoorva Ram, "The Art of Storytelling for Testers" at...
Agile Testing Alliance
 
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
Agile Testing Alliance
 
#Interactive Session by Ashok Kumar S, "Test Data the key to robust test cove...
Agile Testing Alliance
 
#Interactive Session by Seema Kohli, "Test Leadership in the Era of Artificia...
Agile Testing Alliance
 
#Interactive Session by Ashwini Lalit, RRR of Test Automation Maintenance" at...
Agile Testing Alliance
 
#Interactive Session by Srithanga Aishvarya T, "Machine Learning Model to aut...
Agile Testing Alliance
 
#Interactive Session by Kirti Ranjan Satapathy and Nandini K, "Elements of Qu...
Agile Testing Alliance
 
#Interactive Session by Sudhir Upadhyay and Ashish Kumar, "Strengthening Test...
Agile Testing Alliance
 
#Interactive Session by Sayan Deb Kundu, "Testing Gen AI Applications" at #AT...
Agile Testing Alliance
 
#Interactive Session by Dinesh Boravke, "Zero Defects – Myth or Reality" at #...
Agile Testing Alliance
 
#Interactive Session by Saby Saurabh Bhardwaj, "Redefine Quality Assurance –...
Agile Testing Alliance
 
#Keynote Session by Sanjay Kumar, "Innovation Inspired Testing!!" at #ATAGTR2...
Agile Testing Alliance
 
#Keynote Session by Schalk Cronje, "Don’t Containerize me" at #ATAGTR2023.
Agile Testing Alliance
 
#Interactive Session by Chidambaram Vetrivel and Venkatesh Belde, "Revolution...
Agile Testing Alliance
 
#Interactive Session by Aniket Diwakar Kadukar and Padimiti Vaidik Eswar Dat...
Agile Testing Alliance
 
#Interactive Session by Vivek Patle and Jahnavi Umarji, "Empowering Functiona...
Agile Testing Alliance
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Advancing WebDriver BiDi support in WebKit
Igalia
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
July Patch Tuesday
Ivanti
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 

#ATAGTR2021 Presentation : "Use of AI and ML in Performance Testing" by Adolf Patel

  • 1. #ATAGTR2021 Use of AI and ML in Performance Testing Adolf Patel
  • 2.  Overview  Artificial Intelligence & Machine Learning  Aspect of AI in testing  How AI and ML can help in performance testing  AI and ML based strategy for performance testing  How AI and ML are changing performance testing process  Detecting performance anomalies using AI & ML  Benefits of AI-ML in performance testing  Q&A Agenda
  • 3. Overview In today's world of digital era where performance testing is a must to do activity before production rollout, Artificial intelligence(AI) and Machine Learning(ML) is a game changer. Despite of many automation tools available in the market which reduces human effort in developing the scripts, executing the test scenarios and analysing the result, still, there is good deal of manual/human efforts required when it comes to evaluate the results. Use of AI in performance testing will make tasks like scripting, monitoring highly impactful and help to get real time results very quickly and more accurately. AI is crowding the technological landscape at snowballing speed. Appl’s Sri, Microsoft’s Cortana or Google’s Assistance are some of the common AI powered tools we hear in everyday life. How about something similar for performance testing like, you say, “Hey Sri, please send me the performance metrics of XYZ application on my email” and you get a nice report appear in your mailbox or you say, “Hey Sri, please execute an endurance test for 4 hours for XYZ application and send me the report to my email” and your test environment spin up and execute the test and send the report to your email. It sounds very impressive, isn’t it? Can it be done or even possible now? AI is here, and it's bringing a whole new dimension to the performance testing.
  • 4. AI is a system with increasingly self-learning capabilities, that can complement human reasoning and activities by understanding the environment, solving human problems, and perform human tasks. In simple, Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems. Machine learning is a method of data analysis that automates analytical model building using historical data as input to predict new output values. ML is a subset of Artificial Intelligence. The machines learn from the history to produce reliable results. • Supervised Learning - Supervised learning algorithms analyze the training datasets data and produce an inferred function. Example, Credit card fraud detection. Artificial Intelligence & Machine Learning • Unsupervised Learning - Unsupervised learning algorithms analyze and learn the un-clustered data and produce an inferred function. The algorithm itself finds the patterns in the data. Example, Facebook friend request suggestion mechanism. • Reinforcement Learning - Reinforcement learning is defined by characterizing a learning problem and not by characterizing learning methods. Example, bots
  • 5. Aspect of AI in testing In the world of Agile, IT Managers want the code to build quickly, test quickly before the production and deploy the code to production. If any errors comes during testing, fix the issue and repeat the testing lifecycle quickly. More than 80% of the teams follow Agile methodology for software development and 70% of the release happens weekly or before weekly basis. Functional issues can be found and tested before production but finding a performance issue or predicting the performance issue or pattern in the production is bit difficult. So, can we use AI solution to make things faster and smarter? AI brings the ability to anticipate problems appearing in a system can prevent any unforeseen issues in app development Not only will AI increase the reliability of predicting system breakdown in general operations, but test engineers will also be able to use AI to create test strategies focused on recognizing dangers most likely to appear.
  • 6. How AI and ML can help in performance testing • Quick and Better Data Analysis – Reduce error and improve data usages. • Enhanced user experience – Conventional load testing involves server side performance testing using some protocol like HTTP, This does not give the real user experience performance. AI can be useful to load test the real browser based load testing which give the better user experience performance. Tool like Loadninja, a testing platform on the cloud to load test web applications with real browsers at scale. SMART Identify performance trends with more granularity – Use machine learning(ML) to dig deep into the data and highlight key performance bottleneck for QA and Dev. Create SMART SLA’s – A SMART SLA helps service providers to set stakeholder expectation according to current as opposed to the past system behavior. It also enable test engineers to create performance tests scenarios according to the latest performance data available rather than depending on the past data every time they perform the test. Prevention is better than cure – AI help predict the issues before it occur thus giving time to engineers to fix before it pops up.
  • 7. AI and ML based strategy for performance testing Planning Test Design Test Execution Analysis & Reporting Production - Live • NFR Collection • SLA Definition • Script Creation • Workload Modelling • Smart Analysis • Issue finding • Tunning Recommendations • Live Monitoring Issue, Fixes & Retest Application Updates/Maintenance Collect Analyse Learn Predict AL/ML Assisted Components AI-powered application monitoring and scripting tools can detect issues in real time, pinpoint the source of the problems and automatically launch the proper remediation processes — often before end-users even recognize that there’s been any kind of problem. Application/ Environmen t
  • 8. How AI and ML are changing performance testing process Make realistic test data – Setting up test data for a performance test scripts are not so easy. Many times, you need to do it manually in csv files, sometimes you capture dynamic data from response packets and use for next course of action in your scripts. An ML assisted tools or simple ML program can help building the vast range of data in no times. Ensure system is resilient - Many of us are familiar with Chaos Monkey, the Netflix tool that intentionally pulls down production instances, given that every system should be redundant. The objective is to test if a system is pulled down, there should be no impact to system performance. By monitoring performance when tests are running, management can determine when redundancy is lacking. Picking systems and randomly pulling them down is arguably a type of AI. By noticing what is failing and what is working, Chaos Monkey can produce more complex strategies for breaking things, a sort of true AI that can improve the customer experience. Provide Realtime insight into a system’s performance - ML solutions can analyze and interpret millions of data in no time, providing near to real time insight into systems performance. They can provide patterns and make predictions to solve performance issues faster and more accurately than human, hence improving the efficiency. Predicting performance in production – Can we predict how the application will perform under certain load in production? The answer is may be. The simplest application of ML is to use data sources to predict trends. Trends help leaders tell if a situation is under control, getting better, or getting worse and how fast it's improving or worsening.
  • 9. As enterprise software platforms expand in complexity and usability, performance anomalies have become a serious threat that can result in huge loss in cost and reputation of an enterprise. Machine learning solutions can analyze and interpret thousands of statistics per second, providing real-time insight into a system’s performance. There are several ways machine learning can be utilized to detect performance anomalies in performance. It keeps baselining the real time behavior and comparing against the new normal for any anomalies. Here are few of the most popular methods. Detecting performance anomalies using AI & ML Poor User experienc e Failed Load Balancing Blurred Video Streamin g Decrease d Throughp ut Server Crash Freezing Hanging Increased Latency Delayed Response Time Density-Based – Assuming that normal data points occur around a dense neighborhood and, therefore, anomalies are far always, this method of detection is based on the K-Nearest neighbors' algorithm, or alternatively the local outlier factor. Clustering-based- This method is one of the most popular concepts for unsupervised learning. It assumes that data points that are similar usually belong to similar groups. Here, a K-means algorithm creates ‘k’ similar clusters of data points, with instances that fall outside the clusters being marked as potential anomalies. Support vector machine-based – Support vector machine is generally associated with supervised learning. Here the algorithm learns a soft boundary to cluster the normal data and then identifies instances that fall outside the learned region.
  • 10. Benefits of AI-ML in performance testing  Codeless automation using natural language processing(NLP)  Testing environment developed using ML helps in self healing and corrections  Test flows can be automated and can be tested using data  Performance test modelling process provide real time workload during test execution  SMART SLA preparation and real time workload modelling  Adapting the performance rules over time and inventing new rules for automated remediation  Extrapolating the resulting data to human experience of performance  Increased used of AI assisted APM tools