“Computers are designed to do simple
repetitive tasks. The second you have humans
doing repetitive tasks, all the computers get
together late at night and laugh at you…”
- Neal Ford
Slide 21
Slide 21 text
so automate your tests
(where it makes sense)
Slide 22
Slide 22 text
testing
provides
feedback
Slide 23
Slide 23 text
testing
provides
feedback
automated
better
Slide 24
Slide 24 text
testing
provides
feedback
automated
faster
Slide 25
Slide 25 text
testing
provides
feedback
automated
broader
Slide 26
Slide 26 text
testing
provides
feedback
automated
uniform
Slide 27
Slide 27 text
No content
Slide 28
Slide 28 text
types of
automated testing
Slide 29
Slide 29 text
Mobile
App
End User
Backend
Services
Slide 30
Slide 30 text
Unit
Test
Mobile
App
End User
Backend
Services
Slide 31
Slide 31 text
Mobile
App
End User
Backend
Services
Integration
Test
Slide 32
Slide 32 text
Acceptance
Test
Mobile
App
End User
Backend
Services
Slide 33
Slide 33 text
Acceptance
Test
Mobile
App
End User
Backend
Services
The App
Slide 34
Slide 34 text
Acceptance
Unit
Integration
Slide 35
Slide 35 text
demo!
Slide 36
Slide 36 text
No content
Slide 37
Slide 37 text
I love it!
How do I do it?
Slide 38
Slide 38 text
iOS
Frank
Calabash
KIF
Appium
UIAutomation
Slide 39
Slide 39 text
Android
Calabash
Robotium
Instrumentation
Slide 40
Slide 40 text
Mobile Web
iPhoneDriver/AndroidDriver
chromedriver
headless WebDriver
webdriver-user-agent
Slide 41
Slide 41 text
No content
Slide 42
Slide 42 text
the UI testing triad
Slide 43
Slide 43 text
No content
Slide 44
Slide 44 text
select
a bit o UI
Slide 45
Slide 45 text
select
a bit o UI
simulate
interaction
with it
Slide 46
Slide 46 text
select
a bit o UI
simulate
interaction
with it
inspect state
o it
Slide 47
Slide 47 text
UI
select
interact inspect
Slide 48
Slide 48 text
Slide 49
Slide 49 text
Slide 50
Slide 50 text
Slide 51
Slide 51 text
Slide 52
Slide 52 text
Slide 53
Slide 53 text
Slide 54
Slide 54 text
UI
select
interact inspect
Slide 55
Slide 55 text
UI
select
interact
inspect
Slide 56
Slide 56 text
user simulation
touch(...)
type_into_keyboard(...)
set_orientation(...)
double_tap(...)
tap_and_hold(...)
drag_with_initial_delay(...)
Slide 57
Slide 57 text
simulating
gestures
Slide 58
Slide 58 text
UI
select
interact inspect
Slide 59
Slide 59 text
UI
select
interact inspect
Slide 60
Slide 60 text
touch(...)
Slide 61
Slide 61 text
touch(...)
what?
Slide 62
Slide 62 text
No content
Slide 63
Slide 63 text
view selectors
Slide 64
Slide 64 text
view selectors
a little language to specify which views
you are interested in
e.g. CSS or XPath
Slide 65
Slide 65 text
demo!
Slide 66
Slide 66 text
good view selectors
==
sustainable tests
Slide 67
Slide 67 text
accessibility is your
best friend
Slide 68
Slide 68 text
record-and-playback test
suites are not sustainable
Slide 69
Slide 69 text
UI
select
interact inspect
Slide 70
Slide 70 text
UI
select
interact
inspect
Slide 71
Slide 71 text
demo!
Slide 72
Slide 72 text
interact inspect
select
UI
Slide 73
Slide 73 text
putting it all together
Slide 74
Slide 74 text
demo!
Slide 75
Slide 75 text
thanks.
questions?
Slide 76
Slide 76 text
more questions?
@ph1
http://blog.thepete.net
[email protected]
me, at the bar
feedback:
rate.thepete.net
this deck:
slides.thepete.net