SlideShare a Scribd company logo
1 of 46
Download to read offline
I
ARCHITECTING
A TEST
STRATEGY
Brendan Connolly
@theBConnolly
http://brendanconnolly.net
TEST STRATEGY
Guiding principles that
provide focus, context,
and drive actions
of the team to manage risk
@theBConnolly
Testing isn’t always well
understood
That leads to feelings of fear
When things go wrong scared
people often look to blame.
AM
BIGUITY
UN
CERTAIN
TY
BLAME
WHY STRATEGY
MATTERS
@theBConnolly
People love knowing there
is a plan
Testing means different
things to different people
Move together towards
quality
CLARITY
ALIGN
M
EN
T
QUALITY
WHY STRATEGY
MATTERS
@theBConnolly
ROLE
OF
AUTOMATION
I
@theBConnolly
How much time should
we spend writing,
maintaining, debugging
automation?
How many tests should
we automate?
How long should it take
to run?
What tests should we
automate?
What isn’t a good fit for
automation?
LOOKING FOR ANSWERS
TIME QUANTITY CHOICE
@theBConnolly
TEST
MONUMENTS
What can all these
Test Automation Pyramids tell us?
@theBConnolly
TEST PYRAMID
MATHEMATICS
Treating the Test Pyramid as a
triangle
Use geometry & trigonometry to
find the total area of each level
@theBConnolly
For the Original 3 Layer Test Pyramid
Assuming Each Layer Is Equally Tall
Using Different Dimensions the
Results Are Uniform
@theBConnolly
TEST PYRAMID MATHEMATICS
RESULTS
3 levels UI Service Unit
Great Pyramid 11.1% 33.3% 55.6%
Equilateral 11.1% 33.4% 55.5%
45-45-90 11.17% 33.21% 55.62%
Same Assumptions...
More Levels
@theBConnolly
TEST PYRAMID MATHEMATICS
RESULTS
4 levels UI Component Integration Unit
Great Pyramid 6.3% 18.7% 31.3% 43.7%
Equilateral 6.3% 18.8% 31.3% 43.7%
45-45-90 6.18% 18.79% 31.15% 43.88%
5 levels UI API Component Integration Unit
Great
Pyramid
4% 12% 19.8% 28.2% 36%
We can agree about the Top
We can agree about the Bottom
We undervalue the Delicious
Goodness in the Middle
@theBConnolly
THE GOOEY
CENTER Unit Gooey Center UI
36-55% 33-60% 4-11%
A QUESTION OF
QUANTITY
Per the Test Pyramid for every
100 tests added you would
have:
- 35-55 unit tests,
- 33-60 service tests
- 4-11 UI / E2E tests.
Does that fit with the practices
on your team?
@theBConnolly
@theBConnolly
A QUESTION OF
TIME
Per the Test Pyramid for a 40 hour
work week:
- 18 hours writing & maintaining
unit level tests
- 18 hours writing & maintaining
service level tests
- 4 hours writing & maintaining
UI level tests.
A QUESTION OF
EFFORT
Using Effort for estimation brings
automation in line with the feature
development.
Point Stories Inclusively but use
automation effort a metric for
comparison.
@theBConnolly
THE HANDFUL
HEURISTIC
For a given area of your
product you only need a
handful of end to end tests
There is great power in a
handful of meaningful &
reliable tests
@theBConnolly
CONFIRM &
CHARACTERIZE
Write the Tests that:
- Confirm that the Application is
Releasable
- Characterize Key Behaviors
@theBConnolly
ROLE
OF
THE TEAM
@theBConnolly
ROLE OF THE TEAM
PERSONAS
Your Team is Unique
To uncover the best
automation strategy
Understand your team first
@theBConnolly
The person or group
responsible for writing
test automation
The person or system
responsible for running
the automated test suite
The person or system
that derives value from
the results of test
execution
AUTOMATION
PERSONAS
CREATOR EXECUTOR CONSUMER
@theBConnolly
Writes tests while
developing new
functionality
Runs tests as changes
are made
Test results inform and
guide decisions through
development process
Developer Developer Developer
AUTOMATION PERSONAS
UNIT TESTS CASE #1
EXECUTOR CONSUMERCREATOR
@theBConnolly
Writes tests while
developing new
functionality
When code is checked in
tests are run and results
collected
Team knows their
individual changes are
not unintentionally
affecting others
Developer CI/CD Pipeline Dev Team
AUTOMATION PERSONAS
UNIT TESTS CASE #2
EXECUTORCREATOR CONSUMER
@theBConnolly
Writes tests while
developing new
functionality
When code is checked in
tests are run and results
collected
Tooling consumes or
analyzes to derive
actionable information
Developer CI/CD Pipeline Metrics
AUTOMATION PERSONAS
UNIT TESTS CASE #3
EXECUTORCREATOR CONSUMER
@theBConnolly
Contextual Benefit - Direct & Meaningful Impact
on Day to Day Work
Collective Ownership - Team comes together to support
quality outcomes
Multiple Consumers - Value increased and costs reduced as
tests provide multiple streams of value.
@theBConnolly
UNIT TEST
VALUE CHARACTERISTICS
QA / Tester writes
automated tests
Tests are run on some
cadence. Before release,
nightly build etc.
Who is this for? How Do
they benefit?
QA Schedule ???
AUTOMATION PERSONAS
UI / E2E TESTS
EXECUTORCREATOR CONSUMER
@theBConnolly
QA / Tester writes
automated tests
Tests are run on some
cadence. Before release,
nightly build etc.
QA / Tester reviews the
test results focusing on
tests they own
QA Schedule QA
AUTOMATION PERSONAS
UI / E2E TESTS CASE #1
EXECUTORCREATOR CONSUMER
@theBConnolly
A dedicated team of
automators writes tests
QA / Tester runs the
tests as needed based
on release schedule
Managers look at test
result reports tracking
trends and metrics.
Automation
Team
QA Management
AUTOMATION PERSONAS
UI / E2E TESTS CASE #2
EXECUTORCREATOR CONSUMER
@theBConnolly
Contextual Benefit - Ensure Tests Provide Direct & Meaningful
Value
Collective Ownership - It Takes a Village to Support
Automation
Multiple Consumers - Identify Questions That Automation Can
Answer for Consumers
@theBConnolly
UI / E2E TEST
SUCCESS CRITERIA
RE-MODELING
I
@theBConnolly
A MODEL OF
ISOLATION
THERE IS ALWAYS A BROADER
CONTEXT
WE TEST TO UNDERSTAND
THE REALITY OF THAT
CONTEXT
@theBConnolly
QUALITY
CATHEDRALI
@theBConnolly
Just like the Test Pyramid a
Quality Cathedral is built
upon a solid foundation of
unit tests
QUALITY CATHEDRAL
FOUNDATION
@theBConnolly
Focused On Building A
Quality Application that
Inspires & Engages Our
Users
QUALITY CATHEDRAL
APPLICATION
CENTRIC
@theBConnolly
Higher Level Tests Stand
Alongside the Application
Supporting the It Exactly
Where It Needs it
QUALITY CATHEDRAL
TARGETED
SUPPORTS
@theBConnolly
Free Standing Supports
that reinforce lower
level tests
QUALITY CATHEDRAL
BUTTRESSING
QUALITY
@theBConnolly
I
STRUCTURED
TO SUPPORT
THE WHOLE
@theBConnolly
A Network of Tests that
work together to withstand
the demand & stress your
product faces
QUALITY CATHEDRAL
SCALE &
WITHSTAND
@theBConnolly
You know your product
You know your team
Target where your application
needs support with your
resources to efficiently
manage risk
QUALITY CATHEDRAL
YOUR TEAM
YOUR SUPPORTS
@theBConnolly
CHARTERING
A
STRATEGY
I
@theBConnolly
WATCHING OUT
FOR WATERFALLS
Heavy Documentation
Explicit Processes
Bureaucracy
These do not guarantee better
outcomes
Strategy needs to be Agile too
@theBConnolly
EXPLORATORY TEST
CHARTERS
@theBConnolly
TEST STRATEGY
CHARTERS
Use (Testing / Automation Technique)
Led By (Owner / Creator)
To Support (Desired Outcomes)
@theBConnolly
TEST STRATEGY
CHARTER EXAMPLES
Use Unit Testing
Led By Developers
To Support a healthy codebase and easier
refactoring
Use End 2 End UI Tests
Led By QA with Dev support
To Support Exploratory testing on stable
builds
@theBConnolly
STRATEGY EVALUATION
EVENTS
When:
- Projects Kickoff / End
- Team Members
Change
- Incidents / Outages
- Team Retro’s
Discuss, Evolve, Reflect
@theBConnolly
TEST STRATEGY
RETROSPECTIVE
Even without a documented
test strategy, people will have their
own ideas about what types of
testing activities should or should
not be occurring.
It is worth periodically checking that
everyone is on the same page.
- Katrina Clokie
https://leanpub.com/testingindevops
@theBConnolly
BUILDING YOUR
STRATEGY
Your App, Your Team, Your Needs
Empower Quality
@theBConnolly
BE WELL,
CREATE,
SHARE
Connect With Me
@theBConnolly
http://brendanconnolly.net

