SELENIUM

Bysornait

SELENIUM

BASIC Junit 4 Framework / ANT

  • JUNIT – What is it?
  • Junit 4 configuration in Project/Eclipse.
  • Annotation – JUnit 4.
  • Running Test in Junit
  • Skipping Tests
  • Parameterizing Tests
  • Using Assertions
  • Reporting Errors / Error Collector
  • Batch Running – Custom Runners
  • ANT – What is it?
  • Build.xml configuration
  • HTML Report generation using Ant
  • Building a BAT file to run tests using ANT

Testing Framework / ANT

  • Testing – What is it?
  • Installing Testing in Eclipse
  • Understanding usage of annotations
  • Running a Test in Testing
  • Batch Running of tests in Testing
  • Skipping Tests
  • Parameterizing Tests – Data Provider
  • Assertions/Reporting Errors
  • Testing Reports
  • Advantages over Unit
  • Using Testing in Selenium
  • What is Ant
  • Downloading and configuring Ant
  • Build.xml configuration
  • XSLT report generation using Testing and Ant
  • Building a BAT file to run tests using ANT

Selenium IDE

  • Selenium IDE – Installation
  • Recording Script
  • Script – Running, Pausing and debugging
  • Running a script line by line
  • Inserting commands in between script
  • XPATHS and installing firebug to get XPATHS
  • Wait Commands
  • Verification and Assertions
  • Using verify or assertion
  • JavaScript
  • User-extension.js in Selenium IDE
  • Using if statements and loops in IDE.
  • Echo, StoreEval and StoredVars
  • Creating your own user extensions
  • Making a function in user extension to generate random email address.
  • Extracting all values of dropdown.
  • Reading XML from JavaScript using DOM.
  • Building Test Cases – Example
  • Parameterize your IDE test cases with customized use extension and XML.
  • Regular Expressions in Selenium IDE.
  • Handling JavaScript Alerts
  • Capturing screenshots – Selenium IDE
  • Testing Flash applications with IDE – Selenium Flex API.
  • Capturing screenshots from Selenium IDE

Selenium Web Driver

  • Web Driver – Why?
  • Downloading Web Driver Jars and configuring in eclipse
  • Architecture of selenium web driver
  • Drivers for Firefox, IE, chrome, IPhone, Android etc.
  • First Selenium Code
  • Working with Internet Explorer and Chrome
  • Selenium Web Driver and RC
  • Concept of Firefox profile
  • Firefox profile – What is it?
  • Firefox Profile – Why required?
  • Close and Quit -Difference
  • Importing web driver documentation in eclipse
  • Web Driver Desired Capabilities Class
  • Proxy settings with web driver/Working with proxy Servers
  • HTMLUnit driver and desired capabilities

Selenium WebDriver – 2

  • Fire path and firebug Add-ons installation in Mozilla
  • Inspecting elements in Mozilla, Chrome and IE
  • HTML language tags and attributes
  • Various locator strategies
  • Web Driver Interface
  • Web Element Interface
  • Identifying Web Elements using id, name, class
  • Finding Xpaths to identify
  • Absolute and complete Xpaths
  • Creating customized Xpaths without firebug
  • Css Selectors
  • Generating own Css Selectors
  • Performance of Css Selectors as compared to Xpaths
  • Finding xpaths/css selectors in different browsers – Mozilla, Chrome and IE
  • Objects with same id/xpath/css selector
  • Class attribute – What is it?
  • Handling Dynamic objects/ids on the page
  • Working with different browsers without changing code

Selenium Webdriver – 3

  • Managing Input fields, Buttons and creating custom xpaths
  • Managing/Identifying Links with xpaths/css selectors
  • Extracting More than one object from a page.
  • Extracting all links of a page/Bulk extraction of objects.
  • Extracting Objects from a specific area of a web page.
  • Various strategies to test Links on a page by clicking on them one by one.
  • Finding response Headers/ response code.
  • Finding whether object is present on page or not.
  • Handling drop down list
  • Select Class in Selenium API
  • Managing radio buttons and Checkboxes
  • Hidden components
  • is Displayed function
  • Taking Screenshots of the web pages
  • How to Google out errors-Self sufficiency
  • Exercises

Selenium Web Driver – 4

  • Implicit and Explicit waits
  • Best Practices

