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



Selenium - Priority
 
Suppose there are three test methods and we want the order of execution of those test methods in our own way, and then TestNG provides us with a priority attribute to be marked for that particular test in numbers
Eg:

@Test(priority=1)
Public void login(){
System.out.println("inside login");
}

@Test(priority=3)
Public void logout(){
System.out.println("inside logout");
}

@Test(priority=2)
Public void Search(){
System.out.println("inside Search items");
}


In the above example, login, search and logout will be executed in the correct order; otherwise if priority is not set, then TestNG will execute the tests in some random order. T


There is no rule that priority should start from 1, it can be from any number.

If there are two test methods with same priority, Then the order of the same priority. number is handled by TestNG in a random way.

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