An open API service indexing awesome lists of open source software.

https://github.com/sharmadhiraj/espressodemo

Simple UI Testing performed using Espresso
https://github.com/sharmadhiraj/espressodemo

android espresso espresso-tests testing ui-testing

Last synced: about 2 months ago
JSON representation

Simple UI Testing performed using Espresso

Awesome Lists containing this project

README

          

# Espresso Demo for Android

This project demonstrates UI testing using Espresso for Android applications.

### Project Overview

- The app consists of two screens: Login and Home.
- Users can input a username and password, which are validated locally.
- Error messages are displayed if the input is empty or invalid.
- Upon entering a valid username and password, the user is redirected to the Home screen.

### UI Tests

- Test to verify if the username/password fields are empty and display the appropriate error.
- Test to verify if the username/password inputs are invalid and display the correct error message.
- Test to verify if the user is redirected to the Home screen after entering valid credentials and
the Login screen is finished.

### Demo

![Demo Gif](demo.gif)

### Espresso Cheat Sheet

![Espresso Cheat Sheet](https://cdn-images-1.medium.com/max/1000/1*QMdbk0jkdlqxNH9GrZyqlQ.png)