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测试自动化经验的工程师将从本书中受益
相关文库
计算机行业:AIGC行业应用畅想-华福证券
2806
类型:行研
上传时间:2023-04
标签:计算机、AIGC)
语言:中文
金额:5积分
零信任SaaS,美国经验与中国特色-20200802-天风证券-42页
2657
类型:行研
上传时间:2020-08
标签:计算机、saas)
语言:中文
金额:免费
计算机行业安全服务:网络安全行业的制高点-20210221-方正证券-64页
2376
类型:行研
上传时间:2021-02
标签:计算机、网络安全)
语言:中文
金额:免费
2021年IEEE高新能计算论文合集
2367
类型:学习教育
上传时间:2021-05
标签:高性能计算、学术、计算机)
语言:中文
金额:30积分
计算机行业专题研究:MES深度报告下篇,7大海外巨头,6家中国领军全梳理-20201015-天风证券-55页
2276
类型:行研
上传时间:2020-10
标签:计算机、MES)
语言:中文
金额:免费
硬件推动VRAR行业变革,Metaverse展望未来-20210521-东北证券-39页
2220
类型:行研
上传时间:2021-05
标签:VR、AR、硬件)
语言:中文
金额:5积分
VRAR行业深度报告系列二(硬件篇):产业链日趋成熟,行业爆发在即-20210521-中信建投-38页
1902
类型:行研
上传时间:2021-05
标签:VR、AR、硬件)
语言:中文
金额:免费
计算机行业:信创产业发展研究-20220510-东吴证券-84页
1725
类型:行研
上传时间:2022-05
标签:计算机、信创)
语言:中文
金额:免费
计算机行业对于低代码工具发展的思考:AI降低软件使用门槛,交付自动化提升工具价值
1602
类型:行研
上传时间:2023-06
标签:计算机、AI、低代码)
语言:中文
金额:5积分
计算机行业:工业软件,研究框架-20200618-华泰证券-132页
1471
类型:行研
上传时间:2020-07
标签:计算机、工业软件、券商报告)
语言:中文
金额:免费
积分充值
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 元
请登录,再发表你的看法
登录/注册