Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Performance Testing for Android Web Apps

Performance Testing for Android Web Apps

Use Appium to explore performance data for your Android web/hybrid apps. This talk was originally given at Front End Ops Conf 2014 in San Francisco, CA.

Jonathan Lipps

April 24, 2014
Tweet

More Decks by Jonathan Lipps

Other Decks in Programming

Transcript

  1. mobile automation made awesome
    Jonathan Lipps • Director of Ecosystem & Integrations • Sauce Labs
    @AppiumDevs • @jlipps • @saucelabs
    FE Ops • April 24, 2014

    View Slide

  2. Ecosystem &
    Integrations
    Project Lead &
    Architect
    Jonathan Lipps • Director of Ecosystem & Integrations • Sauce Labs
    @AppiumDevs • @jlipps • @saucelabs
    Performance Testing for Android HybridWeb! Apps

    View Slide

  3. appium introduction

    View Slide

  4. appium is the cross-platform
    solution for native and hybrid
    mobile automation

    View Slide

  5. The appium philosophy
    Test the same app you submit to the
    marketplace
    Write your tests in any language, using any
    framework
    Use a standard automation speci cation
    and API
    Build a large and thriving open-source
    community effort
    R1.
    R2.
    R3.
    R4.

    View Slide

  6. Platform Support
    Real devices
    Simulators
    Native apps
    Hybrid apps
    Mobile web
    Robots?!

    View Slide

  7. Automation Orchestra
    Apple Instruments & UIAutomation for iOS
    Google UiAutomator for Android (4.2.1 up)
    Selendroid for older Android
    Chromedriver for Android web & hybrid
    WebDriver interface

    View Slide

  8. View Slide

  9. Installation
    npm install -g appium && appium

    View Slide

  10. appium api

    View Slide

  11. Start/stop a session

    View Slide

  12. Switch contexts

    View Slide

  13. Get testy

    View Slide

  14. appium performance

    View Slide

  15. Automation Orchestra
    Apple Instruments & UIAutomation for iOS
    Google UiAutomator for Android (4.2.1 up)
    Selendroid for older Android
    Chromedriver for Android web & hybrid
    WebDriver interface

    View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. github://jlipps/chrome-ops

    View Slide

  20. View Slide

  21. View Slide

  22. Dear Dev,
    Sorry! You checked in code that will create
    a bad scrolling experience for users of our
    app. Please learn JS kthxbai.
    Love, the build

    View Slide

  23. Automated Testing Prevents...
    ✔ Regressions in functionality

    View Slide

  24. Automated Testing Prevents...
    ✔ Regressions in functionality
    ✔ Regressions in performance

    View Slide

  25. Automated Testing Provides...
    ✔ Explicit specification of functionality

    View Slide

  26. Automated Testing Provides...
    ✔ Explicit specification of functionality
    ✔ Explicit specification of performance

    View Slide

  27. Automated Testing Provides...
    ✔ Explicit specification of functionality
    ✔ Explicit specification of performance
    ✔ Historical performance statistics

    View Slide

  28. Demo

    View Slide

  29. View Slide

  30. appium scale

    View Slide

  31. Sauce Labs is great for scale
    when you need to run a lot of
    appium tests in your build

    View Slide

  32. appium recap

    View Slide

  33. ✔ appium: mobile native/hybrid automation

    View Slide

  34. ✔ appium: mobile native/hybrid automation
    ✔ Talk to appium server with HTTP client

    View Slide

  35. ✔ appium: mobile native/hybrid automation
    ✔ Talk to appium server with HTTP client
    ✔ Get performance logs

    View Slide

  36. ✔ appium: mobile native/hybrid automation
    ✔ Talk to appium server with HTTP client
    ✔ Get performance logs
    ✔ Turn logs into useful data using chrome-ops

    View Slide

  37. ✔ appium: mobile native/hybrid automation
    ✔ Talk to appium server with HTTP client
    ✔ Get performance logs
    ✔ Turn logs into useful data using chrome-ops
    ✔ Add performance specs to your build!

    View Slide

  38. github://jlipps/feoc2014

    View Slide

  39. Questions?
    http://appium.io
    https://github.com/appium/appium
    @AppiumDevs • @jlipps • @saucelabs

    View Slide

  40. Thanks!
    http://appium.io
    https://github.com/appium/appium
    @AppiumDevs • @jlipps • @saucelabs

    View Slide