Selenium WebDriver and Design Patterns

Selenium WebDriver and Design Patterns

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 7.5 Hours | 3.28 GB

Design Reusable Page Objects, Framework & Become Test Automation Architect / Lead SDET

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 in the software development community and demo how we can use them in Test Automation to achieve better re-usability and maintainability in the Test Automation Frameworks, Page Objects, Test classes design!

We will learn these design patterns along with Single Responsibility Principle.

  • Factory Pattern
  • Strategy Pattern
  • Command Pattern
  • Template Method Pattern
  • Proxy Pattern
  • Execute Around Method Pattern
  • Decorator Pattern

What you’ll learn

  • Design Patterns In Test Automation
  • Clean Reusable Page object design & Frameworks
  • Single Responsibility Principle
  • Factory Pattern
  • Strategy Pattern
  • Command Pattern
  • Template Method Pattern
  • Proxy Pattern
  • Execute Around Method Pattern
  • Decorator Pattern
Table of Contents

Introduction
1 Course Introduction
2 Goals, Advantages of Design Patterns, Prerequisites

Single Responsibility Principle
3 Problems With Poor Design
4 Good Code Vs Bad Code
5 Single Responsibility Principle – Introduction
6 [Optional] – Coupling & Cohesion
7 Sample Workflow For Automation
8 Page Components Design
9 Course Code
10 IDE – Setup
11 Abstract Component
12 Search Widget Component Implementation
13 Search Suggestion Component Implementation
14 Explicit Wait Using Lambda
15 Refactoring
16 Navigation Bar Component Implementation
17 Result Stat Component Implementation
18 Google Main Page Implementation
19 Google Result Page Implementation
20 Base Test
21 Google Search Test – Part 1
22 Google Search Test – Part 2
23 Few Corrections
24 Google Search Test Run
25 Google Search Test Parameterize
26 Package Refactoring
27 Cohesion
28 Project Structure
29 Clarification For BDD
30 Single Responsibility Principle – Summary

Factory Pattern
31 Design Pattern – Introduction
32 SRP vs Design Patterns
33 [Optional] – Design Patterns Classification
34 Factory Introduction
35 Factory – Exercise
36 Factory – Abstract Google Page
37 Factory – Google English Page Implementation
38 Factory – Google French Page Implementation
39 Factory – Google Arabic Page Implementation
40 Google Factory Implementation
41 Google Search Test With Factory
42 Factory – Test Run Demo
43 Accommodating New Requirements
44 Additional Materials
45 Factory – Summary

Strategy Pattern
46 Strategy – Introduction
47 Strategy – Sample Application Walk-through
48 Strategy – Sample Application – Regular Design
49 Strategy – Payment Screen Design
50 Strategy – Payment Option Implementation
51 Strategy – Payment Screen Components
52 Strategy – Payment Screen Test – Part 1
53 Strategy – Payment Screen Test – Part 2
54 Strategy – Payment Screen Test – Run
55 Strategy Pattern Explanation
56 Factory vs Strategy
57 Combining Factory and Strategy
58 Additional Materials
59 Strategy – Summary
60 Exercise

Command Pattern
61 Command – Introduction
62 Command – Sample Application Walk-through
63 Command – Sample Application – Regular Design
64 Command – Notification Validator
65 Command – Dismissal Alert Validator
66 Command – Home Page Implementation
67 Command – Get Element Validators Implementation
68 Command – Home Page Test
69 Small Correction
70 Command – Running Test
71 Element Validators With Data Provider
72 Command – Summary

Template Method Pattern
73 Template Method – Introduction
74 Template Method – Sample Application Walk-through
75 Template Method – Shopping Template Implementation
76 Template Method – Amazon Shopping Implementation
77 Template Method – eBay Shopping Implementation
78 Template Method – Shopping Test Implementation
79 Template Method – Test Run
80 Template Method – When To Use
81 Template Method – Multi Pages Workflow – Refactoring
82 Template Method – Final Test Run
83 Additional Materials

Proxy Pattern
84 Proxy – Introduction
85 Proxy – Sample Application Walk-through
86 Proxy – Order Component Real – Implementation
87 Proxy – Order Component Proxy – Implementation
88 Proxy – Page Object Design
89 Proxy – Test Run
90 Additional Materials
91 Proxy – Summary

Execute Around Method Pattern
92 Execute Around Method – Introduction
93 Execute Around Method – Sample Application Walk-through
94 Execute Around Method – Main Page Implementation
95 Java 8 Consumer – Refresh
96 Execute Around Method – Main Page Problems With Frames
97 Execute Around Method – Implementation & Demo

Decorator Pattern
98 Decorator – Introduction
99 Decorator – Sample Application Walk-through
100 Decorator – Page Object
101 Decorators Implementation
102 Decorator – Test Run
103 Decorator – Assignment
104 Decorator – Assignment Solution

Whats Next
105 Dependency Injection Pattern – Intro
106 More Info On Dependency Injection