More Related Content

What's hot

Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?Sparkhound Inc.
 
Certified Professional Master Agile Testing information and highlights
Certified Professional Master Agile Testing  information and highlightsCertified Professional Master Agile Testing  information and highlights
Certified Professional Master Agile Testing information and highlightsAgile Testing Alliance
 
CP-SAT - Certified Professional Selenium Automation Testing
CP-SAT - Certified Professional Selenium Automation TestingCP-SAT - Certified Professional Selenium Automation Testing
CP-SAT - Certified Professional Selenium Automation TestingAgile Testing Alliance
 
How to Clean Up Your Continuous Testing Suites for Web & Mobile
How to Clean Up Your Continuous Testing Suites for Web & MobileHow to Clean Up Your Continuous Testing Suites for Web & Mobile
How to Clean Up Your Continuous Testing Suites for Web & MobilePerfecto by Perforce
 
A Test Manifesto 2014.03.26
A Test Manifesto 2014.03.26A Test Manifesto 2014.03.26
A Test Manifesto 2014.03.26Julio Ramirez
 
Software Development Craftsmanship
Software Development CraftsmanshipSoftware Development Craftsmanship
Software Development Craftsmanshipmike dunn
 
How to Go Codeless for Automated Mobile App Testing
How to Go Codeless for Automated Mobile App TestingHow to Go Codeless for Automated Mobile App Testing
How to Go Codeless for Automated Mobile App TestingApplause
 
