SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Pitfalls of Test Automation
and why you should keep your head
Rikke Simonsen
Technical Tester
1
My Background
Education: Bachelor in Computer Science
Past: Web Developer
Now: Technical Tester
That means:
• Primarily knowledge in programming
• Still learning (how to be a tester) by doing
(a lot of mistakes)
2
What I do
Write specifications
with customers
and
implement them
as automated tests
!
3
4
Why automate?
• Faster feedback on the possible side effects of
changes to the system
• Faster decision making of release readiness
• Less time on repetitive tasks
• More time for explorative testing
• Documentation of the behaviour of the system
5
Pitfalls
1. Automate everything
2. Automation is the testers job
3. Blinded by love (to the tool)
4. Test code treated as second class
5. (Too) High expectations of ROI
6
1. Automate everything
7
8
• No prioritizing of what to automate
• Each test introduced will need to be maintained
• Not all tests return value
• Not all test cases can easily be automated
• Some tests are better left for manual testing
Be aware of
1. Automate everything
9
• Think about return on investment
• Don’t automate trivial test cases - the ones that
never fail or represent any risk
• Focus on the scenarios that will hurt the
business if the functionality breaks
• Don’t be afraid to remove tests
• Make thoughtful decisions of what to automate
Recommendations
1. Automate everything
10
2. Automation is the
testers job
11
12
• Thinking that automated tests are just test.
Its code.
• Thinking that automation is all about learning a
tool. It’s not.
Be aware of
2. Automation is the testers job
13
• Automation should be done by people with
good programming skills.
• The tests should be defined by the tester in
collaboration with domain experts.
• Test automation should be a shared
responsibility. Everyone on the team should
contribute.
Recommendations
2. Automation is the testers job
14
3. Blinded by love
(to the tool)
15
16
• Thinking the tool can do magic
• Thinking the tool can solve all your problems
• The urge to automate it all.
• Testing everything through the GUI
• Trying to fit the tests to the tool
Be aware of
3. Blinded by love
17
• Critical thinking. Analyze strengths and
weaknesses of the tool.
• Learn how to use a wide range of tools and
select the right one for the job.
• Only test things through the GUI that can’t be
tested in any other way.
Recommendations
3. Blinded by love
18
4. Test code treated
as second class
19
20
• Automation of use cases directly
• Redundant code
• Test code is just as hard and expensive to
maintain as “real” code
Be aware of
4. Test code treated as second class
21
• Make the tests as small as possible
• Don’t let one test depend on another
• Write high level tests
• Make functions reusable
• Document the purpose of the test
• Refactor often. Do peer review.
• Use good programming practices
Recommendations
4. Test code treated as second class
22
5. (Too) High
Expectations
23
24
• Expecting early ROI
• Thinking automation is easy
• Thinking automation can “build quality in”
• Expecting cutting down costs
• The maturity of the tools
Be aware of
5. (Too) high expectations
25
• Automation is a long time investment -
there’s no quick fixes.
• Measure the costs and results. Evaluate
continuously.
• Train the team in following good practices.
Get external help if starting from scratch.
Recommendations
5. (Too) high expectations
26
and last..
• Start small
• Be realistic
• Get everyone involved
• Utilize peoples special skills
• Define your target
• Evolve
27
Questions?
rikke@reload.dk
28

Weitere ähnliche Inhalte

Was ist angesagt?

Test Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh DahalTest Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh Dahal
QA or the Highway
 
Random testing & prototyping
Random testing & prototypingRandom testing & prototyping
Random testing & prototyping
Vipul Rastogi
 

Was ist angesagt? (20)

Software testing
Software testingSoftware testing
Software testing
 
Debugging
DebuggingDebugging
Debugging
 
Basic Guide to Manual Testing
Basic Guide to Manual TestingBasic Guide to Manual Testing
Basic Guide to Manual Testing
 
Which test cases to automate
Which test cases to automateWhich test cases to automate
Which test cases to automate
 
Automation in the Bug Flow - Machine Learning for Triaging and Tracing
Automation in the Bug Flow - Machine Learning for Triaging and TracingAutomation in the Bug Flow - Machine Learning for Triaging and Tracing
Automation in the Bug Flow - Machine Learning for Triaging and Tracing
 
