SlideShare a Scribd company logo
K1
Keynote
10/18/2017 8:30:00 AM
Blunders in Test Automation
Presented by:
Dorothy Graham
Software Test Consultant
Brought to you by:
350 Corporate Way, Suite 400, Orange Park, FL 32073
888-­‐268-­‐8770 ·∙ 904-­‐278-­‐0524 - info@techwell.com - https://www.techwell.com/
Dorothy Graham
Software Test Consultant
In software testing for more than forty years, Dorothy Graham is coauthor of four
books – Software Inspection, Software Test Automation, Foundations of Software
Testing, and Experiences of Test Automation – and is currently working with
Seretta Gamba on a test automation patterns wiki. A popular and entertaining
speaker at conferences and seminars worldwide, Dot has attended STAR
conferences since the first one in 1992. She was a founding member of the ISEB
Software Testing Board and a member of the working party that developed the
ISTQB Foundation Syllabus. Dot was awarded the European Excellence Award in
Software Testing in 1999 and the first ISTQB Excellence Award in 2012. Learn
more about Dot at DorothyGraham.co.uk.
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
1
Test Automation Blunders
Prepared and presented by
Dorothy Graham
email: info@dorothygraham.co.uk
Twitter: @DorothyGraham
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
© Dorothy Graham 2017
2
Blunder
• from old Norse word “blundra”
– meaning “to shut one’s eyes”
• now means
– mistake caused by ignorance, carelessness
– or not thinking things through
• people blunder when they don’t see or
understand
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
3
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
4
Testing-Tools-Test
• blunder: thinking that tools actually do testing
– most important, at the root of other blunders
• shouldn’t have been called “testing tools”
• better names:
– “tester assistance tools”
– “check-running tools”
– “test execution tools”
– “test running tools”
– “partial-support-for-some-aspects-of-test-
execution-and-comparison tools”
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
5
People (testers) vs tools
• what do people do?
– think, evaluate, assess, decide, observe, interpret
– recognize patterns, have new ideas, find bugs
– make mistakes
• what do tools do?
– they just run stuff - whatever they’ve been
programmed to execute (including bad tests)
– intelligence level: zero
Get tools to do what computers do best,
get testers to do what people do best
6
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
7
Who needs GPS?
• if you don’t know where you are going, any
road will do (Lewis Caroll)
• where are you going with your automation?
– testing and automation are different activities
– different activities require different objectives
• good objectives for testing?
– find bugs, gain confidence, investigate
• good objectives for automation?
– Hint: they shouldn’t be the same!
8
What finds most bugs?
regression tests exploratory testing
likelihood of
finding bugs
most often
automated
What is usually automated?
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
9
Automation success = find lots of bugs?
• tests find bugs, not automation
• automation is a mechanism for running tests
• the bug-finding ability of a single test is not
affected by the manner in which it is executed
• “find bugs” can be a dangerous objective
– especially for regression automation!
Automated tests Manual Scripted Exploratory Fix Verification
Experiences of Test Automation, Ch 27, p 503, Ed Allen & Brian Newman
10
fast
testing
slow
testing
Effectiveness
Low
High
EfficiencyManual testing Automated
Efficiency and effectiveness
poor
fast
testing
poor
slow
testing
goodgood
greatest
benefit
not good but
common
worst
better
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
11
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
12
Silver bullet solution: get the right tool
• no such thing as “the right tool” or “best tool”
– what’s “the best car”?
poor benefits
low cost
good benefits
high cost
good benefits
low cost
poor benefits
high cost
benefits
cost budget
investment in
good automation
good benefits
moderate cost
commercial tools?
open source tools?
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
13
Silver bullet: success is automatic
• automation is (much) more than just a tool
• it takes time and effort to succeed
– building good automation is a learning process
• management support is critical
– high level managers need to understand
automation capability & limitations, and have
realistic expectations and budget
– “people issues” – people use the automation,
people develop the automation
14
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
15
Automate x% of tests?
manual
tests automated
tests
new approaches,
e.g. monkey
testing, HiVAT*
manual tests
automated
(% manual)
tests (&
verification)
not possible to
do manually
tests not
automated
yet
*High Volume Automated Testing See http://kaner.com
tests that shouldn’t
be automated
(users, colours,
captcha, too long)
16
Testware architecture
– poor architecture gives
high maintenance cost
• most frequent cause of
abandoned automation /
shelfware
– two layers of abstraction
• technical: for long life
• human: for wide use
– using the tool’s
architecture ties you to
that tool (version)
Testers	
Test	Execution	Tool
runs	scripts
HL Keywords
Structured
Scripts
testware
architecture
write	tests	(in	DSTL)
Ch 5
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
17
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
18
How hard can it be?
• different activities require different skills
• classic blunder: let the testers automate
– automating without automation skills?
• newer blunder: let the automators write tests
– testing without testing skills?
• if testers are automators è a conflict of interest
– do you run tests or do you automate tests?
– automation is better long-term, BUT
– deadline pressure pushes you back into manual
testing
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
19
Tools will replace testers?
• “we can reduce the number of testers once we
have the tool”
– what are your testers like?
• mindless morons, or
• intelligent investigators?
– need more skills, not fewer
– automation can free testers to do more test
design, exploratory testing
• and find more bugs
– tools don’t replace testers, they support them
20
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
21
Stable application myth
• can’t start automating until the application (or
the GUI) is stable
– throw-back to testing attitudes 30 years ago?
• testing comes at the end?
• testing is (only) execution?
• testing is more than testing [execution]
• automation is more than execution
• design your automation early, ready to run
when anything is ready to test
22
• test automation pyramid
– Mike Cohn, Lisa Crispin (Ch 1)
– more unit/component tests
– fewer GUI tests
• instability an opportunity rather than a problem
– build flexibility & robustness in your automation
against common types of changes
• which aspects are stable? (GUI often late)
– execute tests for stable parts when ready
– build (GUI) tests now but with detail abstracted out
When to write automated tests
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
23
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
24
Project / not project
• not thinking of automation as a project
– doesn’t need funding, resourcing
– just do it in your “spare time”
• thinking that automation is (just) a project
– when will automation be finished? (wrong question!)
– needs on-going continuous improvement
– refactoring at regular intervals
• project to start automation, then continued
support
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
25
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
26
Automated tests/automated testing
Select / identify test cases to run
Set-up test environment:
• create test environment
• load test data
Repeat for each test case:
• set-up test pre-requisites
• execute
• compare results
• log results
• analyse test failures
• report defect(s)
• clear-up after test case
Clear-up test environment:
• delete unwanted data
• save important data
Summarise results
Automated tests
Select / identify test cases to run
Set-up test environment:
• create test environment
• load test data
Repeat for each test case:
• set-up test pre-requisites
• execute
• compare results
• log results
• clear-up after test case
Clear-up test environment:
• delete unwanted data
• save important data
Summarise results
Analyse test failures
Report defects
Automated testing
Automated processManual process
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
27
Contents
• Test automation blunders
– Testing-Tools-Test
– Who needs GPS?
– Silver Bullet
– The Wrong Thing
– How hard can it be?
– Stable Application Myth
– Project / Not Project
– Inside the Box
– Isolationism
• Conclusion
Twitter: @DorothyGraham
28
Isolationism: isolated from
• change: encasing your first efforts in stone
– automated tests benefit from review and refactoring
• realism: optimism as a strategy for automation
– automated tests need to be tested and have bugs
– realistic expectations
• managers: not making automation benefits visible
– to the people who matter, in a way that communicates
• developers: not collaborating
– design for automated testability, help developers
• the wider world: not seeking existing knowledge
– books, wiki*, articles, blogs, discussions, events
*TestAutomationPatterns.wikispaces.com
info@dorothygraham.co.uk
© Dorothy Graham 2017
www.DorothyGraham.co.uk
www.TestAutomationPatterns.org
29
Conclusion: see how these are wrong
• Summary of test automation blunders
– Testing-Tools- DON’T –Test they just run stuff
– Who needs GPS? automation needs direction
– NO Silver Bullet needs time and effort
– The Wrong Thing no testware architecture, just manual tests
– How hard can it be? needs different skills
– Stable Application Myth opportunity for flexibility
– Project at times / Not just a Project ongoing, refactor
– Inside the Box automation is more than automation
– Isolationism collaborate, experiment, read, learn
30
Thank you!
• More information:
• downloads www.DorothyGraham.co.uk
– articles and papers
• email info@DorothyGraham.co.uk
• blog http://dorothygraham.blogspot.com
– including automation, certification
• twitter
– @DorothyGraham
• TestAutomationPatterns.org
– free wiki of automation advice,
with Seretta Gamba
eBook available at
informit.com/swtest
ing
Save 35% with
discount code
SWTESTING

