Android Espresso Revealed: Writing Automated Ui Tests (揭開 Android Espresso 的面紗:撰寫自動化 UI 測試)

Zelenchuk, Denys

  • 出版商: Apress
  • 出版日期: 2019-03-01
  • 售價: $2,350
  • 貴賓價: 9.5$2,233
  • 語言: 英文
  • 頁數: 308
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484243145
  • ISBN-13: 9781484243145
  • 相關分類: Android使用者介面 UI
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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 ForEngineers with experience of Android test automation will benefit from this book

商品描述(中文翻譯)

撰寫 Android 使用者介面 (UI) 測試,使用 Google Espresso 進行 Android 測試。您將涵蓋使用 Espresso 測試框架撰寫功能性 UI 自動化測試的所有主要主題,包括運行自動化測試的不同方式、以簡單且可維護的方式架構測試專案,以及使用有助於以更少努力實現自動化測試的工具。《Android Espresso Revealed》解釋了使用 Espresso 撰寫自動化 UI 測試的基本知識,以及如何自訂框架以實現進階功能。作者提供了 Java 和 Kotlin 的範例,並包括在 UI 測試中處理網路操作、測試應用程式的可及性、實施監督的猴子測試等內容。

您將學到的內容:
- 使用 Kotlin 和 Java 撰寫 Espresso 測試,包括從 Java 遷移到 Kotlin 的測試專案
- 測試應用程式內的網頁視圖
- 使用 Espresso 設置測試設備或模擬器,以最小化測試不穩定性並在 Firebase Test Lab 中運行測試
- 使用 Espresso-Intents 驗證和模擬意圖
- 將測試專案移至 AndroidX
- 在 Espresso 測試執行期間測試通知或操作第三方應用程式
- 對測試專案應用不同的測試架構方法,以減少維護工作
- 使用 Espresso 和 UIAutomator 實施監督的猴子測試

本書適合對象:
具有 Android 測試自動化經驗的工程師將從本書中受益。

作者簡介

Denys Zelenchuk's professional career as Test Engineer started in Poland in 2010. Starting from 2011, he has been involved in testing mobile applications. He was working at companies like Tieto Poland, XING (Hamburg, Germany) and currently is working and living in Zurich Switzerland in Numbrs Personal Finance AG company. As of October 2013, he's been using Espresso for Android test automation framework to write automated tests.

作者簡介(中文翻譯)

Denys Zelenchuk 的專業生涯作為測試工程師始於2010年的波蘭。自2011年起,他開始參與移動應用程式的測試。他曾在像 Tieto Poland、XING(德國漢堡)等公司工作,目前在瑞士蘇黎世的 Numbrs Personal Finance AG 公司工作和生活。自2013年10月以來,他一直使用 Espresso 作為 Android 測試自動化框架來編寫自動化測試。