O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building UI Automation Test Frameworks with Selenium WebDriver

Video Description

Enhance the potential, reliability, and maintainability of your automated test scripts

About This Video

  • Write clear, readable, and reliable tests that perform complex test automation tasks
  • Practical advice on test automation approaches.
  • Create a test framework from scratch that will maintain its transparency and maintainability and control the overall complexity of the testing solution.

In Detail

Do you have a bunch of test scripts that break down whenever you look at them? Is adding new test scripts a chore? Is introducing changes to your test code painful, dangerous, and potentially showstopping? If you answered "Yes" to at least one of these, you're in sore need of building a test framework. In this video course, you will be trained to develop frameworks efficiently. You will learn how to structure your framework so that it remains maintainable and avoid collecting the unnecessary technical debt. You will learn to pay attention to the important aspects of framework development, and master quite a few important software design principles that will remain applicable throughout most roles in the IT industry. By the end of the course, you'll have developed an efficient test framework that will make test implementation and maintenance a breeze and will have learned to use supplementary tools and libraries to enhance the usefulness of Selenium WebDriver.

Downloading the example code for this course: You can download the example code files for all Packt video courses you have purchased from your account at http://www.PacktPub.com. If you purchased this course elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Chapter 1 : Setting Up the Environment
    1. The Course Overview 00:02:38
    2. What Selenium WebDriver Can and Can’t Do 00:02:43
    3. Automation Priorities 00:03:06
    4. List of Technologies Used and Setting Up the Said Technologies 00:07:31
  2. Chapter 2 : Components of a Test Framework
    1. Breaking Down a Test Framework 00:05:46
    2. Test Harness System, Test Driver 00:02:50
    3. Implement DSL to Increase Readability of Your Code 00:02:11
    4. Reporting Helpers and Utilities 00:01:49
  3. Chapter 3 : Working with Web Elements
    1. Locators Overview 00:06:24
    2. Using CSS Selector 00:03:02
    3. Navigate with XPath Locators 00:02:54
    4. Locating Web Elements in Selenium WebDriver 00:05:23
  4. Chapter 4 : Effective Page Object Model
    1. Understanding the Concept of POM 00:02:57
    2. Building a Convenient, Reusable, and Structured PageObject 00:03:48
    3. Typical Manipulations with POM 00:08:42
    4. Breaking the Page Down into Page Objects 00:03:40
  5. Chapter 5 : Design Patterns and Principles
    1. Increase Your Code Quality with KISS, DRY, and YAGNI Principles 00:04:34
    2. SOLID Principles to Further Increase Code Quality 00:10:06
    3. Useful Generic Software Design Patterns 00:05:36
  6. Chapter 6 : Test Reports and Making Test Results Visual
    1. Create Test Reports with Allure Framework 00:03:07
    2. Annotations to Document the Test 00:03:52
    3. Naming the Tests Informatively and Making Screenshots 00:03:27
  7. Chapter 7 : Test Scaling
    1. Selenium Grid 00:02:26
    2. Selenium Grid and Docker 00:02:59
    3. Third-Party Tools 00:03:33
    4. Third-Party Services 00:02:10
  8. Chapter 8 : Utilizing Continuous Integration
    1. Developing a Framework to Simplify CI Integration 00:03:39
    2. Using Jenkins CI to Run Selenium WebDriver Test Suites 00:03:03