SlideShare a Scribd company logo
Understand Regression Testing
Testing Tiger Team (T Cube)
Liang Gao
Agenda
• Regression testing and Regression bugs.
• Regression’s When, What and How
• Importance of the automated regression
testing
• Managing regression testing
What is a regression testing
uncover regression bugs.
Regression Bug?
很多功能以前好好的,加
入新功能以后就不
Work 了!
Why ??
• No software design is 100% modulized.
• IP Network is layered (ISO 7 layers), break one
layer, rest of the layers won’t work
• The introduction of new code breaks the
existing code
• For Example:
– IPSec use Path MTU discovery
– ICMP can probe the MTU value
– IPSec use ICMP to change the MTU valule.
– If ICMP new code breaks the MTU function, part of
the IPSec won’t work
Regression bug is bad, very bad
• For a new product release, customer is ok that if the newly added
function has bugs, since the common understanding is new code is buggy.
And not all customer will use the newly added function anyway.
• But customer is not OK that the previously worked function is broken in
the new release, because that make things worse.
Don’t Piss Off the
Customer…..
How to Catch the Regression Bug
Use your analytical skills,
how to catch the
regression bug?
3 Reasons A Regression Test Case Fail
• It is because of the testbed.
– Testbed instabilities.
– Cable connections. Switch issues. Bad hardware
– Improper testbed configurations.
• It is because of the script issues
– Version update of output changes.
– Bad quality scripts.
• It is a software problem
– Then it could be a regression bug.
Understand Clean Run
• “Clean Run” means after running all your
regression test cases against a release, all
failed test cases has been analyzed on the
reason of failure.
• Test cases result is either “PASS” or “FAIL”
with a defects ID or Issue ID (script or test
bed problem).
Understand “Baseline”
• Before running every regression against certain
release, always ask: What is the baseline of
this release?
• The baseline release is a “Clean Run” release
with each test bases be either “PASS” or “FAIL”
with a defects ID. All failed test cases have
been debugged and found the root cause.
• The current result will always be compared
with the baseline result for delta (differences)
• The best baseline is to have high percentage of
the PASS cases.
Compare with Baseline
• The current release regression result has
the same result as baseline
– Baseline PASS, current release PASS
– Baseline FAIL, current release FAIL
• Different than baseline
– Baseline PASS, current release FAIL
– Baseline FAIL, current release PASS
Benefit of the Baseline
• Identify regression bug quickly.
• Shorten your debugging time.
– Most of the case, if baseline also failed, it
should fail on the same reason.
– when you run 10K+ test cases and have 5%
failure rate, baseline result speed up your
debugging time greatly.
• Better test result management
– Have a traceable result history
When to Start the Regression testing
• Before or after the new feature testing?
• Before or after the system testing?
• Before or after the solution testing?
• Before or after the release?
• How many times you think a regression
testing should be run?
Regression is headache
• You have no choice but to do it. (don’t piss off the customer)
• You have to do it whenever to release a new version
• You may have to do it for every build
• As more features added, regression test cases keep growing and growing
and growing….
• What if your company release a new build every week, or every other
day? (Cisco does)  Regression nightmare.
• Your engineers are bored of doing the same old thing again and again.
Bored  low quality of execution can not find bugs  piss off the
customer with regression bugs
Me and the Machine
• I am flexible and can execute beyond the test case
scope (explore and play a little to find more problems)
• I need to do different things, need to explore and to be
challenged.
• I need to sleep, rest, and play 斗地主,麻将 and go
to 青城山后山的 家农 乐 during the weekend.
• Machine will do exactly what I programmed him to do
• Machine can do it over and over without complaining
with exactly the same quality
• Machine can work overnight, over weekend and over
holidays.
Auto Regression is the Solution
• As regression test cases exploding, it can not
possibly be run by human (Cisco IOS regression
has 100,000 plus test cases, and need to be
finished in 2 days)
• It same time with quality (48 hours, for me,
means 6 days, for machine, means 2 days)
• It speeds up the release cycle: the faster the cycle
of a full regression, the more build can be
released (Cisco can release a build every 2 days,
Juniper can release a build every 4 days. Keep in
mind IOS has more than 6 million lines of code)
In Order to Run Auto Regression…..
• I need someone to write scripts, convert manual test cases in to scripts.
• I need an engine to execute thousands of scripts in batch mode, collect
pass and fail info.
• I need to have libraries. So when I write scripts, I can use APIs to speed up
my development.
• I need a database to store each regression cycles test report (running
results)
• I need a way to debug when scripts are failed (is it script problem? Test
bed problem? Or indeed the image problem)
• It would be nice if I can have a frame work that I can do all this.
Managing Regression Testing
• Schedule the run based on product release
schedule.
• Select suites
– If I can not cover them all, which set of features I need to pick
– How long can I finish it
– How much debugging time I need for failures.
• How many engineers I need to run (1 engineer
per 2 test beds?
• Regression engineers time
– Kick off the run
– Debugging (most of the time)
Find the Way to Reduce the Regression Cycle
• Look at the whole cycle of the regression testing, which part use most of the time
– Test bed management?
– Debugging and defect filing?
– Reporting?
• Lots of things can be automated (process automation) during a regression cycle)
• In Cisco, during a perfect run, a regression engineer don’t need to do anything
– Automatic copy new image after build team finish it
– Automatic load the image to router
– Automatic select the features need to be run based on the image name
(different image has different feature set)
– Automatic run
– Automatic reporting
Regression Bug Management
• Be careful whenever filing regression bugs,
need to be 100% Sure.
• How to be sure if it is a regression bug? Use
your analytical skills.
Make Regression As A Train
• Pull the regression cycle out of the release
cycle.
• Make regression cycle fixed (predictable).
• Make it an on-going, 24/7 operation.
• Benefit
– Any release can schedule a time to be on the
regression train, good to arrange regression
schedule.
– More regression, more stable of the product.
Regression Test Bed Management
• Standard topology test bed.
• Running in parallel (multiple identical
regression test beds)
• Fixed run time on each test bed on each
regression cycle
Don’t let regression team buy test bed
• Regression repository will keep expanding.
• More testbeds will be needed.
• Unlimited budget for regression team to buy
testbed? Probably not.
manage run time by minutes.
• Based on your release cycle, carefully control
total run time on a testbed.
• Each test bed has a maximum run time, if
exceed, consider build more testbeds (with in
budget)
Automat Regression - Engine
• If you have 1000 scripts
– How to run it in batch mode
– How to know which one is fail, which one is pass at any given time
– How to debug when a test case failed (pause on failure)
– How to move job across test bed
– Where to report the test results
– Where to keep the historical running logs
– How to run only certain modules
– How to select cases based on different release version
– How to run scripts even device is crashed
Automat Regression – Test Harness
• Need a place to store all test results
• Need to have version/release info
• Need to be able to compare from release to
release
Version control
• 1st draft, Feb, 2008, Liang Gao
Understand regression testing
Ad