More Related Content

PDF
Blunders in Test Automation
PDF
Blunders in Test Automation
PDF
Intelligent Mistakes in Test Automation
PDF
Test Automation Patterns
PDF
The Test Coverage Outline: Your Testing Road Map
PDF
Acceptance Testing for Continuous Delivery by Dave Farley at #AgileIndia2019
PDF
Develop WebDriver Automated Tests—and Keep Your Sanity
Blunders in Test Automation
Blunders in Test Automation
Intelligent Mistakes in Test Automation
Test Automation Patterns
The Test Coverage Outline: Your Testing Road Map
Acceptance Testing for Continuous Delivery by Dave Farley at #AgileIndia2019
Develop WebDriver Automated Tests—and Keep Your Sanity

What's hot (20)

PPT
Evolution of Agile Testing
PPT
Effective specifications for agile teams
PPTX
ATDD And BDD The Great Beat Down…or…Debate
PDF
Building and Scaling High Performing Technology Organizations by Jez Humble a...
PDF
Why you should integrate peer code reviews in your software company
PDF
Test automation Anecdotes
PDF
Digital transformation testing.
PDF
On to code review lessons learned at microsoft
PPTX
Refactoring Legacy Code - true story
PPTX
Transferring Software Testing Tools to Practice
PPT
'The Real Agile Testing Quadrants' with Michael Bolton
PDF
Agile testing quadrants discussion
PDF
Rapid Performance Testing: No Load Generation Required
PDF
[QE 2018] Paul Gerrard – Automating Assurance: Tools, Collaboration and DevOps
PDF
UXprobe workshop at Dare Festival 2016
PDF
Planning Your Agile Testing: A Practical Guide
PPTX
Making Great User Experiences, Pittsburgh Scrum MeetUp, Oct 17, 2017
PDF
Common Technical Writing Issues
PPTX
Create Your Tester Portfolio
PDF
User Expectations in Mobile App Security
Evolution of Agile Testing
Effective specifications for agile teams
ATDD And BDD The Great Beat Down…or…Debate
Building and Scaling High Performing Technology Organizations by Jez Humble a...
Why you should integrate peer code reviews in your software company
Test automation Anecdotes
Digital transformation testing.
On to code review lessons learned at microsoft
Refactoring Legacy Code - true story
Transferring Software Testing Tools to Practice
'The Real Agile Testing Quadrants' with Michael Bolton
Agile testing quadrants discussion
Rapid Performance Testing: No Load Generation Required
[QE 2018] Paul Gerrard – Automating Assurance: Tools, Collaboration and DevOps
UXprobe workshop at Dare Festival 2016
Planning Your Agile Testing: A Practical Guide
Making Great User Experiences, Pittsburgh Scrum MeetUp, Oct 17, 2017
Common Technical Writing Issues
Create Your Tester Portfolio
User Expectations in Mobile App Security
Ad

