Loading…

Selenium Framework Design in Data-Driven Testing : Build data-driven test frameworks using Selenium WebDriver, AppiumDriver, Java, and TestNG.

The Selenium WebDriver 3.x Technology is an open source API available to test both Browser and Mobile applications. It is completely platform independent in that tests built for 1 browser or mobile device will also work on all other browsers and mobile devices. The technology supports all major deve...

Full description

Bibliographic Details
Call Number:Libro Electrónico
Main Author: Cocchiaro, Carl
Other Authors: Chaubal, Pinakin Ashok
Format: Electronic eBook
Language:Inglés
Published: Birmingham : Packt Publishing, 2018.
Subjects:
Online Access:Texto completo
Table of Contents:
  • Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Building a Scalable Selenium Test Driver Class for Web and Mobile Applications; Introduction; Data-driven testing; Selenium Page Object Model; DRYÂ ; What you will learn; The singleton driver class; Requirements; The class signature; Class variables; JavaDoc; Parameters; Class methods; Using preferences to support browsers and platforms; Browser preferences; Platforms; Using preferences to support mobile device simulators, emulators, and real devices; iOS preferences.
  • Android preferencesMultithreading support for parallel and distributed testing; Passing optional arguments and parameters to the driver; varargs; The parameter for setDriver; JVM argument â#x80;#x93; -Dswitch; Parameter processing methods; Selenium Grid Architecture support using the RemoteWebDriver and AppiumDriver classes; Third-party grid architecture support including the Sauce Labs Test Cloud; Using property files to select browsers, devices, versions, platforms, languages, and many more; Summary; Chapter 2: Selenium Framework Utility Classes; Introduction; Global variables.
  • Synchronization utility classesSelenium synchronization classes; The ExpectedConditions class; WebDriverWait/FluentWait classes; Custom synchronization methods; The JavascriptExecutor class; The TestNG Listener class; Building the test listener class; Logging the results to the console or log file; Including the test runner in the test class or suite; File I/O class; Property files; Lookup table files; CSV files; Log files; The image capture class; The capture screen method; The capture image method; The compare image method; The reporter class; The JavaMail class; Summary.
  • Chapter 3: Best Practices for Building Selenium Page Object ClassesIntroduction; What you will learn; Best practices for naming conventions, comments, and folder structures; Naming conventions; Comments; Folder names and structures; Designing and building the abstract base classes for the AUT; The abstract class; Abstract methods; Common locators; Common methods; Wrap up on base classes; Designing and building subclasses for feature-specific pages using inheritance techniques; Encapsulation and using getter/setter methods to retrieve objects from the page object classes.
  • Exception handling and synchronization in page object class methodsImplicit exception handling; TestNG difference viewer; Explicit exception handling; Try ... catch exception handling; Synchronizing methods; Table classes; Summary; Chapter 4: Defining WebDriver and AppiumDriver Page Object Elements; Introduction; Inspecting page elements on browser applications; Types of locators; Inheriting WebElements; Inspecting WebElements; Third-party plugins/tools; Inspection of page elements on mobile applications; Appium inspector; Inspecting mobile elements; Standards for using static locators.