01 software testing_introduction
01 software testing_introduction01 software testing_introduction
01 software testing_introduction
 
Test cases for effective testing - part 1
Test cases for effective testing - part 1Test cases for effective testing - part 1
Test cases for effective testing - part 1
 
Testing in the Age of Machine Learning
Testing in the Age of Machine Learning Testing in the Age of Machine Learning
Testing in the Age of Machine Learning
 
5 top pain points of test automation
5 top pain points of test automation5 top pain points of test automation
5 top pain points of test automation
 
Test automation engineer
Test automation engineerTest automation engineer
Test automation engineer
 
Test Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh DahalTest Automation Architecture That Works by Bhupesh Dahal
Test Automation Architecture That Works by Bhupesh Dahal
 
Testing 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be RequiredTesting 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be Required
 
It Seemed a Good Idea at the Time: Intelligent Mistakes in Test Automation
It Seemed a Good Idea at the Time: Intelligent Mistakes in Test AutomationIt Seemed a Good Idea at the Time: Intelligent Mistakes in Test Automation
It Seemed a Good Idea at the Time: Intelligent Mistakes in Test Automation
 
Automation testing
Automation testingAutomation testing
Automation testing
 
Machine learning in software testing
Machine learning in software testingMachine learning in software testing
Machine learning in software testing
 
Test automation lesson
Test automation lessonTest automation lesson
Test automation lesson
 
Defects in software testing
Defects in software testingDefects in software testing
Defects in software testing
 
Build FAST with parallel_calabash
Build FAST with parallel_calabashBuild FAST with parallel_calabash
Build FAST with parallel_calabash
 
Random testing & prototyping
Random testing & prototypingRandom testing & prototyping
Random testing & prototyping
 
The limits of unit testing by Craig Stuntz
The limits of unit testing by Craig StuntzThe limits of unit testing by Craig Stuntz
The limits of unit testing by Craig Stuntz
 

Ähnlich wie Pitfalls of Test Automation

TDD — Are you sure you properly test code?
TDD — Are you sure you properly test code?TDD — Are you sure you properly test code?
TDD — Are you sure you properly test code?
Dmitriy Nesteryuk
 
10 Lessons learned in test automation
10 Lessons learned in test automation10 Lessons learned in test automation
10 Lessons learned in test automation
Romania Testing
 
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learnedSwiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Michael Palotas
 
Becoming a better programmer - unit testing
Becoming a better programmer - unit testingBecoming a better programmer - unit testing
Becoming a better programmer - unit testing
Duy Tan Geek
 

Ähnlich wie Pitfalls of Test Automation (20)

An Introduction To Software Development - Test Driven Development, Part 1
An Introduction To Software Development - Test Driven Development, Part 1An Introduction To Software Development - Test Driven Development, Part 1
An Introduction To Software Development - Test Driven Development, Part 1
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
 
Test-Driven Development (TDD) in Swift
Test-Driven Development (TDD) in SwiftTest-Driven Development (TDD) in Swift
Test-Driven Development (TDD) in Swift
 
Tdd in swift
Tdd in swiftTdd in swift
Tdd in swift
 
TDD — Are you sure you properly test code?
TDD — Are you sure you properly test code?TDD — Are you sure you properly test code?
TDD — Are you sure you properly test code?
 
10 Lessons learned in test automation
10 Lessons learned in test automation10 Lessons learned in test automation
10 Lessons learned in test automation
 
Automation testing interview pdf org
Automation testing interview pdf orgAutomation testing interview pdf org
Automation testing interview pdf org
 
QA Best Practices
QA  Best PracticesQA  Best Practices
QA Best Practices
 
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learnedSwiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
Swiss Testing Day - Testautomation, 10 (sometimes painful) lessons learned
 
Five steps towards your testing dream
Five steps towards your testing dreamFive steps towards your testing dream
Five steps towards your testing dream
 
Unleashing the power of Unit Testing - Franck Ninsabira.pdf
Unleashing the power of Unit Testing - Franck Ninsabira.pdfUnleashing the power of Unit Testing - Franck Ninsabira.pdf
Unleashing the power of Unit Testing - Franck Ninsabira.pdf
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
 