Similar to Blunders in Test Automation (20)

PDF
It Seemed a Good Idea at the Time: Intelligent Mistakes in Test Automation
PDF
Test Automation Patterns: Issues and Solutions
PPTX
It's Automation, Not Automagic
PDF
Ghhfghjbfyhhebook-agile-software-testing.pdf
PDF
Management Issues in Test Automation
PDF
Managing Successful Test Automation
PPTX
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_21-04-2022_TES...
PDF
Test Automation
PDF
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
PPTX
unit-5 SPM.pptx
PDF
Keynote: Lightning Strikes the Keynotes
PPTX
Software testing 2012 - A Year in Review
PDF
Management Issues in Test Automation
PDF
Julian Harty - Alternatives To Testing - EuroSTAR 2010
PDF
Automation Maturity Heuristic
PDF
Test Automation Patterns: Issues and Solutions
PDF
What i've learned about test automation and DevOps
PDF
10 Lessons learned in test automation
PDF
Management Issues in Test Automation
PDF
Fostering Long-Term Test Automation Success
It Seemed a Good Idea at the Time: Intelligent Mistakes in Test Automation
Test Automation Patterns: Issues and Solutions
It's Automation, Not Automagic
Ghhfghjbfyhhebook-agile-software-testing.pdf
Management Issues in Test Automation
Managing Successful Test Automation
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_21-04-2022_TES...
Test Automation
Lee Barnes - Path to Becoming an Effective Test Automation Engineer.pdf
unit-5 SPM.pptx
Keynote: Lightning Strikes the Keynotes
Software testing 2012 - A Year in Review
Management Issues in Test Automation
Julian Harty - Alternatives To Testing - EuroSTAR 2010
Automation Maturity Heuristic
Test Automation Patterns: Issues and Solutions
What i've learned about test automation and DevOps
10 Lessons learned in test automation
Management Issues in Test Automation
Fostering Long-Term Test Automation Success
Ad

