Selenium Framework Design in Data-Driven Testing

Carl Cocchiaro

  • 出版商: Packt Publishing
  • 出版日期: 2018-01-23
  • 售價: $1,940
  • 貴賓價: 9.5$1,843
  • 語言: 英文
  • 頁數: 354
  • 裝訂: Paperback
  • ISBN: 1788473574
  • ISBN-13: 9781788473576
  • 相關分類: selenium
  • 海外代購書籍(需單獨結帳)

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

商品描述

Key Features

  • A step by step guide in designing your own automation testing framework with Selenium WebDriver Design
  • Perform Data driven automation testing of browser and mobile application in Selenium with TestNG and Java.
  • Learn to design and use third party tools for results processing and reporting in the Selenium Framework.

Book Description

Selenium WebDriver is an open source web UI automation tool implemented through a browser-specific browser driver, which sends commands to a browser and retrieves results.This book will provide a step by step guide in designing your own automation testing framework for data driven testing in Selenium WebDriver with TestNG and Java.

The book will start off by setting up the framework for Selenium WebDriver and Appium MobileDriver for the web. We'll further understand mobile testing on different platforms leveraging the selenium driver integration for dual driver testing. We will also set up the Page Object Model (POM) for testing framework using Selenium. This will help us to create non-brittle test code and reduce or eliminate duplicate test code thereby improving the readability and creating interactive documentation. We will also learn to set up TestNG for data driven testing as Selenium Webdriver is more an automated testing framework than a ready-to-use tool. Towards the end, we'll get our hands dirty with Selenium grid architecture which allows us to test on different browsers, versions, and platforms.

Finally, we'll explore a number of third party tools and plugin which can be added to our Selenium Framework.

By the end of the book, you will be able to design your own automation testing framework and perform data driven testing with Selenium.

What you will learn

  • Design the Selenium Driver Class for local, remote, and third party grid support
  • Represent Page Object Classes using the Selenium Page Object Model
  • Plan Data-Driven Test Classes using the TestNG framework
  • Encapsulate Data using the JSON Protocol
  • Build a Selenium Grid for RemoteWebDriver Testing
  • Map Utility Classes for use in Synchronization, File I/O, Reporting and Test Listener Classes
  • Sample framework code for practical use

商品描述(中文翻譯)

《Selenium WebDriver 設計與實作自動化測試框架》

主要特點



  • 透過 Selenium WebDriver 設計自己的自動化測試框架的逐步指南

  • 使用 TestNG 和 Java 在 Selenium 中進行瀏覽器和行動應用程式的資料驅動自動化測試

  • 學習設計並使用第三方工具在 Selenium 框架中進行結果處理和報告

書籍描述


Selenium WebDriver 是一個透過特定瀏覽器驅動程式實現的開源網頁使用者介面自動化工具,它向瀏覽器發送指令並檢索結果。本書將提供一個逐步指南,教你如何使用 TestNG 和 Java 在 Selenium WebDriver 中設計自己的資料驅動測試框架。


本書將首先設置 Selenium WebDriver 和 Appium MobileDriver 的框架,並深入了解如何在不同平台上進行行動測試,利用 Selenium 驅動程式整合進行雙驅動程式測試。我們還將設置頁面物件模型(POM)以使用 Selenium 進行測試框架。這將幫助我們創建不易破碎的測試程式碼,減少或消除重複的測試程式碼,從而提高可讀性並創建互動式文件。我們還將學習如何設置 TestNG 進行資料驅動測試,因為 Selenium WebDriver 更像是一個自動化測試框架,而不是一個即插即用的工具。最後,我們將深入研究 Selenium Grid 架構,它允許我們在不同的瀏覽器、版本和平台上進行測試。


最後,我們將探索一些可以添加到 Selenium 框架中的第三方工具和插件。


通過閱讀本書,您將能夠設計自己的自動化測試框架並使用 Selenium 進行資料驅動測試。

你將學到什麼



  • 設計 Selenium Driver 類別以支援本地、遠程和第三方網格

  • 使用 Selenium Page Object Model 代表頁面物件類別

  • 使用 TestNG 框架規劃資料驅動測試類別

  • 使用 JSON 協定封裝資料

  • 建立用於 RemoteWebDriver 測試的 Selenium 網格

  • 映射實用程式類別,用於同步、檔案輸入/輸出、報告和測試監聽器類別

  • 實用的框架程式碼範例