Course 3 – Agenda 

• Basics of Javascript for Automation
• Playwright Automation Testing
• Playwright / BDD cucumber Fw
• Git and GitHub
• CICD – GitHub Actions

JavaScript Basics for Automation

  • Introduction to JavaScript 
  • Variables and Datatypes 
  • Conditional Statements 
  • Loops 
  • Functions 
  • Arrow functions
  • Objects 
  • Working with Objects
  • Arrays
  • Working with Arrays
  • Strings
  • Working with Strings 
  • Numbers
  • Working with numbers
  • Class 
  • Constructor 
  • Static 
  • OOPs
  • Synchronous vs Asynchronous 
  • call backs 
  • Promises 
  • Async and Await

Playwright Automation Testing tool

  1. Course Summary:
    1. Introduction to Playwright Automation tool
    2. Setting up Playwright, Writing the First Test
    3. Running Playwright Tests in command line, Playwright Hooks, grouping, tags and annotations 
    4. Page Object Model, Viewport, Fixtures
    5. Locators – Xpath and CSS and playwright In-built locators.
    6. Working with Checkboxes, Radio buttons and other web elements.
    7. Working with Dropdowns, Alerts, File upload, File download
    8. Video reporting, HTML reports, Allure reports
    9. API testing Integration, BDD Cucumber integration
  1. Learning Outcomes:

After the Course, participants will exhibit competencies / Skills of:

  1.  Understand Playwright from Scratch and build fast and reliable Automation tests for any Web Applications using Playwright
  2. Practical knowledge in designing Playwright Automation frameworks from scratch.
  3. Real-time hands-on Exercises to practice Playwright 
  4. Parallelly with Videos for building confidence in the tool
  5. Complete understanding of Playwright Components for generating test execution Videos, Screenshots & Reporting
  6.  Participants will learn advanced architectural concepts like Page Object Modelling
  7. Learn JavaScript fundamentals required for Playwright Automation testing.
  8. Comprehensive knowledge of Playwright Methods and their usage with examples.
  9. Understand how to Intercept Network/API requests & responses with Playwright.
  10. Get Familiar with the Playwright Inspector tool, Trace Viewer & Code Gen (Record Playback) tools
  11. Develop Playwright cucumber BDD Framework from Scratch with best practices.
  12. Develop End-to-end Mocha Framework with Playwright utilizing all the features available in the tool.
  1. Playwright Course Content:
  1. What are the benefits of Automation?
  2.  Why we do automation
  3. When should you automate your software testing
  4.  When should automation not be preferred
  5. Selenium Vs Playwright
  6. Cypress vs Playwright 
  7. Playwright Introduction and Its Features
    • What is a Playwright? 
    • Why Learn Playwright? 
    • How does Playwright Work? 
    • What are the Key Differences between Playwright and other Automation Tools? 
    • Playwright Demo
  8. Understand Playwright Architecture and its benefits
  9. Environment Setup
    • Chrome & Firefox Browser Installation 
    • Prerequisites – [NodeJS Setup] 
    • NodeJs Setup 
    • Gitbash Setup 
    • VS Code Installation & Configuration
  10. Playwright Setup
    • Playwright Installation & Setup 
    • NPM Installation & Update 
  11. Playwright Overview
    • Playwright Opening for the First Time! 
    • Playwright Test Runner 
    • Playwright Project Structure 
  12. Playwright API
    • Playwright API – Overview
  13. Basic Playwright Commands 

∙ Command Activation & Inspecting Specific Playwright Commands 

∙ Goto & Click Command 

∙ Click Options 

∙ Type and Fill Command 

  1. Creating Our First Test 

∙ Creating Our First Playwright Test – (Positive Test Case) 

∙ Creating Our First Playwright Test – (Negative Test Case) 

∙ Group test cases in playwright

∙ Get and assert Page title

∙ Get and assert Page URL

  1. Playwright hooks, tags and Test Annotations.
  2. Web first Assertions 
  3. Browser context and Page fixtures
  4. Playwright Configurations 
  5. Running Playwright tests in multiple browsers – chrome, Firefox and Webkit
  6. Playwright Inspectors, Trace Viewers & Codegen tools with Demo examples
  7. Playwright TestRunner
  8. Exploring the Playwright project Framework structure
  9. Parallel & Cross Browser Testing
  10. Web Elements & Selectors 

∙ Why do we need Selectors? 

