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

Traversing the Test Pyramid in Android

Traversing the Test Pyramid in Android

During our, me and Dubinsky, 18 months of experience of Android development, we have evolved in adopting strategy for testing Android application. A small glimpse of how we did unit and functional testing for an hybrid Android application.

Jigish Chawda

October 11, 2013
Tweet

Other Decks in Programming

Transcript

  1. Agenda !   Test Pyramid !   Why TDD? !

      Approaches of unit testing. !   Problems and solutions for unit testing. !   Sample tests. !   Functional Testing – overview. !   Various frameworks and approaches followed. !   Functional Test - demo. !   Continuous Integration
  2. Why Testing for Android? !   Stable and better quality

    applications. !   Apps are as important as the websites. !   Ubiquitous.
  3. Android Test Framework - Problems…. ACTIVITY POJO •  Low test

    coverage •  UI interactions & data binding untested. •  Framework runs on DVM •  Time consuming
  4. How can we solve these problems ? ACTIVITY POJO Virtual

    Machine JVM .class RED GREEN REFACTOR
  5. Overview of Functional Testing !   Actual Application !  

    Business Use Case !   Visual Appearance !   Realistic Mobile Challenges !   Fragmentation !   Release
  6. Functional Testing Tool Expectation !   Business language !  

    Expressive !   Keep up with times !   Robust !   Realism !   CI Support
  7. Calabash Robotium Functional Testing : Instrumented Approach Android Testing Framework

    •  DSL •  Flexible APIs •  WebView support. •  Support iOS & Android •  Continuous Integration
  8. Functional Testing : Non Instrumentation !   Not restricted to

    one App !   Custom Components !   External Interactions !   Hardware Drivers Tools !   UI Automator, HoneyDew, Appium
  9. You can reach us at !   Jigish Chawda: Twitter:

    @jigishchawda Github: https://github.com/jigishchawda !   Dubinsky Dee Soares: Twitter: @dubinskysoares Github: https://github.com/dubinskysoares