mfdeveloper / android-uitest

A basic android UI test example application using Espresso framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android UI tests - Example Application

This is a Android example app to study purposes about UI instrumentation tests, using Espresso framework.

For this example, we are using the Login Activity Android Studio template

Screenshot

First Screen

Getting Started

  1. Clone this repo

  2. With Android Studio, click on File => Open and select the cloned folder

  3. Open the class LoginBehaviorTest and click on green arrow beside of the method performAuth_sameActivity()

    Or, right-click on the test class in the projects panel, and select Run.

    Obs: More explanation about running tests, see this link: Running Espresso tests

  4. Choice a avd emulator. The UI test will run like the screen below:

Login UI Test

Links: tutorials and questions

The refence links below contains tutorials and helpers about Android testing.

Google (official documentation)
Questions - Errors, Exceptions and Doubts
Tutorials

About

A basic android UI test example application using Espresso framework


Languages

Language:Java 100.0%