More Related Content

What's hot (20)

Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
Oana Feidi
 
Principles of Software testing
Principles of Software testingPrinciples of Software testing
Principles of Software testing
Md Mamunur Rashid
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
Prachi Sasankar
 
Test Levels & Techniques
Test Levels & TechniquesTest Levels & Techniques
Test Levels & Techniques
Dhanasekaran Nagarajan
 
Software Verification & Validation
Software Verification & ValidationSoftware Verification & Validation
Software Verification & Validation
university of education,Lahore
 
INTEGRATION TESTING
INTEGRATION TESTINGINTEGRATION TESTING
INTEGRATION TESTING
RohitK71
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
Edureka!
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Levels Of Testing.pptx
Levels Of Testing.pptxLevels Of Testing.pptx
Levels Of Testing.pptx
SunilNagaraj10
 
Software Testing
Software TestingSoftware Testing
Software Testing
Ecaterina Moraru (Valica)
 
What is Regression Testing? | Edureka
What is Regression Testing? | EdurekaWhat is Regression Testing? | Edureka
What is Regression Testing? | Edureka
Edureka!
 
testing strategies and tactics
 testing strategies and tactics testing strategies and tactics
testing strategies and tactics
Preeti Mishra
 
Software Testing
Software TestingSoftware Testing
Software Testing
Mousmi Pawar
 
