Contenu connexe Similaire à You're doing it wrong (20) Plus de Adam Goucher (20) You're doing it wrong1. Selenium
(You’re doing it wrong)
Adam Goucher
adam@element34.ca
@adamgoucher
Thursday, April 7, 2011
4. I call my automation ‘tests’
Thursday, April 7, 2011
5. I call my automation ‘tests’
I call my automation ‘scripts’ or
‘checks’
Thursday, April 7, 2011
7. My goal is to replace humans and
push to production faster
Thursday, April 7, 2011
8. My goal is to replace humans and
push to production faster
My goal is to let humans test higher
quality builds with greater efficiency
Thursday, April 7, 2011
11. I save my scripts recorded in Se-IDE
Thursday, April 7, 2011
12. I save my scripts recorded in Se-IDE
I export my scripts recorded in Se-IDE
Thursday, April 7, 2011
15. I have locators in my scripts
I have my locators in a user-extension
Thursday, April 7, 2011
17. I use the default formatter
Thursday, April 7, 2011
18. I use the default formatter
I use a custom formatter
Thursday, April 7, 2011
21. I email updates to formats and
extensions
I use a site-specific plugin
Thursday, April 7, 2011
24. My application is written in X so my
scripts must be as well
Thursday, April 7, 2011
25. My application is written in X so my
scripts must be as well
I write scripts the language that makes
the most sense
Thursday, April 7, 2011
27. I inherit from my framework’s
TestCase class
Thursday, April 7, 2011
28. 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
31. I have locators in my scripts
I have my locators in a shared <thing>
Thursday, April 7, 2011
34. I use ‘brittle’ locators
I use good structural locators
Thursday, April 7, 2011
37. I have static data in my scripts
I feed data externally into my scripts
Thursday, April 7, 2011
40. Describing my scripts I use the word
‘and’
Individual scripts do one thing only
Thursday, April 7, 2011
42. I use a ‘procedural’ scripting style
Thursday, April 7, 2011
43. I use a ‘procedural’ scripting style
Page Objects FTW!
Thursday, April 7, 2011
46. I build suites of scripts
I ‘tag’ my scripts and use my
framework’s discovery methods
Thursday, April 7, 2011
49. My automation is different than the
production code
No. Its not.
Thursday, April 7, 2011
51. I run my scripts from my local
machine
Thursday, April 7, 2011
52. I run my scripts from my local
machine
The CI server is my environment of
record
Thursday, April 7, 2011
55. I use Se-Grid for cross browser
distribution
Thursday, April 7, 2011
56. I use Se-Grid for cross browser
distribution
I have browser specific jobs in CI
Thursday, April 7, 2011
58. I have my own Se-Grid
Thursday, April 7, 2011
59. I have my own Se-Grid
To the Cloud!
Thursday, April 7, 2011
63. I will blindly implement what Adam
says
I will use my brain and use what works
for me and ignore what doesn’t
Thursday, April 7, 2011