SlideShare a Scribd company logo
What You are Doing Wrong With
Automated Testing
Anti-Patterns in Automated Testing
by Martin Folkoff and Shawn Faunce
US
Martin Folkoff
US CIS
Shawn Faunce
Anti-Patterns
• “An anti-pattern is just like a pattern, except
that instead of a solution, it gives something
that looks superficially like a solution but isn't
one.”
- Andrew Koenig
Ice Cream
Cone Recorders
Low
Priority
Bugs
OwnershipMonolith
Coverage
=
Quality
Ice Cream
Cone
99%
UI Tests
70%
Unit & Integration Tests
20%
API Tests
10%
UI Tests
Exploratory
Testing
Looks like a good solution
• Easy to create
• Mimics user interactions
• You see something happening
10%
Unit & Integration Tests
20%
API Tests
70%
UI Tests
Exploratory
Testing
Anti-Pattern: When you automated testing strategy relies mostly or exclusively
tests at the user interface (UI) layer
But it introduces problems
• Maintenance nightmare
• No fast feedback
• Complex tests, complex debugging
Looks like a good solution
• Tools make it quick and easy
• No programming required
• Leverage manual testers
Anti-Pattern: When you use a screen recorder to build your automated tests
instead of one of the automated testing frameworks that relies on programming.
But it introduces problems
• Extremely fragile
• Dependent on having a UI
• No mock objects
Recorders
Looks like a good solution
• There are bigger fish to fry
• Only happens occasionally
• Not worth our attention
Anti-Pattern: When you ignore intermittent low priority bugs that occasionally
affects the automated test, but a user might easily overcome or not notice.
But it introduces problems
• Lose confidence in your tests
• Flaky tests
• Build technical debt
Low
Priority
Bugs
Looks like a good solution
• Avoid managing dependencies
• Always run your full test suite
• Just keep appending new tests
Anti-Pattern: When you organize your test suite so that all of the tests are
designed to run together as one test suite.
But it introduces problems
• Slow feedback loop
• Longer build times
• Encourages sloppy engineering
Monolith
Looks like a good solution
• Testers test, and this is a test
• Frees up developers
• Clear lines of ownership
Anti-Pattern: When you have testers write automated tests, you are transferring
the ownership of quality
But it introduces problems
• Need programming skills
• Quality is not someone else’s job
• Creates ownership issues
Ownership
Looks like a good solution
• Can’t get any better than 100%
• Everything appears to be tested
• The dashboard is all green
Anti-Pattern: You achieve 100% test coverage on your code, ergo you have 100%
Quality.
But it introduces problems
• Are the tests good tests?
• Satisfy the coverage tool
• Can lead to assertion free testing
Coverage
=
Quality
“I expect a high level of coverage. Sometimes managers require one.
There’s a subtle difference.”
“People optimize their performance according to how they’re
measured”
“If a part of your test suite is weak in a way that coverage can detect,
it’s likely also weak in a way coverage can’t detect.”
-- Brian Marick
How to Misuse Code Coverage
http://www.exampler.com/testing-com/writings/coverage.pdf
What You are Doing Wrong with Automated Testing

More Related Content

PPTX
Asking for repetition
PPTX
OFFERS AND SUGGESTION MATERIAL
PPTX
Reported speech
PPTX
Contracts ppt.pptx
PDF
English placement test (1)
PDF
DevOps Workshop - Addressing Quality Challenges of Highly Complex and Integra...
PDF
The Key to DevOps? Testing Early in the Pipeline
PPTX
How google-tests-software
Asking for repetition
OFFERS AND SUGGESTION MATERIAL
Reported speech
Contracts ppt.pptx
English placement test (1)
DevOps Workshop - Addressing Quality Challenges of Highly Complex and Integra...
The Key to DevOps? Testing Early in the Pipeline
How google-tests-software

Similar to What You are Doing Wrong with Automated Testing (20)

