SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Raja Balusamy, Group Manager
Shivakumar Balur, Senior Chief Engineer
Samsung R&D Institute India - Bangalore
Predictive Analytics based
Regression Test Optimization
1
• Why Predictions Important
• Predictions in different industry
• Confidence Level and Data Sampling
• Preprocessing
• ML
• Our Model
• Sample Study
2
Contents
Increase
costs in
SW
Testing
Market
Release
Delays
Experien
ce
Operatio
nal risks
Customer
Satisfacti
on on
Quality
Helps to
predict the test
suite
Helps to
improve the
test
estimation
Helps to
predict the
Man days
reduction
Problem
Benefits
Predictive Modeling Benefits..
3
Predictive Modeling Is..
 Predictive modeling uses statistics to predict outcomes.
 The goal is to go beyond knowing what has happened to
providing a best assessment of what will happen in the
future.
Reports /
Records
Predict
Results
Review
Predictions
Past Current Future
Action 4
Predictions
Confidence Level and Sample Size
Confidence Level is more when analyze with more samples.
5 Steps Processing
Data
Collection
Data
Cleaning
Building
Model
Validation
Predictions
Video Clip
Source: YouTube
Your Predictions
Source: Wikipedia
Which
movie will
join 500
crores
club?
Machine Learning Algorithms to Predict
• Fast Training Time
• Mostly Used
Logistic Regression
• More Accurate
• Training Time is slow
Artificial Neural Network
• Fast Training Time
• Pre-requisite of high memory footprint
Decision Tree
• Quicker than other alternatives
• Highly feature dependent
Naïve Bayes Classifier
• Highly Accurate
• Pre-requisite of 100+ independent variables
Support Vector Machine
• High Cost of computation
• Applicability in diverse training set data
K-Nearest Neighbors
Selected for our model as
Mostly used and Fast
Training Time
10
Defects History
Change List
Module Mapping
Code Changes
∑Weight
based on
priority or AI)
Algorithms:
Logistic
Regression
Optimized TCs
Suite
Our Prediction Model || Optimized Test Suite
Input Training Model Output
Release Info
# New Features
Test cases
w1
w2
w3
w4
w5
w6
w7
x1
x2
x3
x4
x5
x6
x7
Raw Data Remove Errors
Input for
Training Model
Data Set:
11
Input || X1: Defects Analysis
• Code Changed Defects /
Documents
Considered
• Defects Severity (High / Medium / Low)
• Occur. Freq.
• Defects Classification (Display, Fatal, Function, Performance, Text,
Usability)
• Resolved Option (Code Changes, UI/UX)
Summation ∑ = Weighted Average
Note: The defect which accepted from Development Team are considered. Invalid defects are not considered including 3rd party.12
Input || X2: Change List Information
Considered
• [Title] Feature Change /
Defects Fix / Etc..
• [Checking Method] Steps to
check
• [Type & Feature Name]
Feature Change
• [Cause & Measure] Exception
not handled
• [Developer] Name
• [Modules Affected] Module A
and Module B
Note: Change list data taken from Configuration Management Tool which submitted by Development Team
Narrow ‘s
Down the
TCs Group
Set selection
Weightage
evaluation
Key Words
been used to
identify
Module Fix
info
13
Input || X3: Module Mapping
Possible Scenarios:
• No Interaction
• Average Interaction
• Less Interaction
• More Interaction
No interaction Consider Only A1
Average interaction Consider A2 + C2 + C3
Less interaction Consider A4 + C4
More interaction Consider A3 + C1 + C2 + C4
Note: Module Mapping done by an Experts or Class Diagram or by Code Coverage to find out the interaction between modules.
Modules/ C
Sub Modules C1 C2 C3 C4
A
A1 X X X X
A2 X Y Y X
A3 Y Y X Y
A4 X X X Y
C2 & C4 are duplicate as
these are considered along
with A2 & A4
14
Lines of Code
• Added
• Deleted
• Modified
• Release version
• Type of Releases
(Sanity / Full / Patch)
Release Information
Input || X4: Code Changes Input || X5: Release Info
Note: SLOC Tool used for calculating KLOC Changes Note: Release information and type taken from Internal Tools
15
TestcasesNo.of New Features Implemented
• Impact of new
features
• Module Name
• Sub Module Name
• Priority
• Title
• Steps to Execute
• Failed Test cases
Input || X6: New Features Input || X7: Test Cases
Note: PM and Development Team shared the new features Note: Test case data prepared by Test Team.
16
Release
Cycle
Regression Test Cycle
(4200 Test cases)
Manual Prediction Model
A1 6300 2654
A2 6300 2250
A3 6300 1973
A4 6300 1275
A5 6300 960
Input
Predicted Test Suite
• Other than source code changes defects not predicted using above
model (Ex; Document Related Defects (Requirements Documentation,
UI) and 3rd Party defects.
Ex: Text cut, document mismatch, dependent on 3rd party..
Non Predicted Defects Category
• 3536 Defects
• 2932 Change List
• 43 Modules
• 1245 KLOC Changes
• 32 Releases
• 5 New Features
• 6300 Test cases
Release
Cycle
Defects Identified
Prediction
Model
Non -
Prediction
%
Accuracy
A1 415 353 54%
A2 365 215 63%
A3 300 130 70%
A4 199 30 87%
A5 144 20 89%
17
Sample Study
Prediction || Advantages
Prediction
Defect
Prediction
Test
Estimation
Man days
Reduction
Optimal
Test
Suite
18
Limitations..
 History cannot always predict 100% future accurate.
 The issue of unknown unknowns.
 Self-defeat of an algorithm.
19
 Defects Resolution comments from Developer
 Module Mapping
 New Features TC Optimization (LOC, etc.)..
Challenges..
20
Thanks to…
&
Participants
Thank You!!!
21
Algorithms
Error Metrics (To Predict More Accurate)
True condition
Type
#Identification of
TCs
Condition
positive
Condition
negative
Predicted
condition
Predicted
condition
positive
True positive,
Power
False positive,
Type I error
Predicted
condition
negative
False negative,
Type II error
True negative
X1
Xn
W1
Wn
∑input
OutputAF
Activation
Function
Yes
Error?
No
Re-train
23
https://www.clictest.com/blogs/importance-predictive-analytics-software-
testing/
https://www.predictiveanalyticstoday.com/predictive-modeling/
https://en.wikipedia.org/wiki/Predictive_modelling
References & Appendix
24

Weitere ähnliche Inhalte

Was ist angesagt?

Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
HeyDay Software Solutions
 
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Lionel Briand
 
Automated Change Impact Analysis between SysML Models of Requirements and Design
Automated Change Impact Analysis between SysML Models of Requirements and DesignAutomated Change Impact Analysis between SysML Models of Requirements and Design
Automated Change Impact Analysis between SysML Models of Requirements and Design
Lionel Briand
 

Was ist angesagt? (20)

Henk Doornbos & Rix Groenboom - Test Patterns: A New Concept For Testing
Henk Doornbos & Rix Groenboom - Test Patterns: A New Concept For TestingHenk Doornbos & Rix Groenboom - Test Patterns: A New Concept For Testing
Henk Doornbos & Rix Groenboom - Test Patterns: A New Concept For Testing
 
Automation Framework/QTP Framework
Automation Framework/QTP FrameworkAutomation Framework/QTP Framework
Automation Framework/QTP Framework
 
SSBSE 2020 keynote
SSBSE 2020 keynoteSSBSE 2020 keynote
SSBSE 2020 keynote
 
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
Analyzing Natural-Language Requirements: The Not-too-sexy and Yet Curiously D...
 
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
Applying Product Line Use Case Modeling ! in an Industrial Automotive Embedde...
 
Test Automation
Test AutomationTest Automation
Test Automation
 
Test Automation - Everything You Need To Know
Test Automation - Everything You Need To KnowTest Automation - Everything You Need To Know
Test Automation - Everything You Need To Know
 
Documented Requirements are not Useless After All!
Documented Requirements are not Useless After All!Documented Requirements are not Useless After All!
Documented Requirements are not Useless After All!
 
Bruno Legeard - Model-Based Testing of a Financial Application
Bruno Legeard -  Model-Based Testing of a Financial ApplicationBruno Legeard -  Model-Based Testing of a Financial Application
Bruno Legeard - Model-Based Testing of a Financial Application
 
Software testing lab 7 & 8
Software testing lab 7 & 8Software testing lab 7 & 8
Software testing lab 7 & 8
 
Need for automation testing
Need for automation testingNeed for automation testing
Need for automation testing
 
QTest
QTest QTest
QTest
 
AI in SE: A 25-year Journey
AI in SE: A 25-year JourneyAI in SE: A 25-year Journey
AI in SE: A 25-year Journey
 
Need for Speed: How to Performance Test the right way by Annie Bhaumik
Need for Speed: How to Performance Test the right way by Annie BhaumikNeed for Speed: How to Performance Test the right way by Annie Bhaumik
Need for Speed: How to Performance Test the right way by Annie Bhaumik
 
How To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationHow To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test Automation
 
Automation testing introduction for FujiNet
Automation testing introduction for FujiNetAutomation testing introduction for FujiNet
Automation testing introduction for FujiNet
 
Automation testing
Automation testingAutomation testing
Automation testing
 
" Performance testing for Automation QA - why and how " by Andrey Kovalenko f...
" Performance testing for Automation QA - why and how " by Andrey Kovalenko f..." Performance testing for Automation QA - why and how " by Andrey Kovalenko f...
" Performance testing for Automation QA - why and how " by Andrey Kovalenko f...
 
Automated Change Impact Analysis between SysML Models of Requirements and Design
Automated Change Impact Analysis between SysML Models of Requirements and DesignAutomated Change Impact Analysis between SysML Models of Requirements and Design
Automated Change Impact Analysis between SysML Models of Requirements and Design
 
Elements of a Test Framework
Elements of a Test FrameworkElements of a Test Framework
Elements of a Test Framework
 

Ähnlich wie Predictive Analytics based Regression Test Optimization

Day 1 1620 - 1705 - maple - pranabendu bhattacharyya
Day 1   1620 - 1705 - maple - pranabendu bhattacharyyaDay 1   1620 - 1705 - maple - pranabendu bhattacharyya
Day 1 1620 - 1705 - maple - pranabendu bhattacharyya
PMI2011
 
Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02
Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02
Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02
PMI_IREP_TP
 
Advanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.com
Advanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.comAdvanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.com
Advanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.com
DevOpsDays Tel Aviv
 
Testing documents
Testing documentsTesting documents
Testing documents
suhasreddy1
 
Testing documents
Testing documentsTesting documents
Testing documents
Hari Tiru
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test cases
Confiz
 
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Codecamp Romania
 

Ähnlich wie Predictive Analytics based Regression Test Optimization (20)

Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Gcs day1
Gcs day1Gcs day1
Gcs day1
 
Day 1 1620 - 1705 - maple - pranabendu bhattacharyya
Day 1   1620 - 1705 - maple - pranabendu bhattacharyyaDay 1   1620 - 1705 - maple - pranabendu bhattacharyya
Day 1 1620 - 1705 - maple - pranabendu bhattacharyya
 
Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02
Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02
Day1 1620-1705-maple-pranabendubhattacharyya-131008043643-phpapp02
 
Advanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.com
Advanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.comAdvanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.com
Advanced A/B Testing at Wix - Aviran Mordo and Sagy Rozman, Wix.com
 
Testing documents
Testing documentsTesting documents
Testing documents
 
Testing documents
Testing documentsTesting documents
Testing documents
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test cases
 
L software testing
L   software testingL   software testing
L software testing
 
Software Testing interview - Q&A and tips
Software Testing interview - Q&A and tipsSoftware Testing interview - Q&A and tips
Software Testing interview - Q&A and tips
 
Model-Based Testing: Concepts, Tools, and Techniques
Model-Based Testing: Concepts, Tools, and TechniquesModel-Based Testing: Concepts, Tools, and Techniques
Model-Based Testing: Concepts, Tools, and Techniques
 
Quantifying DevOps Adoption Empirically for Demonstrable ROI
Quantifying DevOps Adoption Empirically for Demonstrable ROIQuantifying DevOps Adoption Empirically for Demonstrable ROI
Quantifying DevOps Adoption Empirically for Demonstrable ROI
 
How Manual Testers Can Break into Automation Without Programming Skills
How Manual Testers Can Break into Automation Without Programming SkillsHow Manual Testers Can Break into Automation Without Programming Skills
How Manual Testers Can Break into Automation Without Programming Skills
 
Agile2015 short paper presentation: Development of Complex Software with Agil...
Agile2015 short paper presentation: Development of Complex Software with Agil...Agile2015 short paper presentation: Development of Complex Software with Agil...
Agile2015 short paper presentation: Development of Complex Software with Agil...
 
The Core of Testing – Dynamic Testing Process – According to ISO 29119 with...
The Core of Testing  – Dynamic Testing Process –  According to ISO 29119 with...The Core of Testing  – Dynamic Testing Process –  According to ISO 29119 with...
The Core of Testing – Dynamic Testing Process – According to ISO 29119 with...
 
System Development Life Cycle Overview.ppt
System Development Life Cycle Overview.pptSystem Development Life Cycle Overview.ppt
System Development Life Cycle Overview.ppt
 
Continuous Delivery
Continuous DeliveryContinuous Delivery
Continuous Delivery
 
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
Iasi code camp 20 april 2013 marian chicu - database unit tests in the sql se...
 
Software Processes
Software Processes Software Processes
Software Processes
 
Quality Jam 2017: Jesse Reed & Kyle McMeekin "Test Case Management & Explorat...
Quality Jam 2017: Jesse Reed & Kyle McMeekin "Test Case Management & Explorat...Quality Jam 2017: Jesse Reed & Kyle McMeekin "Test Case Management & Explorat...
Quality Jam 2017: Jesse Reed & Kyle McMeekin "Test Case Management & Explorat...
 

Mehr von STePINForum

Mehr von STePINForum (10)

Am I a Social Monster?
Am I a Social Monster?Am I a Social Monster?
Am I a Social Monster?
 
Code to Release using Artificial Intelligence and Machine Learning
Code to Release using Artificial Intelligence and Machine LearningCode to Release using Artificial Intelligence and Machine Learning
Code to Release using Artificial Intelligence and Machine Learning
 
Blockchain and AI - Match made in Heaven
Blockchain and AI - Match made in HeavenBlockchain and AI - Match made in Heaven
Blockchain and AI - Match made in Heaven
 
Self Healing - Bringing Intelligence into Automation
Self Healing - Bringing Intelligence into AutomationSelf Healing - Bringing Intelligence into Automation
Self Healing - Bringing Intelligence into Automation
 
Quality engineering in a world with AI and IoT
Quality engineering in a world with AI and IoTQuality engineering in a world with AI and IoT
Quality engineering in a world with AI and IoT
 
How accurate are the Wearable fitness tracker showing 10000 steps in a day: A...
How accurate are the Wearable fitness tracker showing 10000 steps in a day: A...How accurate are the Wearable fitness tracker showing 10000 steps in a day: A...
How accurate are the Wearable fitness tracker showing 10000 steps in a day: A...
 
Continuous Testing: Preparing for DevOps
Continuous Testing: Preparing for DevOpsContinuous Testing: Preparing for DevOps
Continuous Testing: Preparing for DevOps
 
Blockchain and AI: Powering the future
Blockchain and AI: Powering the futureBlockchain and AI: Powering the future
Blockchain and AI: Powering the future
 
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
Docker–Grid (A On demand and Scalable dockerized selenium grid architecture)
 
Jugaadu Automation - The Real Desi Test Automation Story
Jugaadu Automation - The Real Desi Test Automation StoryJugaadu Automation - The Real Desi Test Automation Story
Jugaadu Automation - The Real Desi Test Automation Story
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
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, ...
 

Predictive Analytics based Regression Test Optimization

  • 1. Raja Balusamy, Group Manager Shivakumar Balur, Senior Chief Engineer Samsung R&D Institute India - Bangalore Predictive Analytics based Regression Test Optimization 1
  • 2. • Why Predictions Important • Predictions in different industry • Confidence Level and Data Sampling • Preprocessing • ML • Our Model • Sample Study 2 Contents
  • 3. Increase costs in SW Testing Market Release Delays Experien ce Operatio nal risks Customer Satisfacti on on Quality Helps to predict the test suite Helps to improve the test estimation Helps to predict the Man days reduction Problem Benefits Predictive Modeling Benefits.. 3
  • 4. Predictive Modeling Is..  Predictive modeling uses statistics to predict outcomes.  The goal is to go beyond knowing what has happened to providing a best assessment of what will happen in the future. Reports / Records Predict Results Review Predictions Past Current Future Action 4
  • 6. Confidence Level and Sample Size Confidence Level is more when analyze with more samples.
  • 10. Machine Learning Algorithms to Predict • Fast Training Time • Mostly Used Logistic Regression • More Accurate • Training Time is slow Artificial Neural Network • Fast Training Time • Pre-requisite of high memory footprint Decision Tree • Quicker than other alternatives • Highly feature dependent Naïve Bayes Classifier • Highly Accurate • Pre-requisite of 100+ independent variables Support Vector Machine • High Cost of computation • Applicability in diverse training set data K-Nearest Neighbors Selected for our model as Mostly used and Fast Training Time 10
  • 11. Defects History Change List Module Mapping Code Changes ∑Weight based on priority or AI) Algorithms: Logistic Regression Optimized TCs Suite Our Prediction Model || Optimized Test Suite Input Training Model Output Release Info # New Features Test cases w1 w2 w3 w4 w5 w6 w7 x1 x2 x3 x4 x5 x6 x7 Raw Data Remove Errors Input for Training Model Data Set: 11
  • 12. Input || X1: Defects Analysis • Code Changed Defects / Documents Considered • Defects Severity (High / Medium / Low) • Occur. Freq. • Defects Classification (Display, Fatal, Function, Performance, Text, Usability) • Resolved Option (Code Changes, UI/UX) Summation ∑ = Weighted Average Note: The defect which accepted from Development Team are considered. Invalid defects are not considered including 3rd party.12
  • 13. Input || X2: Change List Information Considered • [Title] Feature Change / Defects Fix / Etc.. • [Checking Method] Steps to check • [Type & Feature Name] Feature Change • [Cause & Measure] Exception not handled • [Developer] Name • [Modules Affected] Module A and Module B Note: Change list data taken from Configuration Management Tool which submitted by Development Team Narrow ‘s Down the TCs Group Set selection Weightage evaluation Key Words been used to identify Module Fix info 13
  • 14. Input || X3: Module Mapping Possible Scenarios: • No Interaction • Average Interaction • Less Interaction • More Interaction No interaction Consider Only A1 Average interaction Consider A2 + C2 + C3 Less interaction Consider A4 + C4 More interaction Consider A3 + C1 + C2 + C4 Note: Module Mapping done by an Experts or Class Diagram or by Code Coverage to find out the interaction between modules. Modules/ C Sub Modules C1 C2 C3 C4 A A1 X X X X A2 X Y Y X A3 Y Y X Y A4 X X X Y C2 & C4 are duplicate as these are considered along with A2 & A4 14
  • 15. Lines of Code • Added • Deleted • Modified • Release version • Type of Releases (Sanity / Full / Patch) Release Information Input || X4: Code Changes Input || X5: Release Info Note: SLOC Tool used for calculating KLOC Changes Note: Release information and type taken from Internal Tools 15
  • 16. TestcasesNo.of New Features Implemented • Impact of new features • Module Name • Sub Module Name • Priority • Title • Steps to Execute • Failed Test cases Input || X6: New Features Input || X7: Test Cases Note: PM and Development Team shared the new features Note: Test case data prepared by Test Team. 16
  • 17. Release Cycle Regression Test Cycle (4200 Test cases) Manual Prediction Model A1 6300 2654 A2 6300 2250 A3 6300 1973 A4 6300 1275 A5 6300 960 Input Predicted Test Suite • Other than source code changes defects not predicted using above model (Ex; Document Related Defects (Requirements Documentation, UI) and 3rd Party defects. Ex: Text cut, document mismatch, dependent on 3rd party.. Non Predicted Defects Category • 3536 Defects • 2932 Change List • 43 Modules • 1245 KLOC Changes • 32 Releases • 5 New Features • 6300 Test cases Release Cycle Defects Identified Prediction Model Non - Prediction % Accuracy A1 415 353 54% A2 365 215 63% A3 300 130 70% A4 199 30 87% A5 144 20 89% 17 Sample Study
  • 19. Limitations..  History cannot always predict 100% future accurate.  The issue of unknown unknowns.  Self-defeat of an algorithm. 19  Defects Resolution comments from Developer  Module Mapping  New Features TC Optimization (LOC, etc.).. Challenges..
  • 23. Error Metrics (To Predict More Accurate) True condition Type #Identification of TCs Condition positive Condition negative Predicted condition Predicted condition positive True positive, Power False positive, Type I error Predicted condition negative False negative, Type II error True negative X1 Xn W1 Wn ∑input OutputAF Activation Function Yes Error? No Re-train 23