Design Patterns are repeatable and reusable solutions for software design related issues.
This course helps you to get introduced to the some of the frequently used Design Patterns among Software developers and demo how we can use them in Test Automation to achieve better re–usability and maintainability in the your Automation Framework, Page Objects & Test classes design!
You would learn following Design Principles and Design Patterns.
Single Responsibility Principle: Each and every module, class, method in an application should have only one specific responsibility to handle. Using this we could refactor our complex Pages Objects into multiple modular Page Components or Page Fragments and we could write very neat test steps.
Factory Pattern: We should be able to create an object without exposing the creation logic to the test class. For ex: Lets consider the localization testing in which we need to test multiple languages for an app. This app might have a language specific behavior as well. We can have an abstract class with common functionalities and language specific sub classes. We can use Factory Pattern to create specific Page Object based on the language we test!
Strategy Pattern: We should be be able to pass the behavior to an object at run time. For ex: Google search page might have different search strategies. Text based search or voice based search. We have a Page Object for google search page and different components for search strategies. We should be able to pass specific strategy at run time w/o writing ugly if–else blocks.
Courses : 5
Specification: Selenium WebDriver and Design Patterns
10 reviews for Selenium WebDriver and Design Patterns