Want to test Android Apps ? , Go for Espresso !!!
Use Cases and Deployment Scope
We use Espresso to automate Android Automation tests on Android Tab, so the app is installed on retail store entrances which helps customers to locate the products and services and help them to save time in locating the product without any issue, Since in all the stores we have Android tablets install so Espresso is the perfect choice to automate tests, as it is speedy and reliable.
Pros
- Automatic Waiting logic before failing any test
- Black box and Grey box testing
- Easy to Understand and Very Flexible
- Supported Java And Kotlin
- Fewer Efforts compare to other Mobile Automation Frameworks
- Execution is very Fast
Cons
- As Espresso works on the ideal thread if the threads are not handled properly by the developing team it can lead to challenges in the execution of your tests.
- Depends more on the developer's code
- we cannot develop tests as individual frameworks, we share the repository with developers.
- We need to be cautious while making changes in the tests, as we share same repository
Most Important Features
- Built-in Android Espresso API to automate tests
- Grey box testing, we can verify the developer's code from the tests
- Easy to learn, so that the new team member can contribute
- Image Verification
- Color Verification
- Text Font Verification
Return on Investment
- As it is an Open Source tool it cost-effective
- East to use, so that you can train many new Joiners to start delivering the tasks
- Maintainance is very low, as we depend on the developer's layout files we can reuse their elements
- We can cover most of the scenarios which helps in the coverage of the tests
Alternatives Considered
Appium
Other Software Used
Appium, Jira Software, Oracle Java SE, Selenium, REST Assured, Apache Maven