Tdd01 a simple intro to tdd
Tdd01 a simple intro to tddTdd01 a simple intro to tdd
Tdd01 a simple intro to tddMiguel Alho
 
Helping Programmers Write Better Tests
Helping Programmers Write Better TestsHelping Programmers Write Better Tests
Helping Programmers Write Better TestsGeoffrey Dunn
 
Inrotduction of Testing
Inrotduction of TestingInrotduction of Testing
Inrotduction of TestingPalash Ghosh
 
Unwritten Manual for Pair Programming
Unwritten Manual for Pair ProgrammingUnwritten Manual for Pair Programming
Unwritten Manual for Pair ProgrammingLemi Orhan Ergin
 
Software Development Life Cycle
Software Development Life CycleSoftware Development Life Cycle
Software Development Life Cycleprimeteacher32
 
Testing practicies not only in scala
Testing practicies not only in scalaTesting practicies not only in scala
Testing practicies not only in scalaPaweł Panasewicz
 
Continuous, continuous, continuous
Continuous, continuous, continuousContinuous, continuous, continuous
Continuous, continuous, continuousMichele Orselli
 
Testplant: 10 Steps to State of the Art Software Testing
Testplant: 10 Steps to State of the Art Software TestingTestplant: 10 Steps to State of the Art Software Testing
Testplant: 10 Steps to State of the Art Software TestingTestplant
 
Let's focus more on Quality and less on Testing by Joel Montvelisky
Let's focus more on Quality and less on Testing by Joel MontveliskyLet's focus more on Quality and less on Testing by Joel Montvelisky
Let's focus more on Quality and less on Testing by Joel MontveliskyQA or the Highway
 
Bloor: Test Design Automation
Bloor: Test Design AutomationBloor: Test Design Automation
Bloor: Test Design AutomationTestplant
 

What's hot (20)

Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?Quality Assurance: What is it and what are the Business Benefits?
Quality Assurance: What is it and what are the Business Benefits?
 
Certified Professional Master Agile Testing information and highlights
Certified Professional Master Agile Testing  information and highlightsCertified Professional Master Agile Testing  information and highlights
Certified Professional Master Agile Testing information and highlights
 