Types of testing
Types of testingTypes of testing
Types of testing
Sonam Agarwal
 
Manual testing
Manual testingManual testing
Manual testing
vigneshasromio
 
Software metrics
Software metricsSoftware metrics
Software metrics
syeda madeha azmat
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
Archana Krushnan
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
Komal Garg
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
NayyabMirTahir
 
Test cases
Test casesTest cases
Test cases
Chandra Maddigapu
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
Oana Feidi
 
Principles of Software testing
Principles of Software testingPrinciples of Software testing
Principles of Software testing
Md Mamunur Rashid
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
Prachi Sasankar
 
INTEGRATION TESTING
INTEGRATION TESTINGINTEGRATION TESTING
INTEGRATION TESTING
RohitK71
 
What is Integration Testing? | Edureka
What is Integration Testing? | EdurekaWhat is Integration Testing? | Edureka
What is Integration Testing? | Edureka
Edureka!
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Levels Of Testing.pptx
Levels Of Testing.pptxLevels Of Testing.pptx
Levels Of Testing.pptx
SunilNagaraj10
 
What is Regression Testing? | Edureka
What is Regression Testing? | EdurekaWhat is Regression Testing? | Edureka
What is Regression Testing? | Edureka
Edureka!
 
testing strategies and tactics
 testing strategies and tactics testing strategies and tactics
testing strategies and tactics
Preeti Mishra
 
Introduction to Automation Testing
Introduction to Automation TestingIntroduction to Automation Testing
Introduction to Automation Testing
Archana Krushnan
 
Software testing.ppt
Software testing.pptSoftware testing.ppt
Software testing.ppt
Komal Garg
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
NayyabMirTahir
 

Similar to Understand regression testing (20)

A lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous deliveryA lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous delivery
Sauce Labs
 
Performance tuning Grails applications
Performance tuning Grails applicationsPerformance tuning Grails applications
Performance tuning Grails applications
Lari Hotari
 
Road to Continuous Delivery - Wix.com
Road to Continuous Delivery - Wix.comRoad to Continuous Delivery - Wix.com
Road to Continuous Delivery - Wix.com
Aviran Mordo
 
Performance tuning Grails applications
 Performance tuning Grails applications Performance tuning Grails applications
Performance tuning Grails applications
GR8Conf
 
Tdd
TddTdd
Tdd
Dmitry Savin
 
Automate Everything! (No stress development/Tallinn)
Automate Everything! (No stress development/Tallinn)Automate Everything! (No stress development/Tallinn)
Automate Everything! (No stress development/Tallinn)
Arto Santala
 
Test Automation
Test AutomationTest Automation
Test Automation
99pillar
 
An Introduction To Software Development - Final Review
An Introduction To Software Development - Final ReviewAn Introduction To Software Development - Final Review
An Introduction To Software Development - Final Review
Blue Elephant Consulting
 
Scrum and-xp-from-the-trenches 06 testing
Scrum and-xp-from-the-trenches 06 testingScrum and-xp-from-the-trenches 06 testing
Scrum and-xp-from-the-trenches 06 testing
Hossam Hassan
 
Customized Scrum
Customized ScrumCustomized Scrum
Customized Scrum
Abdul Karim
 
What Do We Automate First
What Do We Automate FirstWhat Do We Automate First
What Do We Automate First
rrice2000
 
Why Software Test Performance Matters
Why Software Test Performance MattersWhy Software Test Performance Matters
Why Software Test Performance Matters
Solano Labs
 
