wrong reasons to automate for slideshare

12
WRONG REASONS TO AUTOMATE! ` Nol Rananand 22 Aug 2014 1 2nd TPSE

Upload: nol-rananand

Post on 03-Jul-2015

64 views

Category:

Presentations & Public Speaking


0 download

DESCRIPTION

Presentation at the 2nd Thailand Practical Software Engineering (TPSE) conference. August 2014.

TRANSCRIPT

Page 1: Wrong reasons to automate for slideshare

WRONG REASONS TO AUTOMATE!`Nol Rananand

22 Aug 201412nd TPSE

Page 2: Wrong reasons to automate for slideshare

Some good testing objectives don’t work

for test automation…

2

Page 3: Wrong reasons to automate for slideshare

#1 Find More Bugs

Reasoning• Testing should find bugs. Run more test Find more bugs

Reality• Automation good for regression test. Regression test looks

for unexpected bugs in unchanged software.• Automation free up testers to find more bugs via manual

test.

Better Objective• Automation helps find more

regression bugs

32nd TPSE

Page 4: Wrong reasons to automate for slideshare

#2 Run more testsReasoning

• Test more gives better test coverage

Reality

• Quality of tests that counts, not quantity

• Automating poor tests gives you maintenance overhead with little return. “Automated chaos is just faster chaos” (D. Graham)

Better Objective

• Select set of

valuable

manual tests

to automate

42nd TPSE

Page 5: Wrong reasons to automate for slideshare

#3 Automate 100% of testing

2nd TPSE 5

Reasoning• To measure progress of automation effort

Reality• Some attributes of software , such as usability, are better

tested by human• Another benefit from automation is in form of tool support

Better ObjectiveMeasure how automation provides valuable support to testing• How testers rate support provided by Automation team• # of addn’l verifications made that cannot be done manually

Page 6: Wrong reasons to automate for slideshare

#4 Reduce Testing staff

Reasoning• Automate tests replaces manual tests hence don’t need as many staff.

Can save staff cost.

Reality• More staff actually needed since need staff with script development skills

to build and maintain scripts/framework, analyze results• Automation frees up testers to

contribute at a higher level

Better Objective• Total cost of automation effort is less

than total test effort saved by automation.

62nd TPSE

Page 7: Wrong reasons to automate for slideshare

Next is my own personal experience

Don’t try this at your work!

7

Page 8: Wrong reasons to automate for slideshare

#5 Put testers you have with some coding skills in automation team

Reasoning• What’s the quicker way to start test automation with the

testers you have?

RealityIf testers don’t have sufficient coding skills, you will get• Spaghetti test scripts. Impossible to share & maintain them• Lack of appropriate test automation framework

Better Approach• Have a small “toolsmith” team to work with testers to

develop automate test scripts.

8

Page 9: Wrong reasons to automate for slideshare

#6 Focus on automate E2E test

Reasoning• Convert existing

manual functional test cases to automate scripts

Reality• Such E2E test scripts

are brittle and slow to run

• They don’t help improve quality of development process

Better Objective• Make sure your

automation suite is pyramid shape

2nd TPSE 9

Page 10: Wrong reasons to automate for slideshare

Summary of Key Points

• Quality of tests determines whether or not bugs are found, and has little to do with automation

• Try not to go for 100% automation

• Test automation cannot replace human testers

• Better to have “toolsmiths” develop good test automation framework and leave scripting to testers

• Turn your automation ice-cream cone to pyramid

2nd TPSE 10

Page 11: Wrong reasons to automate for slideshare

Some Good References

1. That’s No Reason to Automate by Dorothy Graham and Mark Fewster: http://www.dorothygraham.co.uk/downloads/generalPdfs/NoReasonAut.pdf

2. Lessons in Test Automation By Elfriede Dustin: http://www.stickyminds.com/sitewide.asp?ObjectId=1802&ObjectType=ART&Function=edetail

3. Agile test automation by James Bach: http://www.satisfice.com/articles/agileauto-paper.pdf

2nd TPSE 11

Page 12: Wrong reasons to automate for slideshare

The End

2nd TPSE 12

To Automators out there,

don’t give up!