1.

Record Nr.

UNINA9910338007303321

Autore

Zelenchuk Denys

Titolo

Android Espresso Revealed : Writing Automated UI Tests / / by Denys Zelenchuk

Pubbl/distr/stampa

Berkeley, CA : , : Apress : , : Imprint : Apress, , 2019

ISBN

1-4842-4315-3

Edizione

[1st ed. 2019.]

Descrizione fisica

1 online resource (314 pages)

Disciplina

005.3

Soggetti

Mobile computing

Java (Computer program language)

Programming languages (Electronic computers)

Mobile Computing

Java

Programming Languages, Compilers, Interpreters

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Nota di bibliografia

Includes bibliographical references.

Nota di contenuto

1. Getting started with Espresso for Android -- 2. Customizing Espresso for Our Needs -- 3. Writing Espresso Tests with Kotlin -- 4. Handling network operations or long-lasting actions -- 5. Verifying and stubbing intents with IntentMatchers -- 6. Testing web views -- 7. Accessibility testing -- 8. Espresso and UIAutomator -- 9. Dealing with runtime system actions and permissions -- 10. Test automation tooling -- 11. Screen Object Design Pattern in Android UI tests -- 12. Testing Robot Patterns with Espresso and Kotlin -- 13. Supervised Monkey Tests with Espresso and UI Automator -- 14. AndroidX Test Library -- 15. Improving Productivity and Testing Unusual Components.

Sommario/riassunto

Write Android user interface (UI) tests using Google Espresso for Android. You’ll cover all the major topics of writing functional UI automated tests using the Espresso testing framework, including different ways of running automated tests, architecting test projects in an easy and maintainable way, and using tools which help to implement automated tests with less effort. Android Espresso Revealed explains the basics of using Espresso to write automated UI tests, and how to customize the framework for advanced functionality. The author



provides examples in both Java and Kotlin, and includes dealing with network operations in UI tests, testing application accessibility, implementing supervised monkey tests, and more. You will: Write Espresso tests with both Kotlin and Java including test project migration from Java to Kotlin Test web views inside the application under test Use Espresso to set up test devices or emulators to minimize test flakiness and run tests in Firebase Test Lab Verify and stub intents with Espresso-Intents Move test projects to AndroidX Test notifications or operate on third-party apps during Espresso test execution Apply different test architecture approaches to the test project to reduce maintenance effort Implement supervised monkey tests using Espresso and UIAutomator.