Selenium Testing Tools Cookbook, 2/e(Paperback)

Unmesh Gundecha

  • 出版商: Packt Publishing
  • 出版日期: 2015-10-30
  • 售價: $1,850
  • 貴賓價: 9.5$1,758
  • 語言: 英文
  • 頁數: 374
  • 裝訂: Paperback
  • ISBN: 1784392510
  • ISBN-13: 9781784392512
  • 相關分類: selenium
  • 下單後立即進貨 (約3~4週)

商品描述

Over 90 recipes to help you build and run automated tests for your web applications with Selenium WebDriver

About This Book

  • Learn to leverage the power of Selenium WebDriver with simple examples that illustrate real-world problems and their workarounds
  • Explains the testing of mobile applications with Appium for mobile platforms such as iOS and Android
  • A pragmatic manual with engaging recipes and attractive screenshots to test your web applications efficiently

Who This Book Is For

This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based applications. This books also provides examples for C#, Python and Ruby users.

What You Will Learn

  • Understand how the locators work and use various locator methods to build reliable tests
  • Build reliable and maintainable tests with the Selenium WebDriver API
  • Use the PageFactory pattern to build a robust and easy to maintain test framework
  • Build data-driven tests and extend Selenium API to implement custom steps and checks
  • Integrate and use ATDD/BDD tools such as Cucumber, SpecFlow, Capybara, and Behave with the Selenium WebDriver API
  • Set up iPhone/iPad and Android simulators and devices to test your mobile web application with Appium
  • Set up Selenium Grid for faster and parallel running of tests, increasing test coverage and reducing test execution time for cross-browser testing
  • Build extended Selenium WebDriver tests for additional coverage

In Detail

This book is an incremental guide that will help you learn and use the advanced features of the Selenium toolset including the WebDriver API in various situations to build a reliable test automation. You start off by setting up the test development environment and gain tips on the advanced locater strategy and the effective use of the Selenium WebDriver API.

After that, the use of design patterns such as data - driven tests and PageFactory are demonstrated. You will then be familiarised with extending Selenium WebDriver API by implementing custom tasks and setting up your own distributed environment to run tests in parallel for cross-browser testing.

Finally, we give you some tips on integrating Selenium WebDriver with other popular tools and testing mobile applications. By the end of this book, you will have learned enough to solve complex testing issues on your own.

Style and approach

This recipe-based guide covers real-life scenarios of testing your web apps with Selenium. Each recipe begins with a short introduction and key concepts along with illustrated examples of use cases, and ends with detailed but informative descriptions of the inner workings of the example.

商品描述(中文翻譯)

超過90個食譜,幫助您使用Selenium WebDriver為您的Web應用程序建立和運行自動化測試。

關於本書
- 通過簡單的示例學習如何利用Selenium WebDriver的功能,以解決現實世界中的問題和解決方法。
- 解釋了使用Appium測試iOS和Android等移動平台的移動應用程序。
- 提供引人入勝的食譜和吸引人的截圖,以高效測試您的Web應用程序。

本書適合對軟件質量保證/測試專業人士、軟件項目經理或具有使用Selenium和Java測試Web應用程序經驗的軟件開發人員。本書還提供了C#、Python和Ruby用戶的示例。

您將學到什麼
- 瞭解定位器的工作原理,使用各種定位器方法構建可靠的測試。
- 使用Selenium WebDriver API構建可靠且易於維護的測試。
- 使用PageFactory模式構建強大且易於維護的測試框架。
- 構建數據驅動的測試,並擴展Selenium API以實現自定義步驟和檢查。
- 將ATDD/BDD工具(如Cucumber、SpecFlow、Capybara和Behave)與Selenium WebDriver API集成和使用。
- 設置iPhone/iPad和Android模擬器和設備,使用Appium測試您的移動Web應用程序。
- 設置Selenium Grid以加快並行運行測試,增加跨瀏覽器測試的測試覆蓋率並減少測試執行時間。
- 構建擴展的Selenium WebDriver測試以實現更全面的測試覆蓋。

詳細內容
本書是一本漸進式指南,將幫助您學習和使用Selenium工具集的高級功能,包括各種情況下的WebDriver API,以構建可靠的測試自動化。您將首先設置測試開發環境,並獲得有關高級定位策略和有效使用Selenium WebDriver API的提示。

之後,將演示使用數據驅動測試和PageFactory等設計模式。然後,您將熟悉通過實現自定義任務擴展Selenium WebDriver API,並設置自己的分佈式環境以進行並行測試,以進行跨瀏覽器測試。

最後,我們將為您提供一些將Selenium WebDriver與其他流行工具集成和測試移動應用程序的提示。通過閱讀本書,您將學到足夠的知識,能夠獨立解決複雜的測試問題。

風格和方法
這本基於食譜的指南涵蓋了使用Selenium測試Web應用程序的真實場景。每個食譜都以簡短的介紹和關鍵概念開始,並附有用例的示例和詳細但有信息量的描述。