London Atlassian User Group - February 2014
London Atlassian User Group - February 2014London Atlassian User Group - February 2014
London Atlassian User Group - February 2014
Steve Smith
 
Team wide testing
Team wide testingTeam wide testing
Team wide testing
Ethan Huang
 
5 Steps on the Way to Continuous Delivery
5 Steps on the Way to Continuous Delivery5 Steps on the Way to Continuous Delivery
5 Steps on the Way to Continuous Delivery
XebiaLabs
 
Agile Acceptance testing with Fitnesse
Agile Acceptance testing with FitnesseAgile Acceptance testing with Fitnesse
Agile Acceptance testing with Fitnesse
ClareMcLennan
 
Great! another bug
Great! another bugGreat! another bug
Great! another bug
AgileCoach.net
 
Alm with tfs 2013
Alm with tfs 2013Alm with tfs 2013
Alm with tfs 2013
MSDEVMTL
 
AgileTesting_Ver1.0
AgileTesting_Ver1.0AgileTesting_Ver1.0
AgileTesting_Ver1.0
Subramanya Mudukutore
 
What a DevOps specialist has to know about static code analysis
What a DevOps specialist has to know about static code analysisWhat a DevOps specialist has to know about static code analysis
What a DevOps specialist has to know about static code analysis
Andrey Karpov
 
A lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous deliveryA lean automation blueprint for testing in continuous delivery
A lean automation blueprint for testing in continuous delivery
Sauce Labs
 
Performance tuning Grails applications
Performance tuning Grails applicationsPerformance tuning Grails applications
Performance tuning Grails applications
Lari Hotari
 
Road to Continuous Delivery - Wix.com
Road to Continuous Delivery - Wix.comRoad to Continuous Delivery - Wix.com
Road to Continuous Delivery - Wix.com
Aviran Mordo
 
Performance tuning Grails applications
 Performance tuning Grails applications Performance tuning Grails applications
Performance tuning Grails applications
GR8Conf
 
Automate Everything! (No stress development/Tallinn)
Automate Everything! (No stress development/Tallinn)Automate Everything! (No stress development/Tallinn)
Automate Everything! (No stress development/Tallinn)
Arto Santala
 
Test Automation
Test AutomationTest Automation
Test Automation
99pillar
 
An Introduction To Software Development - Final Review
An Introduction To Software Development - Final ReviewAn Introduction To Software Development - Final Review
An Introduction To Software Development - Final Review
Blue Elephant Consulting
 
Scrum and-xp-from-the-trenches 06 testing
Scrum and-xp-from-the-trenches 06 testingScrum and-xp-from-the-trenches 06 testing
Scrum and-xp-from-the-trenches 06 testing
Hossam Hassan
 
Customized Scrum
Customized ScrumCustomized Scrum
Customized Scrum
Abdul Karim
 
What Do We Automate First
What Do We Automate FirstWhat Do We Automate First
What Do We Automate First
rrice2000
 
Why Software Test Performance Matters
Why Software Test Performance MattersWhy Software Test Performance Matters
Why Software Test Performance Matters
Solano Labs
 
London Atlassian User Group - February 2014
London Atlassian User Group - February 2014London Atlassian User Group - February 2014
London Atlassian User Group - February 2014
Steve Smith
 
Team wide testing
Team wide testingTeam wide testing
Team wide testing
Ethan Huang
 
5 Steps on the Way to Continuous Delivery
5 Steps on the Way to Continuous Delivery5 Steps on the Way to Continuous Delivery
5 Steps on the Way to Continuous Delivery
XebiaLabs
 
Agile Acceptance testing with Fitnesse
Agile Acceptance testing with FitnesseAgile Acceptance testing with Fitnesse
Agile Acceptance testing with Fitnesse
ClareMcLennan
 
Alm with tfs 2013
Alm with tfs 2013Alm with tfs 2013
Alm with tfs 2013
MSDEVMTL
 