CP-SAT - Certified Professional Selenium Automation Testing
CP-SAT - Certified Professional Selenium Automation TestingCP-SAT - Certified Professional Selenium Automation Testing
CP-SAT - Certified Professional Selenium Automation Testing
 
Ian Cooper webinar for DDD Iran: Kent beck style tdd seven years after
Ian Cooper webinar for DDD Iran: Kent beck style tdd   seven years afterIan Cooper webinar for DDD Iran: Kent beck style tdd   seven years after
Ian Cooper webinar for DDD Iran: Kent beck style tdd seven years after
 
How to Clean Up Your Continuous Testing Suites for Web & Mobile
How to Clean Up Your Continuous Testing Suites for Web & MobileHow to Clean Up Your Continuous Testing Suites for Web & Mobile
How to Clean Up Your Continuous Testing Suites for Web & Mobile
 
Ooad presentation
Ooad presentationOoad presentation
Ooad presentation
 
A Test Manifesto 2014.03.26
A Test Manifesto 2014.03.26A Test Manifesto 2014.03.26
A Test Manifesto 2014.03.26
 
Software Development Craftsmanship
Software Development CraftsmanshipSoftware Development Craftsmanship
Software Development Craftsmanship
 
How to Go Codeless for Automated Mobile App Testing
How to Go Codeless for Automated Mobile App TestingHow to Go Codeless for Automated Mobile App Testing
How to Go Codeless for Automated Mobile App Testing
 
Tdd01 a simple intro to tdd
Tdd01 a simple intro to tddTdd01 a simple intro to tdd
Tdd01 a simple intro to tdd
 
Helping Programmers Write Better Tests
Helping Programmers Write Better TestsHelping Programmers Write Better Tests
Helping Programmers Write Better Tests
 
Inrotduction of Testing
Inrotduction of TestingInrotduction of Testing
Inrotduction of Testing
 
Treinamento TDD
Treinamento TDDTreinamento TDD
Treinamento TDD
 
Unwritten Manual for Pair Programming
Unwritten Manual for Pair ProgrammingUnwritten Manual for Pair Programming
Unwritten Manual for Pair Programming
 
Software Development Life Cycle
Software Development Life CycleSoftware Development Life Cycle
Software Development Life Cycle
 
Testing practicies not only in scala
Testing practicies not only in scalaTesting practicies not only in scala
Testing practicies not only in scala
 
Continuous, continuous, continuous
Continuous, continuous, continuousContinuous, continuous, continuous
Continuous, continuous, continuous
 
Testplant: 10 Steps to State of the Art Software Testing
Testplant: 10 Steps to State of the Art Software TestingTestplant: 10 Steps to State of the Art Software Testing
Testplant: 10 Steps to State of the Art Software Testing
 
Let's focus more on Quality and less on Testing by Joel Montvelisky
Let's focus more on Quality and less on Testing by Joel MontveliskyLet's focus more on Quality and less on Testing by Joel Montvelisky
Let's focus more on Quality and less on Testing by Joel Montvelisky
 
Bloor: Test Design Automation
Bloor: Test Design AutomationBloor: Test Design Automation
Bloor: Test Design Automation
 

Similar to Architecting A Testing Strategy

Agile testingandautomation
Agile testingandautomationAgile testingandautomation
Agile testingandautomationjeisner
 
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019Brendan Connolly
 
An Ultimate Guide to Continuous Testing in Agile Projects.pdf
An Ultimate Guide to Continuous Testing in Agile Projects.pdfAn Ultimate Guide to Continuous Testing in Agile Projects.pdf
An Ultimate Guide to Continuous Testing in Agile Projects.pdfKMSSolutionsMarketin
 
Continuous Testing - The New Normal
Continuous Testing - The New NormalContinuous Testing - The New Normal
Continuous Testing - The New NormalTechWell
 
How to Successfully Run Your First Website A/B Test
How to Successfully Run Your First Website A/B TestHow to Successfully Run Your First Website A/B Test
How to Successfully Run Your First Website A/B TestKissmetrics on SlideShare
 
Scaling Test first for the Enterprise
Scaling Test first for the EnterpriseScaling Test first for the Enterprise
Scaling Test first for the EnterpriseQASymphony
 
