EIEIOTECHNOVATION
← Training programmes

EIEIO / PROGRAMMING & DEVELOPMENT

C# for Selenium

Course outline

5 days

Duration

5 days

Outline

  • Architecture
  • C# first program basics
  • Classes and objects in C#
  • Constructor
  • Strings in C#
  • Coding Basics
  • Access Modifiers
  • Encapsulation
  • Method Overloading
  • Inheritance Concepts
  • Practical usage of Inheritance
  • Method Overriding (Runtime Polymorphism)
  • Abstract Concepts
  • Interface Concepts
  • Practical Usage of Interface
  • Sealed Class and Methods
  • Collections
  • Generics
  • Exception Handling

Basic Concepts for first Webdriver program

  • Webdriver Interface explanation and Invoking Browser
  • Basic Methods of Webdriver
  • How to run tests in Google Chrome
  • How to run tests in Internet Explorer

Locator Techniques & Tools used

  • Preview Browser Addons overview to identify elements
  • Preview Installing Firebug & Firepath Addons
  • Locator Techniques : Xpath identification using Firepath, Name ,ID, ClassName, LinkText,-Handling links

ADVANCED WAYS-locating objects

  • writing Customized xpath Using Attributes
  • Writing customized xpath Using Tagnames Traversing
  • Css Selectors locators

Techniques to automate Web UI

  • Handle Dynamic dropdowns with Webdriver API
  • Handling Static dropdowns with Select webdriver API
  • Handling Checkboxes with webdriver API
  • Handling Radiobuttons with Customized xpath
  • Handling Radiobutton dynamically- real time examples
  • Types of Alerts present and Methods to handle them
  • Handling Alerts using Webdriver API
  • Web Elements Validation
  • End to End Practice Exercise

Techniques to automate ADVANCNED Web UI

  • Handling Ajax/Mouse Interactions
  • Actions class-real time example
  • Handling Multiple Windows
  • Window Handle concepts-real time example
  • Live Example on working with Child windows
  • Handling ul li Tags in Selenium
  • How to handle Frames?

Real Time Exercises (end to end Programming)

  • Test Cases- Practice Exercise
  • Exercise 1.1-Limiting Webdriver scope
  • Getting Count of links in the pages,sections
  • Testcase-Practice Exercise-2
  • Exercise 2.1-Dynamic data in Websites
  • Exercise 2.2-Dynamic Links Handling
  • Exercise 2.3-Validations & checkpoints

Practical problems and Methods to Handle them with Selenium

  • How to handle table Grids in webpage
  • Techniques used for table grid-Real time example
  • How to overcome Synchronization problems
  • Maximizing window and deleting cookies
  • Handling HTTPS certifications
  • How to troubleshoot if it is not invoking in firefox
  • Killing the Process and Cookies using Selenium
  • How to take Screenshots in Selenium

DataBase Connection

  • Architecture
  • Connecting to SQL Server
  • CURD operations on database using C#

File Architecture:

  • XML File Handling
  • JSON File Handling
  • Config file Handling
  • General File handling (any extension) using C#.

Data driving from Excel

  • Nugets Download Instructions
  • Excel API Methods explanation
  • Program for Retrieving data from excel
  • Program for Updating data back to excel

Framework Part -1 – Nunit

  • Why NUnit/MSTest and Its Advantages
  • NUnit Installation and Setup
  • NUnit Annotations Part
  • Prioritizing the tests using NUnit
  • Disabling Enabling the Testcases and putting Timeout
  • Including and excluding the Testcases from Execution
  • Importance of Groups in NUnit
  • Data driving Testing with NUnit
  • Parallel running of test cases
  • Report Generation

Framework Part -2 -Data driven Framework

  • Why we should not hard code the data?
  • How to write Global parameters with C# code
  • Data driving parameterization from Properties file
  • How to deal with Reusable Components

Framework Part 3 – Keyword Driven

  • Importance of keyword Driven
  • Scenarios where Keyword Driven can be used

Framework Part 4 – Modular Driven & Hybrid

  • Introduction to Hybrid Driven Framework
  • Constructing a project with live application
  • Data driving parameterization from Properties file
  • Keyword driving parameterization from Excel file
  • Organizing the Hybrid Driven Framework as per the standard
  • Understanding the Modular Driven with created project.

Framework Part 5 - Page Object Model

  • What is Page object model?
  • Creating Page object Constructor in classes
  • Practical Exercise explaining Page object Model

Framework Part 6 - Page Factory

  • Creating Page Factory Project

Reporting – Extent Report

GIT-Jenkins- CI/CD Tool

  • GIT Introduction
  • GIT Installation
  • Working with GIT
  • GIT Commands
  • GIT Extensions tool
  • Why Jenkins? and where it going to help us in Framework design?
  • Installing & Configuration of Jenkins
  • Creating Jenkins project and integrating Existing Framework
  • Running the Framework and Scheduling it from Jenkins

Cross Browser Testing with Selenium Grid

  • How to execute Selenium Tests Remotely
  • Grid Concepts & Architecture
  • Configuring Hub and Node
  • Registering Nodes with Hub Server
  • Desired Capabilities-Grid Program
  • Execution Selenium scripts in Remote Machine
  • Code and Commands

Programme scope, delivery arrangements and suitability are confirmed during enquiry.