Open-sourcing Smartphone Test Farm http://openstf.github.io
2015 SUMMER#caos2015
View Slide
Günther Brunner@gunta85Smartphone Test Farm2015 SUMMER#caos2015Simo Kinnunen@sorrcu
Most painful pointin mobile developmentright now
Debugging iOS devices
Only 7 different iOS smartphones worldwideiPhone 6 PlusiPhone 6iPhone 5SiPhone 5CiPhone 5iPhone 4SiPod Touch 5G
Debugging Android devicesSolving the big picture
More than 377 Android devices in Japan
More than 18796 Android devices worldwide
Physically test each device at your deskAnd ask someone to lend you the specific device you want to test
Charge - Learn the device
–STF“Life is too short to wait for a test device.”
Remotely test everydevice from your browser
Features
Navigation• Open URLs in any browser• Shows a realtime list of installedbrowsers
Take Screenshots• Take screenshots• Resize in realtime• Share the screenshot URL
App Upload• Drag & Drop .APK files• Upload and Install in 1 step• Choose Activity to launch
Copy & Paste• Copy and Paste to and from thedevice• Any language supported
App Shortcuts• Most used shortcuts
Remote Debug• Debug remotely as if the devicewas plugged into your computer• Android Studio, Eclipse support• Chrome DevTools, Firefox, andanything that can connect withADB
Real Device Photos• Actual device photos to checkhow it looks physically
Manner Mode• Change device manner modesettings
Store Automation• Sign In to Google Play, etc
Realtime Logs• Display Logcat logs• Realtime filtering
Search Devices• Query devices by Maker, OSversion, Release date, and a lotmore
Advanced Input• Press hardware keys remotely• Control Power, Volume, Mediaand D-pad keys
Hardware Details• Show hardware spec details• Battery health, temperature,voltage, Carrier, SIM info, PhoneNumber, Display, Network, OSdetails
Restart Device• Restart device remotely
Reverse PortForwarding• Check local development sitesand servers remotely
Remote control evenfrom your iPhone• Control Android from your owniOS/Android device directly• Supports multitouch up to 10fingers
Apache 2.0 Licensehttps://openstf.github.io100% Open Source Everything
Creating your own Devices Farm• Buy a USB hub• Connect your own Android devices
STF Shelf
Installing STFUsers will not be required to install anything
Installing (Mac OS X)• Install ADB• Install dependencies• Install STFbrew install node rethinkdb graphicsmagick zeromq protobufnpm install -g stfIncluded in Android SDK Tools / Android Studio
Running locally• Run RethinkDB• Run STFstf localrethinkdb
Running on a LAN (the easy way)• Run RethinkDB• Run STF• Assuming your ip is 192.168.0.1 any other machinewill be able to access STF via http://192.168.0.1:7100stf local —-public-ip 192.168.0.1rethinkdb
Running on a LAN (the proper way)• https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md
https://openstf.github.io