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



Passing parameters
 
Suppose you want to pass some data or parameters from testng.xml to test methods in Test class, then we have a provision to pass such data as parameters tag and @parameters annotation. Lets see how: Eg: testng,xml looks like this:
<Suite name=" SuiteParametersDemo" >
<Test>
<Parameter name=" email" value=" ananda@gmail.com" />
<Parameter name=" password" value=" password123" />

<Classes>
<Class name=" ParametersDemo" />
</Classes>
</Test>
</Suite>
The class looks like this:

Public class ParametersDemo(){
@Parameters(" email" ," password" )
@Test
Public void login(String name, String password){
System.out.println(" login details :" + name + " and " + password)
}
}
If we execute or run the above program, it successfully executes and prints email and password.
We use this parameterization concept very rarely as we have another concept called DataProvider which can be used to pass bulk data to the test method.

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/-