More from TechWell (20)

PDF
Failing and Recovering
PDF
Instill a DevOps Testing Culture in Your Team and Organization
PDF
Test Design for Fully Automated Build Architecture
PDF
System-Level Test Automation: Ensuring a Good Start
PDF
Build Your Mobile App Quality and Test Strategy
PDF
Testing Transformation: The Art and Science for Success
PDF
Implement BDD with Cucumber and SpecFlow
PDF
Ma 15
PDF
Eliminate Cloud Waste with a Holistic DevOps Strategy
PDF
Transform Test Organizations for the New World of DevOps
PDF
The Fourth Constraint in Project Delivery—Leadership
PDF
Resolve the Contradiction of Specialists within Agile Teams
PDF
Pin the Tail on the Metric: A Field-Tested Agile Game
PDF
Agile Performance Holarchy (APH)—A Model for Scaling Agile Teams
PDF
A Business-First Approach to DevOps Implementation
PDF
Databases in a Continuous Integration/Delivery Process
PDF
Mobile Testing: What—and What Not—to Automate
PDF
Cultural Intelligence: A Key Skill for Success
PDF
Turn the Lights On: A Power Utility Company's Agile Transformation
PDF
Scale: The Most Hyped Term in Agile Development Today
Failing and Recovering
Instill a DevOps Testing Culture in Your Team and Organization
Test Design for Fully Automated Build Architecture
System-Level Test Automation: Ensuring a Good Start
Build Your Mobile App Quality and Test Strategy
Testing Transformation: The Art and Science for Success
Implement BDD with Cucumber and SpecFlow
Ma 15
Eliminate Cloud Waste with a Holistic DevOps Strategy
Transform Test Organizations for the New World of DevOps
The Fourth Constraint in Project Delivery—Leadership
Resolve the Contradiction of Specialists within Agile Teams
Pin the Tail on the Metric: A Field-Tested Agile Game
Agile Performance Holarchy (APH)—A Model for Scaling Agile Teams
A Business-First Approach to DevOps Implementation
Databases in a Continuous Integration/Delivery Process
Mobile Testing: What—and What Not—to Automate
Cultural Intelligence: A Key Skill for Success
Turn the Lights On: A Power Utility Company's Agile Transformation
Scale: The Most Hyped Term in Agile Development Today

Recently uploaded (20)

PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Download FL Studio Crack Latest version 2025 ?
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PDF
Autodesk AutoCAD Crack Free Download 2025
PDF
iTop VPN Crack Latest Version Full Key 2025
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Website Design Services for Small Businesses.pdf
PPTX
assetexplorer- product-overview - presentation
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
iTop VPN Free 5.6.0.5262 Crack latest version 2025
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
AutoCAD Professional Crack 2025 With License Key
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
Complete Guide to Website Development in Malaysia for SMEs
Design an Analysis of Algorithms I-SECS-1021-03
Download FL Studio Crack Latest version 2025 ?
Advanced SystemCare Ultimate Crack + Portable (2025)
Oracle Fusion HCM Cloud Demo for Beginners
Autodesk AutoCAD Crack Free Download 2025
iTop VPN Crack Latest Version Full Key 2025
Design an Analysis of Algorithms II-SECS-1021-03
Website Design Services for Small Businesses.pdf
assetexplorer- product-overview - presentation
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Patient Appointment Booking in Odoo with online payment
Odoo Companies in India – Driving Business Transformation.pdf
Internet Downloader Manager (IDM) Crack 6.42 Build 41
iTop VPN Free 5.6.0.5262 Crack latest version 2025
wealthsignaloriginal-com-DS-text-... (1).pdf
AutoCAD Professional Crack 2025 With License Key
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Complete Guide to Website Development in Malaysia for SMEs

