Test iOS Apps with UI Automation: Bug Hunting Made Easy (Paperback)

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專業人員,透過應用程式來重現你認為已經在兩個版本前解決的錯誤或效能問題,那麼這本書就是為你而寫的。學習如何編寫使用者介面腳本、驗證正確行為、存根外部依賴、重現效能問題、組織測試程式碼以長期使用,並自動化整個過程,讓機器來完成工作。你將通過使用蘋果的工具進行全面策略的步驟,並將這些技巧應用於你自己的應用程式。

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

通過本書,你將學習如何使用蘋果內建的工具,在模擬器和設備上對你的iOS應用程式進行全棧測試。你將使用UI Automation編寫行為測試,以幫助防止回歸錯誤。你將編寫腳本在Instruments中重複步驟以重現效能錯誤。通過一點點的創造力,你將建立一個能夠提供所需反饋的工作流程。

通過與使用Core Data和網絡請求的真實應用程式一起工作,來擴展測試套件。學習如何在測試腳本中描述預期行為,以特定狀態啟動應用程式,並為完全隔離和可重複的測試存根外部依賴。在此過程中,你將練習如何組織你的測試程式碼並從命令行無需手動運行。最終,你將擁有應對在為用戶建立最佳iOS應用程式時所面臨的獨特測試問題所需的工具和習慣。

所需工具:
你需要一台運行至少Mac OS X Lion(10.7)和Xcode 4.6的Mac電腦。