What Do We Automate First
What Do We Automate FirstWhat Do We Automate First
What Do We Automate First
 
An Introduction to Unit Testing
An Introduction to Unit TestingAn Introduction to Unit Testing
An Introduction to Unit Testing
 
A Brief Introduction to Test-Driven Development
A Brief Introduction to Test-Driven DevelopmentA Brief Introduction to Test-Driven Development
A Brief Introduction to Test-Driven Development
 
You and your code.pdf
You and your code.pdfYou and your code.pdf
You and your code.pdf
 
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
 
Becoming a better programmer - unit testing
Becoming a better programmer - unit testingBecoming a better programmer - unit testing
Becoming a better programmer - unit testing
 
Unit Testing and TDD 2017
Unit Testing and TDD 2017Unit Testing and TDD 2017
Unit Testing and TDD 2017
 
Dunning-Krueger Effect in Software Testing
Dunning-Krueger Effect in Software TestingDunning-Krueger Effect in Software Testing
Dunning-Krueger Effect in Software Testing
 

Mehr von Reload! A/S

Mehr von Reload! A/S (20)

Skab tidlig læring i digitale projekter
Skab tidlig læring i digitale projekterSkab tidlig læring i digitale projekter
Skab tidlig læring i digitale projekter
 
Ryk i skyen eller dø - cloud erfaringer fra virkeligheden
Ryk i skyen eller dø - cloud erfaringer fra virkelighedenRyk i skyen eller dø - cloud erfaringer fra virkeligheden
Ryk i skyen eller dø - cloud erfaringer fra virkeligheden
 
Digital transformation er også et organisatorisk forandringsprojekt
Digital transformation er også et organisatorisk forandringsprojektDigital transformation er også et organisatorisk forandringsprojekt
Digital transformation er også et organisatorisk forandringsprojekt
 
Digital vs kulturel transformation med Nikolaj Opstrup fra Bonnier
Digital vs kulturel transformation med Nikolaj Opstrup fra BonnierDigital vs kulturel transformation med Nikolaj Opstrup fra Bonnier
Digital vs kulturel transformation med Nikolaj Opstrup fra Bonnier
 
Digitale projekter der fejlede
Digitale projekter der fejledeDigitale projekter der fejlede
Digitale projekter der fejlede
 
Smid planen væk og skab forretningsværdi i stedet
Smid planen væk og skab forretningsværdi i stedetSmid planen væk og skab forretningsværdi i stedet
Smid planen væk og skab forretningsværdi i stedet
 
Produktstrategi hos The Ramp/Danfoss
Produktstrategi hos The Ramp/DanfossProduktstrategi hos The Ramp/Danfoss
Produktstrategi hos The Ramp/Danfoss
 
Produktstrategi den 28.11.19
Produktstrategi den 28.11.19Produktstrategi den 28.11.19
Produktstrategi den 28.11.19
 
DevOps
DevOpsDevOps
DevOps
 
DevOps og erfaringer med Spotify-modellen hos YouSee
DevOps og erfaringer med Spotify-modellen hos YouSeeDevOps og erfaringer med Spotify-modellen hos YouSee
DevOps og erfaringer med Spotify-modellen hos YouSee
 
Scan & betal how do we do agile and what do we learn - reload 26 9-19
Scan & betal   how do we do agile and what do we learn - reload 26 9-19Scan & betal   how do we do agile and what do we learn - reload 26 9-19
Scan & betal how do we do agile and what do we learn - reload 26 9-19
 
Gaa hjem-moede 26. september 2019 agile metoder der virker
Gaa hjem-moede 26. september 2019  agile metoder der virkerGaa hjem-moede 26. september 2019  agile metoder der virker
Gaa hjem-moede 26. september 2019 agile metoder der virker
 
Det Danske Spejderkorps
Det Danske SpejderkorpsDet Danske Spejderkorps
Det Danske Spejderkorps
 
Tillidsbaseret samarbejde
Tillidsbaseret samarbejdeTillidsbaseret samarbejde
Tillidsbaseret samarbejde
 