What a DevOps specialist has to know about static code analysis
What a DevOps specialist has to know about static code analysisWhat a DevOps specialist has to know about static code analysis
What a DevOps specialist has to know about static code analysis
Andrey Karpov
 
Ad

More from gaoliang641 (20)

Why we didn't catch that
Why we didn't catch thatWhy we didn't catch that
Why we didn't catch that
gaoliang641
 
Why we didn't catch that application bugs
Why we didn't catch that   application bugsWhy we didn't catch that   application bugs
Why we didn't catch that application bugs
gaoliang641
 
Understand release engineering
Understand release engineeringUnderstand release engineering
Understand release engineering
gaoliang641
 
The art of system and solution testing
The art of system and solution testingThe art of system and solution testing
The art of system and solution testing
gaoliang641
 
Tester performance evaluation
Tester performance evaluationTester performance evaluation
Tester performance evaluation
gaoliang641
 
Tester developer interaction
Tester developer interactionTester developer interaction
Tester developer interaction
gaoliang641
 
Tester career path
Tester career pathTester career path
Tester career path
gaoliang641
 
Agile testing for large projects
Agile testing for large projectsAgile testing for large projects
Agile testing for large projects
gaoliang641
 
Project management for qa manager
Project management for qa managerProject management for qa manager
Project management for qa manager
gaoliang641
 
Make good use of explortary testing
Make good use of explortary testingMake good use of explortary testing
Make good use of explortary testing
gaoliang641
 
Bug best practice
Bug best practiceBug best practice
Bug best practice
gaoliang641
 
Lessons learned on localization testing
Lessons learned on localization testingLessons learned on localization testing
Lessons learned on localization testing
gaoliang641
 
Lessons learned on software testing automation
Lessons learned on software testing automationLessons learned on software testing automation
Lessons learned on software testing automation
gaoliang641
 
How to become a testing expert
How to become a testing expertHow to become a testing expert
How to become a testing expert
gaoliang641
 
Functionality testing techniqu
Functionality testing techniquFunctionality testing techniqu
Functionality testing techniqu
gaoliang641
 
Protocol Security Testing best practice
Protocol Security Testing best practiceProtocol Security Testing best practice
Protocol Security Testing best practice
gaoliang641
 
Backward thinking design qa system for quality goals
Backward thinking   design qa system for quality goalsBackward thinking   design qa system for quality goals
Backward thinking design qa system for quality goals
gaoliang641
 
Automation framework design and implementation
Automation framework design and implementationAutomation framework design and implementation
Automation framework design and implementation
gaoliang641
 
Automation from start to finish
Automation   from start to finishAutomation   from start to finish
Automation from start to finish
gaoliang641
 
Agile testing for large projects
Agile testing for large projectsAgile testing for large projects
Agile testing for large projects
gaoliang641
 
Why we didn't catch that
Why we didn't catch thatWhy we didn't catch that
Why we didn't catch that
gaoliang641
 
Why we didn't catch that application bugs
Why we didn't catch that   application bugsWhy we didn't catch that   application bugs
Why we didn't catch that application bugs
gaoliang641
 
Understand release engineering
Understand release engineeringUnderstand release engineering
Understand release engineering
gaoliang641
 
The art of system and solution testing
The art of system and solution testingThe art of system and solution testing
The art of system and solution testing
gaoliang641
 
Tester performance evaluation
Tester performance evaluationTester performance evaluation
Tester performance evaluation
gaoliang641
 
Tester developer interaction
Tester developer interactionTester developer interaction
Tester developer interaction
gaoliang641
 
Tester career path
Tester career pathTester career path
Tester career path
gaoliang641
 
Agile testing for large projects
Agile testing for large projectsAgile testing for large projects
Agile testing for large projects
gaoliang641
 
Project management for qa manager
Project management for qa managerProject management for qa manager
Project management for qa manager
gaoliang641
 
Make good use of explortary testing
Make good use of explortary testingMake good use of explortary testing
Make good use of explortary testing
gaoliang641
 
