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.
What You Will Learn
• 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
Who This Book Is For
Engineers with experience of Android test automation will benefit from this book
使用Google Espresso for Android编写Android用户界面(UI)测试。你将涵盖使用Espresso测试框架编写功能性UI自动化测试的所有主要主题,包括运行自动化测试的不同方式,以简单和可维护的方式构建测试项目,以及使用有助于以较少的努力实现自动化测试的工具。
Android Espresso Revealed解释了使用Espresso编写自动化UI测试的基础知识,以及如何为高级功能定制框架。作者提供了Java和Kotlin的例子,包括处理UI测试中的网络操作,测试应用程序的可访问性,实施监督的猴子测试,等等。
你将会学到什么
- 用Kotlin和Java编写Espresso测试,包括测试项目从Java到Kotlin的迁移
- 在被测试的应用程序中测试网络视图
- 使用Espresso来设置测试设备或模拟器,以尽量减少测试的不稳定性,并在Firebase测试实验室运行测试
- 用Espresso-Intents验证和存根意图
- 将测试项目转移到AndroidX
- 在Espresso测试执行期间测试通知或对第三方应用程序进行操作
- 在测试项目中应用不同的测试架构方法,以减少维护工作量
- 使用Espresso和UIAutomator实施有监督的猴子测试
本书适用对象
具有Android测试自动化经验的工程师将从本书中受益
相关文库
计算机行业深度报告:DeepSeek系列报告之AI+医疗
2291
类型:行研
上传时间:2025-02
标签:计算机、DeepSeek、AI+医疗)
语言:中文
金额:5积分
电子书-Linux是如何工作的How Linux Works(英)
1570
类型:电子书
上传时间:2022-04
标签:计算机、操作系统、内部结构)
语言:英文
金额:5积分
《网络是怎样连接的》-75页读书笔记
1490
类型:读书笔记
上传时间:2025-01
标签:网络、计算机、科普)
语言:中文
金额:9.9元
《面向初学者的机器学习》Machine Learning For Absolute Beginners
1184
类型:电子书
上传时间:2021-05
标签:机器学习、计算机、算法)
语言:英文
金额:5积分
电子书-用FastAPI构建数据科学应用:用Python开发、管理和部署高效的机器学习应用程序(英)
1161
类型:电子书
上传时间:2022-03
标签:计算机、数据库、人脸检测系统)
语言:英文
金额:5积分
电子书-软件架构师手册:通过实施有效的架构概念成为成功的软件架构师(英)
1140
类型:电子书
上传时间:2021-11
标签:计算机、软件架构 、软件)
语言:英文
金额:5积分
电子书-DAMA数据管理知识体系指南(DAMA DMBOK)(英)
1107
类型:电子书
上传时间:2022-03
标签:计算机、数据库、数据管理)
语言:英文
金额:5积分
计算机行业深度研究报告:ChatGPT,开启AI新纪元-20230201-31页
1051
类型:行研
上传时间:2023-02
标签:计算机、处理器)
语言:中文
金额:免费
电子书-高维数据统计:方法、理论与应用(英)
993
类型:电子书
上传时间:2021-10
标签:计算机、统计学、数据统计)
语言:英文
金额:5积分
计算机行业:多模态大模型技术演进及研究框架-20230318-51页
938
类型:行研
上传时间:2023-03
标签:计算机、虚拟人、智能人)
语言:中文
金额:免费
积分充值
30积分
6.00元
90积分
18.00元
150+8积分
30.00元
340+20积分
68.00元
640+50积分
128.00元
990+70积分
198.00元
1640+140积分
328.00元
微信支付
余额支付
积分充值
应付金额:
0 元
请登录,再发表你的看法
登录/注册