[Webinar] Visa's Journey to a Culture of Experimentation
[Webinar] Visa's Journey to a Culture of Experimentation[Webinar] Visa's Journey to a Culture of Experimentation
[Webinar] Visa's Journey to a Culture of ExperimentationOptimizely
 
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...Curiosity Software Ireland
 
The Leaders Guide to Getting Started with Automated Testing
The Leaders Guide to Getting Started with Automated TestingThe Leaders Guide to Getting Started with Automated Testing
The Leaders Guide to Getting Started with Automated TestingJames Briers
 
Tackling software testing challenges in the agile era
Tackling software testing challenges in the agile eraTackling software testing challenges in the agile era
Tackling software testing challenges in the agile eraQASymphony
 
QA is not quality
QA is not qualityQA is not quality
QA is not qualityAlex Wilson
 
Resume surili jain_4.11yrs_testing
Resume surili jain_4.11yrs_testingResume surili jain_4.11yrs_testing
Resume surili jain_4.11yrs_testingsurili jain
 
Automation Essentials for the Age of Agile
Automation Essentials for the Age of AgileAutomation Essentials for the Age of Agile
Automation Essentials for the Age of AgileApplause
 
Resume surili jain_4.8yrs_testing
Resume surili jain_4.8yrs_testingResume surili jain_4.8yrs_testing
Resume surili jain_4.8yrs_testingsurili jain
 
The AAA Test Transformation Model
The AAA Test Transformation ModelThe AAA Test Transformation Model
The AAA Test Transformation ModelSushant Hublikar
 
How to get the most out of your CI/CD workflow using automated testing - Sauc...
How to get the most out of your CI/CD workflow using automated testing - Sauc...How to get the most out of your CI/CD workflow using automated testing - Sauc...
How to get the most out of your CI/CD workflow using automated testing - Sauc...twaintaylorb2b
 
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael BueningAgile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael BueningQA or the Highway
 
Standards models for setting up a robust t co-e
Standards models for setting up a robust t co-eStandards models for setting up a robust t co-e
Standards models for setting up a robust t co-eMaveric Systems
 
Standards / Models for Setting Up a Robust TCoE - Maveric Systems
Standards / Models for Setting Up a Robust TCoE - Maveric SystemsStandards / Models for Setting Up a Robust TCoE - Maveric Systems
Standards / Models for Setting Up a Robust TCoE - Maveric SystemsMaveric Systems
 

Similar to Architecting A Testing Strategy (20)

Agile testingandautomation
Agile testingandautomationAgile testingandautomation
Agile testingandautomation
 
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
Panoramic Quality: Fellowship of Testing in DevOps AgileTDUSA2019
 
An Ultimate Guide to Continuous Testing in Agile Projects.pdf
An Ultimate Guide to Continuous Testing in Agile Projects.pdfAn Ultimate Guide to Continuous Testing in Agile Projects.pdf
An Ultimate Guide to Continuous Testing in Agile Projects.pdf
 
Continuous Testing - The New Normal
Continuous Testing - The New NormalContinuous Testing - The New Normal
Continuous Testing - The New Normal
 
How to Successfully Run Your First Website A/B Test
How to Successfully Run Your First Website A/B TestHow to Successfully Run Your First Website A/B Test
How to Successfully Run Your First Website A/B Test
 
Scaling Test first for the Enterprise
Scaling Test first for the EnterpriseScaling Test first for the Enterprise
Scaling Test first for the Enterprise
 
Test Automation
Test AutomationTest Automation
Test Automation
 
[Webinar] Visa's Journey to a Culture of Experimentation
[Webinar] Visa's Journey to a Culture of Experimentation[Webinar] Visa's Journey to a Culture of Experimentation
[Webinar] Visa's Journey to a Culture of Experimentation
 
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
Curiosity and Infuse Consulting Present: Sustainable Test Automation Strategi...
 
The Leaders Guide to Getting Started with Automated Testing
The Leaders Guide to Getting Started with Automated TestingThe Leaders Guide to Getting Started with Automated Testing
The Leaders Guide to Getting Started with Automated Testing
 
Tackling software testing challenges in the agile era
Tackling software testing challenges in the agile eraTackling software testing challenges in the agile era
Tackling software testing challenges in the agile era
 
QA is not quality
QA is not qualityQA is not quality
QA is not quality
 
