$30 off During Our Annual Pro Sale. View Details »

CAOS 2015 Summer: Introducing STF (Smartphone Test Farm)

CAOS 2015 Summer: Introducing STF (Smartphone Test Farm)

Open-sourcing Smartphone Test Farm
http://openstf.github.io

Gunther Brunner

July 07, 2015
Tweet

More Decks by Gunther Brunner

Other Decks in Technology

Transcript

  1. 2015 SUMMER
    #caos2015

    View Slide

  2. Günther Brunner
    @gunta85
    Smartphone Test Farm
    2015 SUMMER
    #caos2015
    Simo Kinnunen
    @sorrcu

    View Slide

  3. Most painful point
    in mobile development
    right now

    View Slide

  4. Debugging iOS devices

    View Slide

  5. Only 7 different iOS smartphones worldwide
    iPhone 6 Plus
    iPhone 6
    iPhone 5S
    iPhone 5C
    iPhone 5
    iPhone 4S
    iPod Touch 5G

    View Slide

  6. Debugging Android devices
    Solving the big picture

    View Slide

  7. More than 377 Android devices in Japan

    View Slide

  8. More than 18796 Android devices worldwide

    View Slide

  9. Physically test each device at your desk
    And ask someone to lend you

    the specific device

    you want to test

    View Slide

  10. Charge - Learn the device

    View Slide

  11. –STF
    “Life is too short to wait for a test device.”

    View Slide

  12. View Slide

  13. Remotely test every
    device from your browser

    View Slide

  14. Remotely test every
    device from your browser

    View Slide

  15. Features

    View Slide

  16. Navigation
    • Open URLs in any browser

    • Shows a realtime list of installed
    browsers

    View Slide

  17. Take Screenshots
    • Take screenshots

    • Resize in realtime

    • Share the screenshot URL

    View Slide

  18. App Upload
    • Drag & Drop .APK files

    • Upload and Install in 1 step

    • Choose Activity to launch

    View Slide

  19. Copy & Paste
    • Copy and Paste to and from the
    device

    • Any language supported

    View Slide

  20. App Shortcuts
    • Most used shortcuts

    View Slide

  21. Remote Debug
    • Debug remotely as if the device
    was plugged into your computer

    • Android Studio, Eclipse support

    • Chrome DevTools, Firefox, and
    anything that can connect with
    ADB

    View Slide

  22. Real Device Photos
    • Actual device photos to check
    how it looks physically

    View Slide

  23. Manner Mode
    • Change device manner mode
    settings

    View Slide

  24. Store Automation
    • Sign In to Google Play, etc 


    View Slide

  25. Realtime Logs
    • Display Logcat logs

    • Realtime filtering

    View Slide

  26. Search Devices
    • Query devices by Maker, OS
    version, Release date, and a lot
    more

    View Slide

  27. Advanced Input
    • Press hardware keys remotely

    • Control Power, Volume, Media
    and D-pad keys

    View Slide

  28. Hardware Details
    • Show hardware spec details

    • Battery health, temperature,
    voltage, Carrier, SIM info, Phone
    Number, Display, Network, OS
    details

    View Slide

  29. Restart Device
    • Restart device remotely

    View Slide

  30. Reverse Port
    Forwarding
    • Check local development sites
    and servers remotely

    View Slide

  31. Remote control even
    from your iPhone
    • Control Android from your own
    iOS/Android device directly

    • Supports multitouch up to 10
    fingers

    View Slide

  32. Apache 2.0 License
    https://openstf.github.io
    100% Open Source Everything

    View Slide

  33. Creating your own Devices Farm
    • Buy a USB hub
    • Connect your own Android devices

    View Slide

  34. STF Shelf

    View Slide

  35. Installing STF
    Users will not be required to install anything

    View Slide

  36. Installing (Mac OS X)
    • Install ADB
    • Install dependencies
    • Install STF
    brew install node rethinkdb graphicsmagick zeromq protobuf
    npm install -g stf
    Included in Android SDK Tools / Android Studio

    View Slide

  37. Running locally
    • Run RethinkDB
    • Run STF
    stf local
    rethinkdb

    View Slide

  38. Running on a LAN (the easy way)
    • Run RethinkDB
    • Run STF
    • Assuming your ip is 192.168.0.1 any other machine
    will be able to access STF via http://192.168.0.1:7100
    stf local —-public-ip 192.168.0.1
    rethinkdb

    View Slide

  39. Running on a LAN (the proper way)
    • https://github.com/openstf/stf/blob/master/doc/
    DEPLOYMENT.md

    View Slide

  40. https://openstf.github.io

    View Slide