Maintainable Automation FTW

14
Maintainable Automation FTW Adam Goucher [email protected] @adamgoucher

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

Page 1: Maintainable Automation FTW

Maintainable Automation FTW

Adam [email protected] @adamgoucher

Page 2: Maintainable Automation FTW

People whinge that their functional automation is brittle.

Page 3: Maintainable Automation FTW

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

Page 4: Maintainable Automation FTW

Don’t be them.

Page 5: Maintainable Automation FTW

Be this guy instead.

Page 6: Maintainable Automation FTW

Page Objects

Page 7: Maintainable Automation FTW

Slice up your pages.

Page 8: Maintainable Automation FTW

Elements

Page 9: Maintainable Automation FTW

Actions

Page 10: Maintainable Automation FTW

Uniquely identify everything

Page 11: Maintainable Automation FTW

Implicit Waits

Page 12: Maintainable Automation FTW

When you automate GMail...

Page 13: Maintainable Automation FTW
Page 14: Maintainable Automation FTW

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.