the restless are getting native: seleniumconf 2012
DESCRIPTION
Presented at SeleniumConf 2012 in London, this talk summarizes my experiences attempting to write automated functional tests for an iOS application.TRANSCRIPT
![Page 1: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/1.jpg)
The Restless Are Getting Native
Lessons Learnt While Automating an iOS App
Wednesday, April 18, 12
![Page 2: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/2.jpg)
What’s the point of automated tests?
• To catch regression bugs
• To do so faster and more reliably than a human
Wednesday, April 18, 12
![Page 3: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/3.jpg)
Wednesday, April 18, 12
![Page 4: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/4.jpg)
Wednesday, April 18, 12
![Page 5: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/5.jpg)
Wednesday, April 18, 12
![Page 6: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/6.jpg)
Wednesday, April 18, 12
![Page 7: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/7.jpg)
What’s the biggest win of automated tests?
FASTER FEEDBACK
Wednesday, April 18, 12
![Page 8: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/8.jpg)
Wednesday, April 18, 12
![Page 9: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/9.jpg)
Wednesday, April 18, 12
![Page 10: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/10.jpg)
Wednesday, April 18, 12
![Page 11: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/11.jpg)
</rant>
Wednesday, April 18, 12
![Page 12: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/12.jpg)
iOS Automation Tools
• NativeDriver http://nativedriver.googlecode.com/
• KIF https://github.com/square/KIF
• Frank http://www.testingwithfrank.com/
• MonkeyTalk http://www.gorillalogic.com/
• Calabash https://github.com/calabash/calabash-ios
• iCuke https://github.com/unboxed/icuke
• UISpec http://uispec.googlecode.com/
Wednesday, April 18, 12
![Page 13: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/13.jpg)
Why NativeDriver?
Familiar API
Wednesday, April 18, 12
![Page 14: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/14.jpg)
Why NativeDriver?
Android
Wednesday, April 18, 12
![Page 15: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/15.jpg)
Why NativeDriver?
“Hybrid” Apps
Wednesday, April 18, 12
![Page 16: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/16.jpg)
NativeDriver Architecture
Wednesday, April 18, 12
![Page 17: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/17.jpg)
NativeDriver Test Support Code
Wednesday, April 18, 12
![Page 18: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/18.jpg)
NativeDriver Test Code
Wednesday, April 18, 12
![Page 19: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/19.jpg)
The ugly bits
•What if NativeDriver doesn’t support a widget I need to automate?
• How do I build from the command line?
• How do I launch the simulator from the command line?
Wednesday, April 18, 12
![Page 20: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/20.jpg)
Challenges
Wednesday, April 18, 12
![Page 21: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/21.jpg)
Challenge: Cultural Differences
Wednesday, April 18, 12
![Page 22: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/22.jpg)
Web Test Automation
• Selenium, Watir, Capybara, HTMLUnit, etc.
• Test automation is commonplace
Wednesday, April 18, 12
![Page 23: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/23.jpg)
Wednesday, April 18, 12
![Page 24: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/24.jpg)
Real Developers Don’t Write Tests
Wednesday, April 18, 12
![Page 25: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/25.jpg)
Wednesday, April 18, 12
![Page 26: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/26.jpg)
Challenge:Language Choice
Wednesday, April 18, 12
![Page 27: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/27.jpg)
Recommendations
Wednesday, April 18, 12
![Page 28: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/28.jpg)
Recommendation:Show Value Early
Wednesday, April 18, 12
![Page 29: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/29.jpg)
Recommendation: Surprise and
Delight
Wednesday, April 18, 12
![Page 30: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/30.jpg)
Wednesday, April 18, 12
![Page 31: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/31.jpg)
Recommendation: Know Your Limits
Wednesday, April 18, 12
![Page 32: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/32.jpg)
The Future of NativeDriver
Wednesday, April 18, 12
![Page 33: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/33.jpg)
Wednesday, April 18, 12
![Page 34: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/34.jpg)
The Future of Mobile Testing
...is in your hands
Wednesday, April 18, 12
![Page 35: The Restless Are Getting Native: SeleniumConf 2012](https://reader034.vdocuments.mx/reader034/viewer/2022052618/5549aa14b4c905a6758b54b4/html5/thumbnails/35.jpg)
Thank you!
dante AT cochiva DAWT com@dantebriones
Wednesday, April 18, 12