Maintainable Automation FTW

Post on 15-May-2015

592 views 1 download

Tags:

description

My slides from Agile Tour Toronto 2011 on creating maintainable automation. Essentially, - use page objects - use id attributes rather than structural locators - implicit waits can help, but are also semi-evil - don't automate stuff you should not be automating

Transcript of Maintainable Automation FTW

Maintainable Automation FTW

Adam Goucheradam@element34.ca @adamgoucher

People whinge that their functional automation is brittle.

I say it is brittle. Because they built it that way.

Don’t be them.

Be this guy instead.

Page Objects

Slice up your pages.

Elements

Actions

Uniquely identify everything

Implicit Waits

When you automate GMail...

All Photos except Little Vader are licensed under Creative Commons. Attribution in order is as follows.

http://www.flickr.com/photos/seandreilinger/133299084/http://www.flickr.com/photos/a2gemma/1448178195/

http://www.flickr.com/photos/jwhitesmith/5377810379/http://www.flickr.com/photos/stevendepolo/5644838033/http://www.flickr.com/photos/mylesdgrant/4643883402/

http://www.flickr.com/photos/hansandcarolyn/2990014925/http://www.flickr.com/photos/e_monk/4263183119/

http://www.flickr.com/photos/botheredbybees/3152331903/http://www.flickr.com/photos/dacheeses/4730915515/http://www.flickr.com/photos/akandbdl/5087182268/

http://www.flickr.com/photos/bre/3099569707/

This deck is similarly licensed as Creative Commons - Attribution.