droidconIN 2016

The sixth edition of droidconIN

Android Test Lab with Jenkins, Espresso & Spoon

Submitted by Shivaraj Patil (@shivpatil) on Monday, 4 July 2016

videocam_off

Technical level

Intermediate

Section

Full talk (40 minutes)

Status

Submitted

Vote on this proposal

Login to vote

Total votes:  +10

Abstract

It’s difficult to write good & working UI tests, most of the time flaky tests put us in trouble and takes lot of the time fixing tests.
In this talk I am gonna demonstrate how we can setup a fully automated UI test lab at your workplace, write good Espresso UI tests for complex apps & run all your tests on physical as well as virtual devices. We will continuously integrate all tests with jenkin’s & spoon so that whenever you implement a new feature & do a git commit jenkins will download the project, build it, distribute it & runs all your tests on all connected devices parallally and send the results directly to your inbox with nice report showing all devices & tests passed or failed, for failed tests we will get full error report, logs, device details, screenshots etc to your email so that you can fix the issue.

Outline

Advanced Espresso
- Custom Idling resources
- Espresso Intents & Advanced Intents
- Hamcrest matchers
- Testing Adapters
- Testing Views
- Assertions
- Basics of creating your own custom matcher
- Espresso Recorder
- Robotium vs Espresso

Continuous Integration
- Jenkins setup
- Hook jenkins + Github integration + spoon
- Jenkins plugins
- Setup jenkins with spoon
- Setup Email.

Spoon
- Setup spoon
- Setup email reporting

Requirements

Android Studio 1.5+
Android SDK
Jenkins
Spoon
Github Account

Speaker bio

Self taught Android developer, worked at Triveous Skyro voice recorder(https://play.google.com/store/apps/details?id=com.triveous.recorder).
Created continuous integrated Skyro tests with Jenkins & spoon.
Conducted Android workshops.
Github: https://github.com/shivarajp
StackOverflow: http://stackoverflow.com/users/2765160/shivaraj-patil

Comments

Login with Twitter or Google to leave a comment