PPTX
QAorHighway2016
PPTX
Code Reviews
PPT
Quality Spy Overview
PDF
5 Steps to Jump Start Your Test Automation
PPT
Automated testing vs manual testing
PPTX
When & How to Successfully use Test Automation for Mobile Applications
PPTX
Presentation delex
PPTX
Test Automation Architecture That Works by Bhupesh Dahal
PPTX
Solano Labs presented at MassTLC's automated testing
PDF
A lean automation blueprint for testing in continuous delivery
PPTX
Automated testers agile evangelist
PPTX
E2 e test with testcafe
PPTX
Winning the battle against Automated testing
PDF
SOFTWARE TESTING W1_watermark.pdf
PDF
STAQ Development Manual (Redacted)
PPTX
Continuous integration, delivery & deployment
PPTX
Battle for Code Quality - A Story of One Java Project
PPT
Automated Testing with Agile
PPTX
Practical Testing Strategy for Agile Team
PPT
Automated Testing v s Manual Testing.ppt
QAorHighway2016
Code Reviews
Quality Spy Overview
5 Steps to Jump Start Your Test Automation
Automated testing vs manual testing
When & How to Successfully use Test Automation for Mobile Applications
Presentation delex
Test Automation Architecture That Works by Bhupesh Dahal
Solano Labs presented at MassTLC's automated testing
A lean automation blueprint for testing in continuous delivery
Automated testers agile evangelist
E2 e test with testcafe
Winning the battle against Automated testing
SOFTWARE TESTING W1_watermark.pdf
STAQ Development Manual (Redacted)
Continuous integration, delivery & deployment
Battle for Code Quality - A Story of One Java Project
Automated Testing with Agile
Practical Testing Strategy for Agile Team
Automated Testing v s Manual Testing.ppt
Ad

Recently uploaded (20)

PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PPTX
Transform Your Business with a Software ERP System
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
medical staffing services at VALiNTRY
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ai tools demonstartion for schools and inter college
PDF
System and Network Administraation Chapter 3
wealthsignaloriginal-com-DS-text-... (1).pdf
Transform Your Business with a Software ERP System
How to Migrate SBCGlobal Email to Yahoo Easily
2025 Textile ERP Trends: SAP, Odoo & Oracle
Softaken Excel to vCard Converter Software.pdf
CHAPTER 2 - PM Management and IT Context
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Which alternative to Crystal Reports is best for small or large businesses.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
Reimagine Home Health with the Power of Agentic AI​
medical staffing services at VALiNTRY
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Design an Analysis of Algorithms I-SECS-1021-03
Wondershare Filmora 15 Crack With Activation Key [2025
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Operating system designcfffgfgggggggvggggggggg
ai tools demonstartion for schools and inter college
System and Network Administraation Chapter 3
Ad

What You are Doing Wrong with Automated Testing

  • 1. What You are Doing Wrong With Automated Testing Anti-Patterns in Automated Testing by Martin Folkoff and Shawn Faunce
  • 3. Anti-Patterns • “An anti-pattern is just like a pattern, except that instead of a solution, it gives something that looks superficially like a solution but isn't one.” - Andrew Koenig Ice Cream Cone Recorders Low Priority Bugs OwnershipMonolith Coverage = Quality
  • 4. Ice Cream Cone 99% UI Tests 70% Unit & Integration Tests 20% API Tests 10% UI Tests Exploratory Testing Looks like a good solution • Easy to create • Mimics user interactions • You see something happening 10% Unit & Integration Tests 20% API Tests 70% UI Tests Exploratory Testing Anti-Pattern: When you automated testing strategy relies mostly or exclusively tests at the user interface (UI) layer But it introduces problems • Maintenance nightmare • No fast feedback • Complex tests, complex debugging
  • 5. Looks like a good solution • Tools make it quick and easy • No programming required • Leverage manual testers Anti-Pattern: When you use a screen recorder to build your automated tests instead of one of the automated testing frameworks that relies on programming. But it introduces problems • Extremely fragile • Dependent on having a UI • No mock objects Recorders
  • 6. Looks like a good solution • There are bigger fish to fry • Only happens occasionally • Not worth our attention Anti-Pattern: When you ignore intermittent low priority bugs that occasionally affects the automated test, but a user might easily overcome or not notice. But it introduces problems • Lose confidence in your tests • Flaky tests • Build technical debt Low Priority Bugs
  • 7. Looks like a good solution • Avoid managing dependencies • Always run your full test suite • Just keep appending new tests Anti-Pattern: When you organize your test suite so that all of the tests are designed to run together as one test suite. But it introduces problems • Slow feedback loop • Longer build times • Encourages sloppy engineering Monolith
  • 8. Looks like a good solution • Testers test, and this is a test • Frees up developers • Clear lines of ownership Anti-Pattern: When you have testers write automated tests, you are transferring the ownership of quality But it introduces problems • Need programming skills • Quality is not someone else’s job • Creates ownership issues Ownership
  • 9. Looks like a good solution • Can’t get any better than 100% • Everything appears to be tested • The dashboard is all green Anti-Pattern: You achieve 100% test coverage on your code, ergo you have 100% Quality. But it introduces problems • Are the tests good tests? • Satisfy the coverage tool • Can lead to assertion free testing Coverage = Quality “I expect a high level of coverage. Sometimes managers require one. There’s a subtle difference.” “People optimize their performance according to how they’re measured” “If a part of your test suite is weak in a way that coverage can detect, it’s likely also weak in a way coverage can’t detect.” -- Brian Marick How to Misuse Code Coverage http://www.exampler.com/testing-com/writings/coverage.pdf