Automated UI Testing and Monitoring
for your Mobile Apps
Greg Shackles
@gshackles
[email protected]
github.com/gshackles
speakerdeck.com/u/gshackles
Slide 2
Slide 2 text
Ship It
A Cautionary Tale
Slide 3
Slide 3 text
No content
Slide 4
Slide 4 text
No content
Slide 5
Slide 5 text
No content
Slide 6
Slide 6 text
No content
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
No content
Slide 10
Slide 10 text
The Double-Decker Couch of Apps
by Vitruvius
This app is just…the worst.
Slide 11
Slide 11 text
No content
Slide 12
Slide 12 text
Don’t Be This Developer
Slide 13
Slide 13 text
Set Yourself Up to Deliver Awesomeness
Slide 14
Slide 14 text
Testing Approaches
Authentic User Tests
Simplistic Tests
Rapid
Iteration
Long
Cycles
Slide 15
Slide 15 text
Testing Approaches
Authentic User Tests
Simplistic Tests
Rapid
Iteration
Long
Cycles
Beta Testing
Slide 16
Slide 16 text
Testing Approaches
Authentic User Tests
Simplistic Tests
Rapid
Iteration
Long
Cycles
Beta Testing
Manual Testing
Slide 17
Slide 17 text
Testing Approaches
Authentic User Tests
Simplistic Tests
Rapid
Iteration
Long
Cycles
Beta Testing
Manual Testing
Unit Testing
Slide 18
Slide 18 text
Testing Approaches
Authentic User Tests
Simplistic Tests
Rapid
Iteration
Long
Cycles
Beta Testing
Manual Testing
Unit Testing
Automated
UI Testing
Slide 19
Slide 19 text
Xamarin.UITest
Slide 20
Slide 20 text
Xamarin.UITest
• Write UI tests in C# or F#
Slide 21
Slide 21 text
Xamarin.UITest
• Write UI tests in C# or F#
• iOS and Android (with shared test code)
Slide 22
Slide 22 text
Xamarin.UITest
• Write UI tests in C# or F#
• iOS and Android (with shared test code)
• Run on simulator and devices
Slide 23
Slide 23 text
Xamarin.UITest
• Write UI tests in C# or F#
• iOS and Android (with shared test code)
• Run on simulator and devices
• Compatible with all apps
• Native
• Hybrid
• Xamarin
Slide 24
Slide 24 text
No content
Slide 25
Slide 25 text
No content
Slide 26
Slide 26 text
Demo
Xamarin.UITest
Slide 27
Slide 27 text
Real Talk
There are a lot of devices out there
Slide 28
Slide 28 text
Android OpenSignal, August 2014
Slide 29
Slide 29 text
Android: API Level 14+ (Ice Cream Sandwich)
and growing!
“…only 16% of people will try a failing app
more than twice.”
Source: raygun.io/blog/2015/02/software-errors-killing-app
Slide 38
Slide 38 text
Be Proactive, Not Reactive
Slide 39
Slide 39 text
Be Proactive, Not Reactive
• Most users won’t actually report problems
Slide 40
Slide 40 text
Be Proactive, Not Reactive
• Most users won’t actually report problems
• Those who do often do so through negative app reviews
Slide 41
Slide 41 text
Be Proactive, Not Reactive
• Most users won’t actually report problems
• Those who do often do so through negative app reviews
• Get notified as it happens, and to whom it happens
• Crashes
• Errors
• Analytics