Blunders in Test Automation

  • 1. K1 Keynote 10/18/2017 8:30:00 AM Blunders in Test Automation Presented by: Dorothy Graham Software Test Consultant Brought to you by: 350 Corporate Way, Suite 400, Orange Park, FL 32073 888-­‐268-­‐8770 ·∙ 904-­‐278-­‐0524 - info@techwell.com - https://www.techwell.com/
  • 2. Dorothy Graham Software Test Consultant In software testing for more than forty years, Dorothy Graham is coauthor of four books – Software Inspection, Software Test Automation, Foundations of Software Testing, and Experiences of Test Automation – and is currently working with Seretta Gamba on a test automation patterns wiki. A popular and entertaining speaker at conferences and seminars worldwide, Dot has attended STAR conferences since the first one in 1992. She was a founding member of the ISEB Software Testing Board and a member of the working party that developed the ISTQB Foundation Syllabus. Dot was awarded the European Excellence Award in Software Testing in 1999 and the first ISTQB Excellence Award in 2012. Learn more about Dot at DorothyGraham.co.uk.
  • 3. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 1 Test Automation Blunders Prepared and presented by Dorothy Graham email: info@dorothygraham.co.uk Twitter: @DorothyGraham www.DorothyGraham.co.uk www.TestAutomationPatterns.org © Dorothy Graham 2017 2 Blunder • from old Norse word “blundra” – meaning “to shut one’s eyes” • now means – mistake caused by ignorance, carelessness – or not thinking things through • people blunder when they don’t see or understand
  • 4. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 3 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham 4 Testing-Tools-Test • blunder: thinking that tools actually do testing – most important, at the root of other blunders • shouldn’t have been called “testing tools” • better names: – “tester assistance tools” – “check-running tools” – “test execution tools” – “test running tools” – “partial-support-for-some-aspects-of-test- execution-and-comparison tools”
  • 5. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 5 People (testers) vs tools • what do people do? – think, evaluate, assess, decide, observe, interpret – recognize patterns, have new ideas, find bugs – make mistakes • what do tools do? – they just run stuff - whatever they’ve been programmed to execute (including bad tests) – intelligence level: zero Get tools to do what computers do best, get testers to do what people do best 6 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham
  • 6. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 7 Who needs GPS? • if you don’t know where you are going, any road will do (Lewis Caroll) • where are you going with your automation? – testing and automation are different activities – different activities require different objectives • good objectives for testing? – find bugs, gain confidence, investigate • good objectives for automation? – Hint: they shouldn’t be the same! 8 What finds most bugs? regression tests exploratory testing likelihood of finding bugs most often automated What is usually automated?
  • 7. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 9 Automation success = find lots of bugs? • tests find bugs, not automation • automation is a mechanism for running tests • the bug-finding ability of a single test is not affected by the manner in which it is executed • “find bugs” can be a dangerous objective – especially for regression automation! Automated tests Manual Scripted Exploratory Fix Verification Experiences of Test Automation, Ch 27, p 503, Ed Allen & Brian Newman 10 fast testing slow testing Effectiveness Low High EfficiencyManual testing Automated Efficiency and effectiveness poor fast testing poor slow testing goodgood greatest benefit not good but common worst better
  • 8. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 11 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham 12 Silver bullet solution: get the right tool • no such thing as “the right tool” or “best tool” – what’s “the best car”? poor benefits low cost good benefits high cost good benefits low cost poor benefits high cost benefits cost budget investment in good automation good benefits moderate cost commercial tools? open source tools?
  • 9. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 13 Silver bullet: success is automatic • automation is (much) more than just a tool • it takes time and effort to succeed – building good automation is a learning process • management support is critical – high level managers need to understand automation capability & limitations, and have realistic expectations and budget – “people issues” – people use the automation, people develop the automation 14 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham
  • 10. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 15 Automate x% of tests? manual tests automated tests new approaches, e.g. monkey testing, HiVAT* manual tests automated (% manual) tests (& verification) not possible to do manually tests not automated yet *High Volume Automated Testing See http://kaner.com tests that shouldn’t be automated (users, colours, captcha, too long) 16 Testware architecture – poor architecture gives high maintenance cost • most frequent cause of abandoned automation / shelfware – two layers of abstraction • technical: for long life • human: for wide use – using the tool’s architecture ties you to that tool (version) Testers Test Execution Tool runs scripts HL Keywords Structured Scripts testware architecture write tests (in DSTL) Ch 5
  • 11. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 17 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham 18 How hard can it be? • different activities require different skills • classic blunder: let the testers automate – automating without automation skills? • newer blunder: let the automators write tests – testing without testing skills? • if testers are automators è a conflict of interest – do you run tests or do you automate tests? – automation is better long-term, BUT – deadline pressure pushes you back into manual testing
  • 12. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 19 Tools will replace testers? • “we can reduce the number of testers once we have the tool” – what are your testers like? • mindless morons, or • intelligent investigators? – need more skills, not fewer – automation can free testers to do more test design, exploratory testing • and find more bugs – tools don’t replace testers, they support them 20 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham
  • 13. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 21 Stable application myth • can’t start automating until the application (or the GUI) is stable – throw-back to testing attitudes 30 years ago? • testing comes at the end? • testing is (only) execution? • testing is more than testing [execution] • automation is more than execution • design your automation early, ready to run when anything is ready to test 22 • test automation pyramid – Mike Cohn, Lisa Crispin (Ch 1) – more unit/component tests – fewer GUI tests • instability an opportunity rather than a problem – build flexibility & robustness in your automation against common types of changes • which aspects are stable? (GUI often late) – execute tests for stable parts when ready – build (GUI) tests now but with detail abstracted out When to write automated tests
  • 14. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 23 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham 24 Project / not project • not thinking of automation as a project – doesn’t need funding, resourcing – just do it in your “spare time” • thinking that automation is (just) a project – when will automation be finished? (wrong question!) – needs on-going continuous improvement – refactoring at regular intervals • project to start automation, then continued support
  • 15. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 25 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham 26 Automated tests/automated testing Select / identify test cases to run Set-up test environment: • create test environment • load test data Repeat for each test case: • set-up test pre-requisites • execute • compare results • log results • analyse test failures • report defect(s) • clear-up after test case Clear-up test environment: • delete unwanted data • save important data Summarise results Automated tests Select / identify test cases to run Set-up test environment: • create test environment • load test data Repeat for each test case: • set-up test pre-requisites • execute • compare results • log results • clear-up after test case Clear-up test environment: • delete unwanted data • save important data Summarise results Analyse test failures Report defects Automated testing Automated processManual process
  • 16. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 27 Contents • Test automation blunders – Testing-Tools-Test – Who needs GPS? – Silver Bullet – The Wrong Thing – How hard can it be? – Stable Application Myth – Project / Not Project – Inside the Box – Isolationism • Conclusion Twitter: @DorothyGraham 28 Isolationism: isolated from • change: encasing your first efforts in stone – automated tests benefit from review and refactoring • realism: optimism as a strategy for automation – automated tests need to be tested and have bugs – realistic expectations • managers: not making automation benefits visible – to the people who matter, in a way that communicates • developers: not collaborating – design for automated testability, help developers • the wider world: not seeking existing knowledge – books, wiki*, articles, blogs, discussions, events *TestAutomationPatterns.wikispaces.com
  • 17. info@dorothygraham.co.uk © Dorothy Graham 2017 www.DorothyGraham.co.uk www.TestAutomationPatterns.org 29 Conclusion: see how these are wrong • Summary of test automation blunders – Testing-Tools- DON’T –Test they just run stuff – Who needs GPS? automation needs direction – NO Silver Bullet needs time and effort – The Wrong Thing no testware architecture, just manual tests – How hard can it be? needs different skills – Stable Application Myth opportunity for flexibility – Project at times / Not just a Project ongoing, refactor – Inside the Box automation is more than automation – Isolationism collaborate, experiment, read, learn 30 Thank you! • More information: • downloads www.DorothyGraham.co.uk – articles and papers • email info@DorothyGraham.co.uk • blog http://dorothygraham.blogspot.com – including automation, certification • twitter – @DorothyGraham • TestAutomationPatterns.org – free wiki of automation advice, with Seretta Gamba eBook available at informit.com/swtest ing Save 35% with discount code SWTESTING