∙ Document Object Model (DOM) & Elements 

∙ Practical In-Depth Look into Selectors 

∙ Selector Generator Tools 

∙ CSS Selectors 

∙ Xpath Selectors 

. Playwright In-built Locators 

  1. Assertions 

∙ Why do we need Assertions? 

∙ Web first Assertions & Playwright Examples 

∙ Adding Assertions to our Existing Tests 

  1. Triggering Tests via Command Line 

∙ Headless Browsers

∙ Non Headless Browsers

∙ Trigger Individual Tests 

∙ Trigger Group of Tests 

∙ Trigger tests using custom config file 

  1. Logging 

∙ Playwright log 

  1. Promises and the Then Command 

∙ Promises Real World Example 

∙ Playwright and Promises 

∙ then Command

  1. Iterating through Elements 

∙ Iterating through Elements – Documentation & Preparation 

∙ Practical Example of Iterating through Elements 

  1. Browser Navigation 

∙ Back, Forward, Reload 

  1. Handling – Alerts 

∙ Handing Alerts – Documentation 

∙ Handling Alerts – Example 

  1. Handling – Checkboxes 

∙ Handling Checkboxes

  1. Handling – Radio Buttons 

∙ Handling Radio Buttons 

∙ Validating States of Radio Buttons (Checked & Unchecked) 

  1. Handling – Drop-down Lists 

∙ Handling Drop-down Lists 

  1. Autocomplete (Suggested) Lists 

∙ Handling Autocomplete Lists 

  1. Mouse Actions 

∙ Scroll into View 

∙ Drag & Drop 

∙ Double Click 

∙ Right-click Assertions

  1. Handling Data from Tables 

∙ Handling Data – Example 

  1. File Upload 

∙ Introduction & Preparation 

∙ Uploading File(s) 

∙ Uploading no File(s)

  1. Handling Elements 

∙ Tabs, 

∙ I-frames, 

∙ Shadow Elements, 

∙ Tables, 

∙ Links

  1. Read file and Write file
  2. Fixtures 
  3. Overriding Default Settings 

∙ Playwright.config 

∙ Ignore Files 

  1. Environment & Global Variables 

∙ Environment Variables 

∙ Setting up a Base URL 

  1. Page Object Modelling 

∙ Page Object Modelling 

  1. Configuring & Handling Timeouts

∙ URL Timeouts 

∙ Explicit Timeouts 

∙ Assertion Timeouts 

∙ Hard coded wait

∙ Wait for the condition on the element

∙ Wait for the event on the page

Synchronization (Waits)

∙ Auto wait, Local Timeouts, Test Spec Timeout,

∙ Global Timeout Config, Static Waits

  1. Screenshots & Recordings 

∙ Capturing Screenshots 

∙ Recording Videos 

  1. Viewport – Altering Screen Sizes 

∙ Altering Viewports – Configuring Size and Orientation 

  1. Save session storage using Playwright and inject into new Browser context
  2. Test Retries , Serial & Parallel execution & Tagging Tests in Playwright
  3. Reporting 

∙ Inbuilt Reporters

∙ Allure Reports 

  1. ∙ GitHub – Account Creation & Login 

∙ Visual Studio Code & GitHub – Setup 

∙ Committing and Pushing our Code (Framework) to GitHub 

∙ Pushing & Pulling New Changes 

  1. API Test Automation 

∙ Playwright – API Testing integration

∙ Playwright – API Testing – GET

∙ Playwright – API Testing – POST

∙ Playwright – API Testing – PUT

∙ Playwright – API Testing – Delete

  1. Intercepting with Playwright 

∙ Playwright – Spying 

∙ Playwright – Stubbing 

∙ Playwright –  Mocking 

  1. Playwright – Cucumber 

∙ Playwright – Cucumber Integration

  1. Convert excel to Json 

∙ Data driven testing using excel file

  1. Playwright Changelog
  2. GitHub Actions Integration
  3. Playwright Limitations 

∙ Playwright Limitations 

  1. Debugging

∙ Browser Settings, VS Code Node Debugger,

∙ Playwright Test Debugger with Inspector,

∙ Trace Mode

∙ Debug Console 

∙ Playwright Trace Viewer 

∙ Playwright Inspector 

  1. Recording Script
  2. Session Storage

  • Course Resources:
  1. https://playwright.dev/
  2. https://cucumber.io/

×

Welcome to DBS Technologies!

 

×