Bug best practice
Bug best practiceBug best practice
Bug best practice
gaoliang641
 
Lessons learned on localization testing
Lessons learned on localization testingLessons learned on localization testing
Lessons learned on localization testing
gaoliang641
 
Lessons learned on software testing automation
Lessons learned on software testing automationLessons learned on software testing automation
Lessons learned on software testing automation
gaoliang641
 
How to become a testing expert
How to become a testing expertHow to become a testing expert
How to become a testing expert
gaoliang641
 
Functionality testing techniqu
Functionality testing techniquFunctionality testing techniqu
Functionality testing techniqu
gaoliang641
 
Protocol Security Testing best practice
Protocol Security Testing best practiceProtocol Security Testing best practice
Protocol Security Testing best practice
gaoliang641
 
Backward thinking design qa system for quality goals
Backward thinking   design qa system for quality goalsBackward thinking   design qa system for quality goals
Backward thinking design qa system for quality goals
gaoliang641
 
Automation framework design and implementation
Automation framework design and implementationAutomation framework design and implementation
Automation framework design and implementation
gaoliang641
 
Automation from start to finish
Automation   from start to finishAutomation   from start to finish
Automation from start to finish
gaoliang641
 
Agile testing for large projects
Agile testing for large projectsAgile testing for large projects
Agile testing for large projects
gaoliang641
 
Ad

Recently uploaded (20)

machines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdfmachines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdf
AmirStern2
 
Dark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanizationDark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanization
Jakub Šimek
 
Config 2025 presentation recap covering both days
Config 2025 presentation recap covering both daysConfig 2025 presentation recap covering both days
Config 2025 presentation recap covering both days
TrishAntoni1
 
IT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information TechnologyIT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information Technology
SHEHABALYAMANI
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Build With AI - In Person Session Slides.pdf
Build With AI - In Person Session Slides.pdfBuild With AI - In Person Session Slides.pdf
Build With AI - In Person Session Slides.pdf
Google Developer Group - Harare
 
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Wonjun Hwang
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier VroomAI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
UXPA Boston
 
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Cyntexa
 
Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?
Eric Torreborre
 
Artificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptxArtificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptx
03ANMOLCHAURASIYA
 
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdfKit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Wonjun Hwang
 
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
Ivano Malavolta
 
How to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabberHow to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabber
eGrabber
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Building the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdfBuilding the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdf
Cheryl Hung
 
machines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdfmachines-for-woodworking-shops-en-compressed.pdf
machines-for-woodworking-shops-en-compressed.pdf
AmirStern2
 
Dark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanizationDark Dynamism: drones, dark factories and deurbanization
Dark Dynamism: drones, dark factories and deurbanization
Jakub Šimek
 
Config 2025 presentation recap covering both days
Config 2025 presentation recap covering both daysConfig 2025 presentation recap covering both days
Config 2025 presentation recap covering both days
TrishAntoni1
 
IT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information TechnologyIT484 Cyber Forensics_Information Technology
IT484 Cyber Forensics_Information Technology
SHEHABALYAMANI
 
Unlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web AppsUnlocking Generative AI in your Web Apps
Unlocking Generative AI in your Web Apps
Maximiliano Firtman
 
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Kit-Works Team Study_아직도 Dockefile.pdf_김성호
Wonjun Hwang
 
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Integrating FME with Python: Tips, Demos, and Best Practices for Powerful Aut...
Safe Software
 
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à GenèveUiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPath Automation Suite – Cas d'usage d'une NGO internationale basée à Genève
UiPathCommunity
 
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier VroomAI x Accessibility UXPA by Stew Smith and Olivier Vroom
AI x Accessibility UXPA by Stew Smith and Olivier Vroom
UXPA Boston
 
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Everything You Need to Know About Agentforce? (Put AI Agents to Work)
Cyntexa
 
Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?Shoehorning dependency injection into a FP language, what does it take?
Shoehorning dependency injection into a FP language, what does it take?
Eric Torreborre
 
Artificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptxArtificial_Intelligence_in_Everyday_Life.pptx
Artificial_Intelligence_in_Everyday_Life.pptx
03ANMOLCHAURASIYA
 
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdfKit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Kit-Works Team Study_팀스터디_김한솔_nuqs_20250509.pdf
Wonjun Hwang
 
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
On-Device or Remote? On the Energy Efficiency of Fetching LLM-Generated Conte...
Ivano Malavolta
 
How to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabberHow to Install & Activate ListGrabber - eGrabber
How to Install & Activate ListGrabber - eGrabber
eGrabber
 
Mastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B LandscapeMastering Testing in the Modern F&B Landscape
Mastering Testing in the Modern F&B Landscape
marketing943205
 
AI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamsonAI-proof your career by Olivier Vroom and David WIlliamson
AI-proof your career by Olivier Vroom and David WIlliamson
UXPA Boston
 
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Limecraft Webinar - 2025.3 release, featuring Content Delivery, Graphic Conte...
Maarten Verwaest
 
Building the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdfBuilding the Customer Identity Community, Together.pdf
Building the Customer Identity Community, Together.pdf
Cheryl Hung
 

Understand regression testing

  • 1. Understand Regression Testing Testing Tiger Team (T Cube) Liang Gao
  • 2. Agenda • Regression testing and Regression bugs. • Regression’s When, What and How • Importance of the automated regression testing • Managing regression testing
  • 3. What is a regression testing uncover regression bugs.
  • 5. Why ?? • No software design is 100% modulized. • IP Network is layered (ISO 7 layers), break one layer, rest of the layers won’t work • The introduction of new code breaks the existing code • For Example: – IPSec use Path MTU discovery – ICMP can probe the MTU value – IPSec use ICMP to change the MTU valule. – If ICMP new code breaks the MTU function, part of the IPSec won’t work
  • 6. Regression bug is bad, very bad • For a new product release, customer is ok that if the newly added function has bugs, since the common understanding is new code is buggy. And not all customer will use the newly added function anyway. • But customer is not OK that the previously worked function is broken in the new release, because that make things worse. Don’t Piss Off the Customer…..
  • 7. How to Catch the Regression Bug Use your analytical skills, how to catch the regression bug?
  • 8. 3 Reasons A Regression Test Case Fail • It is because of the testbed. – Testbed instabilities. – Cable connections. Switch issues. Bad hardware – Improper testbed configurations. • It is because of the script issues – Version update of output changes. – Bad quality scripts. • It is a software problem – Then it could be a regression bug.
  • 9. Understand Clean Run • “Clean Run” means after running all your regression test cases against a release, all failed test cases has been analyzed on the reason of failure. • Test cases result is either “PASS” or “FAIL” with a defects ID or Issue ID (script or test bed problem).
  • 10. Understand “Baseline” • Before running every regression against certain release, always ask: What is the baseline of this release? • The baseline release is a “Clean Run” release with each test bases be either “PASS” or “FAIL” with a defects ID. All failed test cases have been debugged and found the root cause. • The current result will always be compared with the baseline result for delta (differences) • The best baseline is to have high percentage of the PASS cases.
  • 11. Compare with Baseline • The current release regression result has the same result as baseline – Baseline PASS, current release PASS – Baseline FAIL, current release FAIL • Different than baseline – Baseline PASS, current release FAIL – Baseline FAIL, current release PASS
  • 12. Benefit of the Baseline • Identify regression bug quickly. • Shorten your debugging time. – Most of the case, if baseline also failed, it should fail on the same reason. – when you run 10K+ test cases and have 5% failure rate, baseline result speed up your debugging time greatly. • Better test result management – Have a traceable result history
  • 13. When to Start the Regression testing • Before or after the new feature testing? • Before or after the system testing? • Before or after the solution testing? • Before or after the release? • How many times you think a regression testing should be run?
  • 14. Regression is headache • You have no choice but to do it. (don’t piss off the customer) • You have to do it whenever to release a new version • You may have to do it for every build • As more features added, regression test cases keep growing and growing and growing…. • What if your company release a new build every week, or every other day? (Cisco does)  Regression nightmare. • Your engineers are bored of doing the same old thing again and again. Bored  low quality of execution can not find bugs  piss off the customer with regression bugs
  • 15. Me and the Machine • I am flexible and can execute beyond the test case scope (explore and play a little to find more problems) • I need to do different things, need to explore and to be challenged. • I need to sleep, rest, and play 斗地主,麻将 and go to 青城山后山的 家农 乐 during the weekend. • Machine will do exactly what I programmed him to do • Machine can do it over and over without complaining with exactly the same quality • Machine can work overnight, over weekend and over holidays.
  • 16. Auto Regression is the Solution • As regression test cases exploding, it can not possibly be run by human (Cisco IOS regression has 100,000 plus test cases, and need to be finished in 2 days) • It same time with quality (48 hours, for me, means 6 days, for machine, means 2 days) • It speeds up the release cycle: the faster the cycle of a full regression, the more build can be released (Cisco can release a build every 2 days, Juniper can release a build every 4 days. Keep in mind IOS has more than 6 million lines of code)
  • 17. In Order to Run Auto Regression….. • I need someone to write scripts, convert manual test cases in to scripts. • I need an engine to execute thousands of scripts in batch mode, collect pass and fail info. • I need to have libraries. So when I write scripts, I can use APIs to speed up my development. • I need a database to store each regression cycles test report (running results) • I need a way to debug when scripts are failed (is it script problem? Test bed problem? Or indeed the image problem) • It would be nice if I can have a frame work that I can do all this.
  • 18. Managing Regression Testing • Schedule the run based on product release schedule. • Select suites – If I can not cover them all, which set of features I need to pick – How long can I finish it – How much debugging time I need for failures. • How many engineers I need to run (1 engineer per 2 test beds? • Regression engineers time – Kick off the run – Debugging (most of the time)
  • 19. Find the Way to Reduce the Regression Cycle • Look at the whole cycle of the regression testing, which part use most of the time – Test bed management? – Debugging and defect filing? – Reporting? • Lots of things can be automated (process automation) during a regression cycle) • In Cisco, during a perfect run, a regression engineer don’t need to do anything – Automatic copy new image after build team finish it – Automatic load the image to router – Automatic select the features need to be run based on the image name (different image has different feature set) – Automatic run – Automatic reporting
  • 20. Regression Bug Management • Be careful whenever filing regression bugs, need to be 100% Sure. • How to be sure if it is a regression bug? Use your analytical skills.
  • 21. Make Regression As A Train • Pull the regression cycle out of the release cycle. • Make regression cycle fixed (predictable). • Make it an on-going, 24/7 operation. • Benefit – Any release can schedule a time to be on the regression train, good to arrange regression schedule. – More regression, more stable of the product.
  • 22. Regression Test Bed Management • Standard topology test bed. • Running in parallel (multiple identical regression test beds) • Fixed run time on each test bed on each regression cycle
  • 23. Don’t let regression team buy test bed • Regression repository will keep expanding. • More testbeds will be needed. • Unlimited budget for regression team to buy testbed? Probably not.
  • 24. manage run time by minutes. • Based on your release cycle, carefully control total run time on a testbed. • Each test bed has a maximum run time, if exceed, consider build more testbeds (with in budget)
  • 25. Automat Regression - Engine • If you have 1000 scripts – How to run it in batch mode – How to know which one is fail, which one is pass at any given time – How to debug when a test case failed (pause on failure) – How to move job across test bed – Where to report the test results – Where to keep the historical running logs – How to run only certain modules – How to select cases based on different release version – How to run scripts even device is crashed
  • 26. Automat Regression – Test Harness • Need a place to store all test results • Need to have version/release info • Need to be able to compare from release to release
  • 27. Version control • 1st draft, Feb, 2008, Liang Gao
  翻译: