About - Selenium

Definition

Development and Versions

Pre-requisites

Languages supported

Manual vs Automation

Choosing Selenium

Selenium - Components

Selenium IDE

Selenium RC

Selenium WebDriver

Selenium Grid

QTP

Selenium vs QTP

Selenium - IDE

Features

Install and configure

Selenium - Webdriver

About WebDriver

install and configure

First test case

Web element

Element Locators

Example of locators

Chropath

Web driver commands

Eclipse and TestNG

About Eclipse

Choose and download

About TestNG

Testng installation on eclipse

Testng Annotations

Pass Fail and Skip test cases

Run test cases in batch

testng.xml - Explanation

testng grouping

Running tests parallely

dependsOnMethods

dependsOnGroups

Prioritization

Passing parameters

Data providers

Read data from excel

Ant - XSLT reports

Testng listeners

Cross browser testing

Page Object Model



Ant - XSLT reports
 
Ant is a software build tool which can be used to automate software build process of application/s. Its simpler and easier tool compared to other tools.

Apache Software Foundation developed Ant. It has java libraries and command line operational is present.

Although TestNG generates reports, those are not user friendly reports like the XSLT reports generated through Ant.

Through TestNG reports, we can only see how many passed, how many failed and how many skipped. It doesn't show the metrics user friendly. Client is not interested in knowing how many passed skipped etc... but user friendly reports like percentage of all tests passed or failed etc...

Normal TestNG reports can be seen in index.html file under test-output folder.

This test-output folder is present directly under project folder.

Suppose you have 10 to 20 tests, then TestNG is ok.

But if there are 1000 tests, it's hard to debug/go-through all tests. So ant comes into picture to develop user-friendly or client-friendly reports

You need to download and install ant before it can be used. Go to google.com and type " Apache ant download" .

Click on top most link that takes to Apache org site where you can see ant downloadable. If you have Java 8 installed, the select the corresponding download- zip file.



After download, extract the files into a folder.

After that you need to download some more jar files that are necessary for generating XSLT reports

1) Saxon.jar

2) Saxon Liason.jar

Also you need to place all the jar files (including the above jars) under some d:/jars files.

This location will be linked to jar files folder in build.xml. Keep all the necessary jar files in to this folder.

Following operations can be performed through ant in command prompt:

1) Go to the folder where build.xml is present and type "ant" in Command prompt. A build folder will be created under the project folder.

2) Now type "ant run" and testng will also get executed. Normal reports would be seen in CP.

3) Now copy testng-results.xsl file in the same path as build.xml file is present. Then click "run generateReports". If the build is successful, a new folder will be created by ant. Name of the folder is XSLT reports.

4) Inside this folder, "index.html" will be present. If you double click on this file, you will see XSLT reports which are user-friendly.

I conduct online tutions on Manual Testing, Selenium and the following. For more details contact anandaibmindia@gmail.com
Manual Testing - 1600/-           Selenium - 1600/-
           Jsp and Servlet -2000/-           Java training - 2000/-