Sådan leder du digital transformation
Sådan leder du digital transformationSådan leder du digital transformation
Sådan leder du digital transformation
 
Digital Transformation i DAC
Digital Transformation i DACDigital Transformation i DAC
Digital Transformation i DAC
 
Drupalcamp2016 dockerftw
Drupalcamp2016 dockerftwDrupalcamp2016 dockerftw
Drupalcamp2016 dockerftw
 
Smk -2015.09.30
Smk  -2015.09.30Smk  -2015.09.30
Smk -2015.09.30
 
Reload præsentation
Reload præsentationReload præsentation
Reload præsentation
 
Agile that works_and_the_tools_we_love
Agile that works_and_the_tools_we_loveAgile that works_and_the_tools_we_love
Agile that works_and_the_tools_we_love
 

Kürzlich hochgeladen

%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Kürzlich hochgeladen (20)

Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 

Pitfalls of Test Automation

  • 1. Pitfalls of Test Automation and why you should keep your head Rikke Simonsen Technical Tester 1
  • 2. My Background Education: Bachelor in Computer Science Past: Web Developer Now: Technical Tester That means: • Primarily knowledge in programming • Still learning (how to be a tester) by doing (a lot of mistakes) 2
  • 3. What I do Write specifications with customers and implement them as automated tests ! 3
  • 4. 4
  • 5. Why automate? • Faster feedback on the possible side effects of changes to the system • Faster decision making of release readiness • Less time on repetitive tasks • More time for explorative testing • Documentation of the behaviour of the system 5
  • 6. Pitfalls 1. Automate everything 2. Automation is the testers job 3. Blinded by love (to the tool) 4. Test code treated as second class 5. (Too) High expectations of ROI 6
  • 8. 8
  • 9. • No prioritizing of what to automate • Each test introduced will need to be maintained • Not all tests return value • Not all test cases can easily be automated • Some tests are better left for manual testing Be aware of 1. Automate everything 9
  • 10. • Think about return on investment • Don’t automate trivial test cases - the ones that never fail or represent any risk • Focus on the scenarios that will hurt the business if the functionality breaks • Don’t be afraid to remove tests • Make thoughtful decisions of what to automate Recommendations 1. Automate everything 10
  • 11. 2. Automation is the testers job 11
  • 12. 12
  • 13. • Thinking that automated tests are just test. Its code. • Thinking that automation is all about learning a tool. It’s not. Be aware of 2. Automation is the testers job 13
  • 14. • Automation should be done by people with good programming skills. • The tests should be defined by the tester in collaboration with domain experts. • Test automation should be a shared responsibility. Everyone on the team should contribute. Recommendations 2. Automation is the testers job 14
  • 15. 3. Blinded by love (to the tool) 15
  • 16. 16
  • 17. • Thinking the tool can do magic • Thinking the tool can solve all your problems • The urge to automate it all. • Testing everything through the GUI • Trying to fit the tests to the tool Be aware of 3. Blinded by love 17
  • 18. • Critical thinking. Analyze strengths and weaknesses of the tool. • Learn how to use a wide range of tools and select the right one for the job. • Only test things through the GUI that can’t be tested in any other way. Recommendations 3. Blinded by love 18
  • 19. 4. Test code treated as second class 19
  • 20. 20
  • 21. • Automation of use cases directly • Redundant code • Test code is just as hard and expensive to maintain as “real” code Be aware of 4. Test code treated as second class 21
  • 22. • Make the tests as small as possible • Don’t let one test depend on another • Write high level tests • Make functions reusable • Document the purpose of the test • Refactor often. Do peer review. • Use good programming practices Recommendations 4. Test code treated as second class 22
  • 24. 24
  • 25. • Expecting early ROI • Thinking automation is easy • Thinking automation can “build quality in” • Expecting cutting down costs • The maturity of the tools Be aware of 5. (Too) high expectations 25
  • 26. • Automation is a long time investment - there’s no quick fixes. • Measure the costs and results. Evaluate continuously. • Train the team in following good practices. Get external help if starting from scratch. Recommendations 5. (Too) high expectations 26
  • 27. and last.. • Start small • Be realistic • Get everyone involved • Utilize peoples special skills • Define your target • Evolve 27