Learning Android Application Testing

Paul Blundell, Diego Torres Milano

  • 出版商: Packt Publishing
  • 出版日期: 2015-03-30
  • 售價: $2,180
  • 貴賓價: 9.5$2,071
  • 語言: 英文
  • 頁數: 331
  • 裝訂: Paperback
  • ISBN: 1784395331
  • ISBN-13: 9781784395339
  • 相關分類: Android
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Improve your Android applications through intensive testing and debugging

About This Book

  • Focus on Android instrumentation testing to ensure full application coverage
  • Apply testing techniques and utilize tools to improve Android application development
  • Build intensively tested and bug free Android applications

Who This Book Is For

If you are an Android developer looking to test your applications or optimize your application development process, then this book is for you. No previous experience in application testing is required.

In Detail

This book is a practical introduction to readily available techniques, frameworks, and tools to thoroughly test your Android applications and improve project development.

You will learn the Java testing framework, how to create a test case and debug it. Next, you'll be walked through using the Android SDK to test using the ActivityTestCase and ActivityUnitTest classes as well as discussing popular testing libraries. Through examples you will test files, databases, ContentProviders, exceptions, services, and test your app using Espresso. You will discover how to manage your Android testing environment using Android emulators, deep dive into how adb and the emulator can super charge your testing automation, and also test user interactions with monkeyrunner. You will be guided through different testing methodologies including Test-driven Development and Behavior-driven Development and will learn how to perform Unit and Functional testing applying them to your Android projects. You will also use continuous integration techniques for ultimate application quality control using Gradle and Jenkins.

By the end of the book, you'll be looking through alternative testing tactics including Fest and Spoon to build upon and expand your Android testing range and finesse.

商品描述(中文翻譯)

改善您的 Android 應用程式,透過深入的測試和除錯

關於本書
- 專注於 Android 儀器測試,以確保應用程式的全面覆蓋
- 應用測試技術並利用工具來改善 Android 應用程式開發
- 建立經過深入測試且無錯誤的 Android 應用程式

本書適合誰
如果您是希望測試應用程式或優化應用程式開發流程的 Android 開發者,那麼這本書適合您。無需具備應用程式測試的先前經驗。

詳細內容
本書是對現有技術、框架和工具的實用介紹,旨在徹底測試您的 Android 應用程式並改善專案開發。

您將學習 Java 測試框架,如何創建測試案例並進行除錯。接下來,您將學習如何使用 Android SDK,利用 ActivityTestCase 和 ActivityUnitTest 類別進行測試,並討論流行的測試庫。透過範例,您將測試檔案、資料庫、ContentProviders、例外、服務,並使用 Espresso 測試您的應用程式。您將發現如何使用 Android 模擬器管理您的 Android 測試環境,深入了解 adb 和模擬器如何加速您的測試自動化,並測試用戶互動使用 monkeyrunner。您將學習不同的測試方法論,包括測試驅動開發(Test-driven Development)和行為驅動開發(Behavior-driven Development),並學習如何對您的 Android 專案進行單元測試和功能測試。您還將使用持續整合技術,透過 Gradle 和 Jenkins 進行最終的應用程式質量控制。

在本書結束時,您將探索替代的測試策略,包括 Fest 和 Spoon,以擴展和提升您的 Android 測試範圍和技巧。