Selenium Web Driver – 5

  • Distributed installations
  • Page Load Timeout Property
  • Web Driver Wait Class
  • Web Driver .Timeout Interface
  • Expected Condition interface and Expected Conditions class
  • Wait Until Condition
  • Fluent Wait
  • Managing Ajax based components
  • Concepts of Set Interface in Java
  • Window Handles
  • Managing tabbed windows in IE, Chrome and Mozilla
  • Managing popups in IE, Chrome and Mozilla
  • Closing windows
  • Default Popups
  • Testing https websites / Managing certificate errors in https websites in IE, Chrome and Mozilla

Selenium 2.0 Features – 3

  • Extracting Data From Web Table
  • Dynamic Web Table Handling
  • Attaching files with Selenium
  • Changing your Facebook profile picture by attaching new picture
  • Mouse movement with Selenium- Mouse Interface
  • Handling Ajax Auto suggests
  • Handling Google Ajax Auto suggests
  • Handling Frames in Web Page
  • Handling cookies
  • More Examples on Web tables
  • Web tables and css Selectors
  • Building custom functions for Web tables
  • Managing JavaScript alerts

Selenium 2.0 Features – 5

Simulating front and back button click on Browser using selenium
  • Assigning Firefox profile parameters
  • Downloading files using selenium
  • Selenium Javadocs
  • Listeners- Using WebDriver Event Listener
  • Practical usage of Listeners in Selenium
  • Moving a mouse on a Object and right clicking on it
  • Finding Coordinates of a Web Object
  • Actions class in Web driver
  • Handling CSS menu with Action class
  • Handling CSS menu with JavaScript Executor
  • JavaScript Executor example
  • Drag, drop, native events

Selenium 2.0 – Exercises

ADVANCED

Junit and Data Driven Framework

  • Overview of Data driven framework
  • Building the Test Base Class
  • Using Annotations of Unit
  • Reading XPATHS, Configuration from properties file
  • Initialize the Web driver
  • Building the Test Base Class
  • Implementing Web Driver Implicit Wait
  • Implementing tests and batch running them
  • Repeating a test with different Data
  • Building utility functions
  • Parameterizing tests using XL Files
  • Controlling Execution order from XL Files
  • Assertions and Reporting Errors / Error Collector
  • Storing Screenshots of errors
  • Running the framework through ANT
  • Generating the HTML reports
  • Emailing test reports
  • Creating a BAT file for project execution

Junit and Hybrid (Keyword+Data) Framework

  • Overview of Hybrid(Keyword Data Driven) Framework
  • Building XLS File Having Test Cases and Keywords
  • Building XLS File Having Test Data
  • Building Base class
  • Reading XPATHS, Configuration from properties file
  • Implementing Implicit Wait
  • Implementing the keywords using the reflection API
  • Implementing tests
  • Assertions and Reporting Errors
  • Parameterizing tests using Data Provider and XL Files
  • Repeating a test with different Data
  • Running the framework through ANT
  • Generating the reports
  • Emailing test reports
  • Creating a BAT file for project execution

Testing and Data Driven Framework

  • Overview of Data driven framework
  • Building the Test Base Class
  • Using Annotations of Testing
  • Reading XPATHS, Configuration from properties file
  • Initialize the Webdriver
  • Implementing WebDriver Implicit Wait
  • Implementing tests and batch running them
  • Repeating a test with different Data
  • Implement logging with Log4J API
  • Building utility functions
  • Parameterizing tests using XL Files
  • Controlling Execution order from XL Files
  • Assertions and Reporting Errors
  • Storing Screenshots of errors
  • Running the framework through ANT
  • Generating the XSLT reports
  • Creating a BAT file for project execution
  • Emailing Test Reports

TESTING and Hybrid (Keyword Data) Framework

  • Overview of Hybrid Framework
  • Building XLS File Having Test Cases and Keywords
  • Building XLS File Having Test Data
  • Building Base class
  • Reading XPATHS, Configuration from properties file
  • Implementing Web driver Wait
  • Implementing the keywords using the reflection API
  • Implementing tests
  • Assertions and Reporting Errors
  • Parameterizing tests using Data Provider and XL Files
  • Repeating a test with different Data
  • Running the framework through ANT
  • Generating the reports
  • Emailing test reports
  • Creating a BAT file for project execution