Resume surili jain_4.11yrs_testing
Resume surili jain_4.11yrs_testingResume surili jain_4.11yrs_testing
Resume surili jain_4.11yrs_testing
 
Automation Essentials for the Age of Agile
Automation Essentials for the Age of AgileAutomation Essentials for the Age of Agile
Automation Essentials for the Age of Agile
 
Resume surili jain_4.8yrs_testing
Resume surili jain_4.8yrs_testingResume surili jain_4.8yrs_testing
Resume surili jain_4.8yrs_testing
 
The AAA Test Transformation Model
The AAA Test Transformation ModelThe AAA Test Transformation Model
The AAA Test Transformation Model
 
How to get the most out of your CI/CD workflow using automated testing - Sauc...
How to get the most out of your CI/CD workflow using automated testing - Sauc...How to get the most out of your CI/CD workflow using automated testing - Sauc...
How to get the most out of your CI/CD workflow using automated testing - Sauc...
 
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael BueningAgile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
Agile Testing Transformation is as Easy as 1, 2, 3 by Michael Buening
 
Standards models for setting up a robust t co-e
Standards models for setting up a robust t co-eStandards models for setting up a robust t co-e
Standards models for setting up a robust t co-e
 
Standards / Models for Setting Up a Robust TCoE - Maveric Systems
Standards / Models for Setting Up a Robust TCoE - Maveric SystemsStandards / Models for Setting Up a Robust TCoE - Maveric Systems
Standards / Models for Setting Up a Robust TCoE - Maveric Systems
 

More from Brendan Connolly

Exploratory Testing As Code
Exploratory Testing As CodeExploratory Testing As Code
Exploratory Testing As CodeBrendan Connolly
 
Exploratory Testing As Code Eurostar23
Exploratory Testing As Code Eurostar23Exploratory Testing As Code Eurostar23
Exploratory Testing As Code Eurostar23Brendan Connolly
 
Manual Regression Testing Manifesto
Manual Regression Testing ManifestoManual Regression Testing Manifesto
Manual Regression Testing ManifestoBrendan Connolly
 
Panoramic Quality: The Fellowship of Testing in DevOps
Panoramic Quality: The Fellowship of Testing in DevOpsPanoramic Quality: The Fellowship of Testing in DevOps
Panoramic Quality: The Fellowship of Testing in DevOpsBrendan Connolly
 
Building a Crypto Bot with Node.js
Building a Crypto Bot with Node.jsBuilding a Crypto Bot with Node.js
Building a Crypto Bot with Node.jsBrendan Connolly
 
Frisby.js - Give it a Toss
Frisby.js - Give it a TossFrisby.js - Give it a Toss
Frisby.js - Give it a TossBrendan Connolly
 

More from Brendan Connolly (10)

Exploratory Testing As Code
Exploratory Testing As CodeExploratory Testing As Code
Exploratory Testing As Code
 
Exploratory Testing As Code Eurostar23
Exploratory Testing As Code Eurostar23Exploratory Testing As Code Eurostar23
Exploratory Testing As Code Eurostar23
 
Test Driven Testing
Test Driven TestingTest Driven Testing
Test Driven Testing
 
Manual Regression Testing Manifesto
Manual Regression Testing ManifestoManual Regression Testing Manifesto
Manual Regression Testing Manifesto
 
Panoramic Quality: The Fellowship of Testing in DevOps
Panoramic Quality: The Fellowship of Testing in DevOpsPanoramic Quality: The Fellowship of Testing in DevOps
Panoramic Quality: The Fellowship of Testing in DevOps
 
Test Driven Testing
Test Driven TestingTest Driven Testing
Test Driven Testing
 
Building a Crypto Bot with Node.js
Building a Crypto Bot with Node.jsBuilding a Crypto Bot with Node.js
Building a Crypto Bot with Node.js
 
Regress to Impress
Regress to ImpressRegress to Impress
Regress to Impress
 
Leading by Example
Leading by ExampleLeading by Example
Leading by Example
 
Frisby.js - Give it a Toss
Frisby.js - Give it a TossFrisby.js - Give it a Toss
Frisby.js - Give it a Toss
 

Recently uploaded

DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Intelisync
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...soniya singh
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 

Recently uploaded (20)

DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)Introduction to Decentralized Applications (dApps)
Introduction to Decentralized Applications (dApps)
 
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
Russian Call Girls in Karol Bagh Aasnvi ➡️ 8264348440 💋📞 Independent Escort S...
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 

Architecting A Testing Strategy

  • 2. TEST STRATEGY Guiding principles that provide focus, context, and drive actions of the team to manage risk @theBConnolly
  • 3. Testing isn’t always well understood That leads to feelings of fear When things go wrong scared people often look to blame. AM BIGUITY UN CERTAIN TY BLAME WHY STRATEGY MATTERS @theBConnolly
  • 4. People love knowing there is a plan Testing means different things to different people Move together towards quality CLARITY ALIGN M EN T QUALITY WHY STRATEGY MATTERS @theBConnolly
  • 6. How much time should we spend writing, maintaining, debugging automation? How many tests should we automate? How long should it take to run? What tests should we automate? What isn’t a good fit for automation? LOOKING FOR ANSWERS TIME QUANTITY CHOICE @theBConnolly
  • 7. TEST MONUMENTS What can all these Test Automation Pyramids tell us? @theBConnolly
  • 8. TEST PYRAMID MATHEMATICS Treating the Test Pyramid as a triangle Use geometry & trigonometry to find the total area of each level @theBConnolly
  • 9. For the Original 3 Layer Test Pyramid Assuming Each Layer Is Equally Tall Using Different Dimensions the Results Are Uniform @theBConnolly TEST PYRAMID MATHEMATICS RESULTS 3 levels UI Service Unit Great Pyramid 11.1% 33.3% 55.6% Equilateral 11.1% 33.4% 55.5% 45-45-90 11.17% 33.21% 55.62%
  • 10. Same Assumptions... More Levels @theBConnolly TEST PYRAMID MATHEMATICS RESULTS 4 levels UI Component Integration Unit Great Pyramid 6.3% 18.7% 31.3% 43.7% Equilateral 6.3% 18.8% 31.3% 43.7% 45-45-90 6.18% 18.79% 31.15% 43.88% 5 levels UI API Component Integration Unit Great Pyramid 4% 12% 19.8% 28.2% 36%
  • 11. We can agree about the Top We can agree about the Bottom We undervalue the Delicious Goodness in the Middle @theBConnolly THE GOOEY CENTER Unit Gooey Center UI 36-55% 33-60% 4-11%
  • 12. A QUESTION OF QUANTITY Per the Test Pyramid for every 100 tests added you would have: - 35-55 unit tests, - 33-60 service tests - 4-11 UI / E2E tests. Does that fit with the practices on your team? @theBConnolly
  • 13. @theBConnolly A QUESTION OF TIME Per the Test Pyramid for a 40 hour work week: - 18 hours writing & maintaining unit level tests - 18 hours writing & maintaining service level tests - 4 hours writing & maintaining UI level tests.
  • 14. A QUESTION OF EFFORT Using Effort for estimation brings automation in line with the feature development. Point Stories Inclusively but use automation effort a metric for comparison. @theBConnolly
  • 15. THE HANDFUL HEURISTIC For a given area of your product you only need a handful of end to end tests There is great power in a handful of meaningful & reliable tests @theBConnolly
  • 16. CONFIRM & CHARACTERIZE Write the Tests that: - Confirm that the Application is Releasable - Characterize Key Behaviors @theBConnolly
  • 18. ROLE OF THE TEAM PERSONAS Your Team is Unique To uncover the best automation strategy Understand your team first @theBConnolly
  • 19. The person or group responsible for writing test automation The person or system responsible for running the automated test suite The person or system that derives value from the results of test execution AUTOMATION PERSONAS CREATOR EXECUTOR CONSUMER @theBConnolly
  • 20. Writes tests while developing new functionality Runs tests as changes are made Test results inform and guide decisions through development process Developer Developer Developer AUTOMATION PERSONAS UNIT TESTS CASE #1 EXECUTOR CONSUMERCREATOR @theBConnolly
  • 21. Writes tests while developing new functionality When code is checked in tests are run and results collected Team knows their individual changes are not unintentionally affecting others Developer CI/CD Pipeline Dev Team AUTOMATION PERSONAS UNIT TESTS CASE #2 EXECUTORCREATOR CONSUMER @theBConnolly
  • 22. Writes tests while developing new functionality When code is checked in tests are run and results collected Tooling consumes or analyzes to derive actionable information Developer CI/CD Pipeline Metrics AUTOMATION PERSONAS UNIT TESTS CASE #3 EXECUTORCREATOR CONSUMER @theBConnolly
  • 23. Contextual Benefit - Direct & Meaningful Impact on Day to Day Work Collective Ownership - Team comes together to support quality outcomes Multiple Consumers - Value increased and costs reduced as tests provide multiple streams of value. @theBConnolly UNIT TEST VALUE CHARACTERISTICS
  • 24. QA / Tester writes automated tests Tests are run on some cadence. Before release, nightly build etc. Who is this for? How Do they benefit? QA Schedule ??? AUTOMATION PERSONAS UI / E2E TESTS EXECUTORCREATOR CONSUMER @theBConnolly
  • 25. QA / Tester writes automated tests Tests are run on some cadence. Before release, nightly build etc. QA / Tester reviews the test results focusing on tests they own QA Schedule QA AUTOMATION PERSONAS UI / E2E TESTS CASE #1 EXECUTORCREATOR CONSUMER @theBConnolly
  • 26. A dedicated team of automators writes tests QA / Tester runs the tests as needed based on release schedule Managers look at test result reports tracking trends and metrics. Automation Team QA Management AUTOMATION PERSONAS UI / E2E TESTS CASE #2 EXECUTORCREATOR CONSUMER @theBConnolly
  • 27. Contextual Benefit - Ensure Tests Provide Direct & Meaningful Value Collective Ownership - It Takes a Village to Support Automation Multiple Consumers - Identify Questions That Automation Can Answer for Consumers @theBConnolly UI / E2E TEST SUCCESS CRITERIA
  • 29. A MODEL OF ISOLATION THERE IS ALWAYS A BROADER CONTEXT WE TEST TO UNDERSTAND THE REALITY OF THAT CONTEXT @theBConnolly
  • 31. Just like the Test Pyramid a Quality Cathedral is built upon a solid foundation of unit tests QUALITY CATHEDRAL FOUNDATION @theBConnolly
  • 32. Focused On Building A Quality Application that Inspires & Engages Our Users QUALITY CATHEDRAL APPLICATION CENTRIC @theBConnolly
  • 33. Higher Level Tests Stand Alongside the Application Supporting the It Exactly Where It Needs it QUALITY CATHEDRAL TARGETED SUPPORTS @theBConnolly
  • 34. Free Standing Supports that reinforce lower level tests QUALITY CATHEDRAL BUTTRESSING QUALITY @theBConnolly
  • 36. A Network of Tests that work together to withstand the demand & stress your product faces QUALITY CATHEDRAL SCALE & WITHSTAND @theBConnolly
  • 37. You know your product You know your team Target where your application needs support with your resources to efficiently manage risk QUALITY CATHEDRAL YOUR TEAM YOUR SUPPORTS @theBConnolly
  • 39. WATCHING OUT FOR WATERFALLS Heavy Documentation Explicit Processes Bureaucracy These do not guarantee better outcomes Strategy needs to be Agile too @theBConnolly
  • 41. TEST STRATEGY CHARTERS Use (Testing / Automation Technique) Led By (Owner / Creator) To Support (Desired Outcomes) @theBConnolly
  • 42. TEST STRATEGY CHARTER EXAMPLES Use Unit Testing Led By Developers To Support a healthy codebase and easier refactoring Use End 2 End UI Tests Led By QA with Dev support To Support Exploratory testing on stable builds @theBConnolly
  • 43. STRATEGY EVALUATION EVENTS When: - Projects Kickoff / End - Team Members Change - Incidents / Outages - Team Retro’s Discuss, Evolve, Reflect @theBConnolly
  • 44. TEST STRATEGY RETROSPECTIVE Even without a documented test strategy, people will have their own ideas about what types of testing activities should or should not be occurring. It is worth periodically checking that everyone is on the same page. - Katrina Clokie https://leanpub.com/testingindevops @theBConnolly
  • 45. BUILDING YOUR STRATEGY Your App, Your Team, Your Needs Empower Quality @theBConnolly
  • 46. BE WELL, CREATE, SHARE Connect With Me @theBConnolly http://brendanconnolly.net