Test iOS Apps with UI Automation: Bug Hunting Made Easy (Paperback)
暫譯: 使用 UI 自動化測試 iOS 應用程式:輕鬆尋找錯誤 (平裝)

Jonathan Penn

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2013-08-11
  • 售價: $1,188
  • 貴賓價: 9.5$1,129
  • 語言: 英文
  • 頁數: 200
  • 裝訂: Paperback
  • ISBN: 1937785521
  • ISBN-13: 9781937785529
  • 相關分類: Apple Developer使用者介面 UI
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

商品描述

If you're an iOS developer or QA professional tapping through an app to reproduce bugs or performance issues you thought were solved two releases ago, then this is your book. Learn how to script the user interface, assert correct behavior, stub external dependencies, reproduce performance problems, organize test code for the long haul, and automate the whole process so the machine does the work. You'll walk through a comprehensive strategy with techniques using Apple's tools that you can apply to your own apps.

Automated user interface testing is an important part of a comprehensive testing strategy for iOS applications. By scrutinizing your app through the eyes and actions of the user, you raise confidence that features are wired up right and behave as you expect.

Through this book you'll learn how to do full-stack testing of your iOS apps in both the simulator and on the device with Apple's built-in tools. You'll write behavioral tests in UI Automation that help protect against regressions. You'll write scripts to repeat steps in Instruments to reproduce performance bugs. With a little ingenuity, you'll build a workflow that gives the feedback you need.

Grow a test suite by working with a real application that uses Core Data and network requests. Learn how to describe expected behavior in test scripts, launch the app in a specific state, and stub external dependencies for completely isolated and repeatable tests. Along the way, you'll practice how to organize your test code and run it hands-free from the command line. By the end, you'll have the tools and habits you need to tackle the unique testing problems you'll face while building best-of-breed native iOS apps for your users.

What You Need

You'll need a Mac running at least Mac OS X Lion (10.7) and Xcode 4.6.

商品描述(中文翻譯)

如果您是一位 iOS 開發者或 QA 專業人員,正在透過應用程式來重現您認為在兩個版本前已解決的錯誤或性能問題,那麼這本書就是為您而寫的。學習如何編寫使用者介面腳本、驗證正確行為、模擬外部依賴、重現性能問題、為長期維護組織測試代碼,並自動化整個過程,讓機器來完成工作。您將通過使用 Apple 的工具,走過一個全面的策略,這些技術可以應用於您自己的應用程式。

自動化使用者介面測試是 iOS 應用程式全面測試策略的重要組成部分。通過用戶的視角和行動來仔細檢查您的應用程式,您可以提高對功能正確連接和行為符合預期的信心。

在這本書中,您將學習如何使用 Apple 內建工具對您的 iOS 應用程式進行全堆疊測試,無論是在模擬器還是實體設備上。您將編寫 UI Automation 中的行為測試,以幫助防止回歸問題。您將編寫腳本以重複 Instruments 中的步驟,以重現性能錯誤。憑藉一點創意,您將建立一個提供所需反饋的工作流程。

通過與一個使用 Core Data 和網路請求的實際應用程式合作,擴展測試套件。學習如何在測試腳本中描述預期行為、在特定狀態下啟動應用程式,以及模擬外部依賴,以進行完全隔離和可重複的測試。在此過程中,您將練習如何組織測試代碼並從命令行無需手動操作地運行它。到最後,您將擁有解決在為用戶構建最佳原生 iOS 應用程式時所面臨的獨特測試問題所需的工具和習慣。

您需要的條件

您需要一台運行至少 Mac OS X Lion (10.7) 和 Xcode 4.6 的 Mac。