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

UI Testing + Kakao

UI Testing + Kakao

Avatar for JSBerrocoso

JSBerrocoso

November 21, 2017
Tweet

Other Decks in Programming

Transcript

  1. INTRODUCTION CATEGORIES OF ANDROID UNIT TESTING ANDROID TESTING SUPPORT LIBRARY

    ESPRESSO ESPRESSO RECORDER OTHERS UITESTING FRAMEWORKS KAKAO KAKAO vs ESPRESSO ESPRESSO WITH PAGE OBJECT PATTERN SHOW ME THE CODE RESOURCES
  2. CATEGORIES OF ANDROID UNIT TESTING Local Unit test Intrumentation test

    • src/test • Run on JVM • 70-80% coverage • src/androidTest • Run on Android System • 20% coverage
  3. ESPRESSO: What is? • Open source UI Testing framework created

    by Google • A great way to integration test applications • To write concise, beautiful, and reliable Android UI tests.
  4. ESPRESSO: RECORDER • Create UI tests without writing any test

    code. • White tests based on Espresso Testing Framework • Create and save UI Interactions and assertions on View elements
  5. https://github.com/agoda-com/Kakao KAKAO: What is? • Nice and simple DSL for

    Espresso written in Kotlin • More concise, beautiful, and reliable than Espresso • Readability, Reusability, Extensible DSL • More faster than Espresso
  6. Repo: https://goo.gl/GFpvNA PAGE OBJECT PATTERN • Based on screen (page)

    elements agrupation • High reusability • Martin Fowler: https://goo.gl/oykNxo
  7. RESOURCES Kakao - how to make UI testing great again

    https://goo.gl/bW9Ehi Android Testing Support Library https://goo.gl/AkTVG7 Testing Codelab https://goo.gl/h5cnMW User Interface testing with Espresso https://goo.gl/y3nZCe Testing with kotlin https://goo.gl/UzQSif AdapterViews and Espresso https://goo.gl/6Hb2ym Indle resources https://goo.gl/yzEdYC
  8. THANKS Dr. Zamenhof 36 bis, 1°A 28027 Madrid - Spain

    T. +34 653344412 [email protected] José Santiago Berrocoso Sánchez github: JSBerrocoso