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



TestNG - dependsOnGroups
 
Consider the following example:


public class groupDepends(){
@Test (groups= {"basic"})
public void login(){
system.out.println("inside login");
}

@Test (dependsOnGroups= {"basic"})
public void afterlogin(){
system.out.println("inside login");
}

@Test (groups= { "functional" })
public void payment (){
system.out.println("inside payment");
}
}



1) Basic and Functional are two groups.
2) In the above example the afterLogin method will be executed only if login test method successfully executed.
3) It means afterLogin method which is dependent on basic group executes only after the test method annotated with basic group Successfully executes.
4) Other wise afterLogin will be skipped that means not executed.

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