You're doing it wrong
Upcoming SlideShare
Loading in...5
×
 

You're doing it wrong

on

  • 4,483 views

Selenium anti-patterns and how to start to address them.

Selenium anti-patterns and how to start to address them.

Statistics

Views

Total Views
4,483
Views on SlideShare
4,477
Embed Views
6

Actions

Likes
11
Downloads
156
Comments
0

4 Embeds 6

http://www.thewebhatesme.com 3
http://us-w1.rockmelt.com 1
http://twitter.com 1
http://www.scoop.it 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

You're doing it wrong You're doing it wrong Presentation Transcript

  • Selenium (You’re doing it wrong) Adam Goucher adam@element34.ca @adamgoucherThursday, April 7, 2011
  • GeneralThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I call my automation ‘tests’Thursday, April 7, 2011
  • I call my automation ‘tests’ I call my automation ‘scripts’ or ‘checks’Thursday, April 7, 2011
  • Thursday, April 7, 2011
  • My goal is to replace humans and push to production fasterThursday, April 7, 2011
  • My goal is to replace humans and push to production faster My goal is to let humans test higher quality builds with greater efficiencyThursday, April 7, 2011
  • Se-IDEThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I save my scripts recorded in Se-IDEThursday, April 7, 2011
  • I save my scripts recorded in Se-IDE I export my scripts recorded in Se-IDEThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I have locators in my scriptsThursday, April 7, 2011
  • I have locators in my scripts I have my locators in a user-extensionThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I use the default formatterThursday, April 7, 2011
  • I use the default formatter I use a custom formatterThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I email updates to formats and extensionsThursday, April 7, 2011
  • I email updates to formats and extensions I use a site-specific pluginThursday, April 7, 2011
  • Se-RCThursday, April 7, 2011
  • Thursday, April 7, 2011
  • My application is written in X so my scripts must be as wellThursday, April 7, 2011
  • My application is written in X so my scripts must be as well I write scripts the language that makes the most senseThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I inherit from my framework’s TestCase classThursday, April 7, 2011
  • I inherit from my framework’s TestCase class I have a custom class that my scripts inherit from (-- it inherits from my framework’s TestCase class)Thursday, April 7, 2011
  • Thursday, April 7, 2011
  • I have locators in my scriptsThursday, April 7, 2011
  • I have locators in my scripts I have my locators in a shared <thing>Thursday, April 7, 2011
  • Thursday, April 7, 2011
  • I use ‘brittle’ locatorsThursday, April 7, 2011
  • I use ‘brittle’ locators I use good structural locatorsThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I have static data in my scriptsThursday, April 7, 2011
  • I have static data in my scripts I feed data externally into my scriptsThursday, April 7, 2011
  • Thursday, April 7, 2011
  • Describing my scripts I use the word ‘and’Thursday, April 7, 2011
  • Describing my scripts I use the word ‘and’ Individual scripts do one thing onlyThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I use a ‘procedural’ scripting styleThursday, April 7, 2011
  • I use a ‘procedural’ scripting style Page Objects FTW!Thursday, April 7, 2011
  • Thursday, April 7, 2011
  • I build suites of scriptsThursday, April 7, 2011
  • I build suites of scripts I ‘tag’ my scripts and use my framework’s discovery methodsThursday, April 7, 2011
  • Thursday, April 7, 2011
  • My automation is different than the production codeThursday, April 7, 2011
  • My automation is different than the production code No. Its not.Thursday, April 7, 2011
  • Thursday, April 7, 2011
  • I run my scripts from my local machineThursday, April 7, 2011
  • I run my scripts from my local machine The CI server is my environment of recordThursday, April 7, 2011
  • Se-GridThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I use Se-Grid for cross browser distributionThursday, April 7, 2011
  • I use Se-Grid for cross browser distribution I have browser specific jobs in CIThursday, April 7, 2011
  • Thursday, April 7, 2011
  • I have my own Se-GridThursday, April 7, 2011
  • I have my own Se-Grid To the Cloud!Thursday, April 7, 2011
  • And finally...Thursday, April 7, 2011
  • Thursday, April 7, 2011
  • I will blindly implement what Adam saysThursday, April 7, 2011
  • I will blindly implement what Adam says I will use my brain and use what works for me and ignore what doesn’tThursday, April 7, 2011
  • Thanks!Thursday, April 7, 2011