i
WebDriver Introduction
Selenium WebDriver Architecture
Introduction to WebDriver API
Introduction to WebDriver – Code
Handling Dropdowns and Select class
Handling Multiple Dropdown values and Links
Handling Radio buttons and Checkboxes
Capture Screenshots and Email test results
Browser Navigation Methods
Handling tabs
Capturing screenshot, Handling tabs and pop-ups – Code
Handling tabs and Pop-ups – Code
Handling Alerts
Handling User Authentication and Input alerts
HtmlUnitDriver and Handling Captchas
Handling Web Tables
Synchronization
Handling WebTables, Synchronization issues, Firefoxprofiles – Code
Actions Class
Event Listeners, Event Firing Mouse, Coordinates – Code
Handling Mouse Hover in Selenium
JavascriptExecutor
Handling Iframes
IsElementPresent, IsEnabled, IsSelected
Working with Chrome Driver - Part 1
Working with FireFox Driver - Part 2
Working with Internet Explorer Driver - Part 3
Handling SSL Certificate
Desired Capabilities
How to Encode password in WebDriver
Handling JQuery Elements - Drag and Drop, Sliders, Resizable
Handling JQuery Elements - Drag and Drop, Sliders, Resizable – Code
Working on IE Browser using Actions
TestNG, Ant & Report Generation through XSLT
Introduction to TestNG and Annotations
TestNG Parameterization
Configuring ANT, Generating TestNG & XSLT Reports
Code for generating XSLT / Surefire Reports through MAVEN
TestNG Parameterization Excel Reading
Handling Multiple data providers
TestNG XSLT Jar, Build.xml & TestNG.xml file
Frameworks Introduction
Hybrid (DATA + KEYWORD) driven Framework
Framework Architecture
Reading Excel sheets
TestNG DataProvider
Data Provider with Hashtable
Handling Multiple Test Suites
Multiple DataProviders
Setting up Run-modes at Suite Level
Setting up Runmodes at TestCase Level
Creating a common utility for Run-modes
Hybrid Framework Code
TestNG XSLT Jar:
I have put the TestNG XSLT jar on my google drive link here. For creating the XSLT reporting. Let us download the files and paste them in the project directory. Now let us create a TestNG class.
Copy XSLT files into your Project:
Now Run the TestNG Project:
Let us now run the TestNG test from eclipse:
Create a TestNG.xml:
We can also generate the testing.xml from the TestNG suite. Follow the below steps to generate the testing.xml:
Run the build.xml
Now we need to run the build.xml file. A sample of build.xml looks like this:
name="TestAutomation" basedir=".">
name="LIB" value="${basedir}/lib" />
name="BIN" value="${basedir}/bin" />
id="master-classpath">
location="${BIN}" />
dir="${LIB}" includes="*.jar"/>
name="generateReport">
dir="${basedir}/testng-xslt">
dir="${basedir}/testng-xslt">
in="${basedir}/test-output/testng-results.xml" style="${basedir}/testng-results.xsl" out="${basedir}/testng-xslt/index.html">
expression="${basedir}/testng-xslt/" name="testNgXslt.outputDir" />
expression="true" name="testNgXslt.sortTestCaseLinks" />
expression="FAIL,SKIP,PASS,CONF,BY_CLASS" name="testNgXslt.testDetailsFilter" />
expression="true" name="testNgXslt.showRuntimeTotals" />
refid="master-classpath">
Now run the build.xml as “Ant Build”.
Once build gets successful, it will generate the output files under “testing-XSLT" folder for the XSLT reports as shown below:
Click in the index.html file in the "testing-XSLT" folder. XSLT report gets displayed in the web browser.
Don't miss out!