Travel in India Facebook Groups

Travel in India Facebook Groups

1)Travel Blogs Promotion

2)Tourism in India

3)WORLD OF TRAVEL

4)Travel Solutions

5)Tours and Travels WorldWide

6)TRAVEL INDIA

7)Travel India

8)Travel INDIA

9)Travel India

10)Travel Lovers India

11)Travel Bloggers and Writers India

12)India Travel Stories

13)India Travel Free Ads

14)All India Travel Group

15)Travel + Vacation

16)TRAVEL ADDICTION

17)Travel Worldwide

18)Travel & Nature, Science & Technology

19)Foodies in India, Travel, Shopping, Media, Bloggers, Food, Health

20)Indian Travel Bloggers

21)Exclusive excursion tours worldwide

22)“Kerala Tourism”

23)Kerala Tourism

24)Kerala Tourism Guide

25)Tourist Places and Attraction in India

26)Telangana Andhra Pradesh World Wide Telugu People

27)beautiful tourist places in INDIA ?

28)ANDHRA PRADESH TOURISM DEVELOPMENT CORPORATION

29)Travel Videos

30)Amazing Travel Videos

31)TRAVELLING AROUND THE WORLD

32)The Southern Kingdom

33)WorldWide Travel & Tourism,Hotels -The best Deals,Tips & Job opportunities

34)Away from city life

35)Facebook Club

36)Most Wonder

37)All Amazing Things

38)Incredible India

39)Travel Destinations

40)My Travel Dairy

41)I Love Traveling :) :) :)

42)I Love Traveling

43)~ People Who Love to Travel ~

44)Love to Travel

45)Travel Tips

46)Travel and Tourism

47)I Want to Travel the World

48)Incredible India Tourism Places

49)Global Traveling Channel

50)Traveller

51)Kerala Tourism

52)Yathra

53)TRAVEL AND TOURISM INDUSTRY PROFESSIONALS

54)YouTube Travel Video's (Best Of)

55)BLOGGERS AND TRAVELERS

56)Travel Addicts

57)TRAVELLERS

58)WORLDWIDE TRAVEL

59)Adventures Travels Club

60)TRAVEL

61)Tours and Travel

62)Travel Buddies

63)Travel & Tours

64)Travel: Incredible India

65)Travels Link

66)Travel &  Lifestyle

67)Indian Travel Agency

68)Travelling

69)Travellers

70)Inder Travels

71)Travel Group

72)FRIENDS,...I AM A TRAVELER........??????? ??? ?????...

73)Travel Guide and Food India

74)Travel Destination Kerala & India

75)India for Travellers

76)Indians

77)Indian Travel Agents & Tour Operators

78)NRI's Travelling To India & Beyond

79)Bucket List Travel

80)Just Go Vacation

81)All India traveling...

82)TRAVEL INDIA COMMUNITY OF TRAVEL AGENTS

83)Indian Travel

84)Indian Travel

85)Indian Travellers

86)Travel Diaries

87)Travel Club - India.

88)Travel lovers

89)Travel Directory

90)My Trip

91)BEST TRAVELS GROUP

92)TRAVELING GUIDE CLUB

93)Attractions Of India

Software Testing Project

Software Testing Project

Application: GCRShop Online Shopping Web Portal
i) Admin Interface
www.gcrit.com/build3/admin/
ii) User Interface 
www.gcrit.com/build3/

Admin Interface: For Software Application maintenance...
User Interface: For Conducting specific Business Operations
----------------------------------------------- 
Test Level: System Testing
Test Type: Functional Testing
   Functionality Testing, Database Testing....
Note: Database Testing is a subset of Functional Testing, but It is also part of the performance Testing....
Functional & System Testing....   
----------------------------------------------- 
1) Project Information
2) Project Description
3) Stake Holders of the Project
4) Interfaces of the Project/AUT
5) Features to be Tested in Admin Interface
6) Features to be Tested in User Interface
7) Test Requirements, Test Scenarios, and Test Cases...
8) Derive Smoke Test Cases for Admin Interface
9) Derive Smoke Test Cases for User Interface
10) Derive Comprehensive (All Possible) Test Cases for Admin Interface...
11) Derive Comprehensive (All Possible) Test Cases for User Interface...
----------------------------------------------- 
1) Project Information

Domain: ECommerce

Note: Domain means an Area, Software Development/Testing point of view domain means, Project 
Business Area...

Important Domains in the Information Technology Industry...
BFSI.....
ERP
Banking...
Insurance....
Telecom
Healthcare
Ecommerce
Retail Market
Others (Anti Virus, Games, Etc...)
----------------------------------
Sub-Domain: Business to Customer (B2C)
(Ecommerce - B2B, B2C, C2B, C2C)

Application: Online Shopping Web Portal

Application Environment: LAMP (Linux, Apache, MySQL, PHP)

Type of the Application: Public Web Application (Internet Application)
----------------------------------------------- 
2) Project Description

In this Software Application we have 2 Interfaces, 
1) Admin Interface / Server side Interface - Application Maintenance (by Admin users of the Organization...)
2) User Interface / Client side Interface - Conduct Specific Business Operations...
--------------------------
Online Shopping Application....
Type 1: Vendors only develop their own Online Shopping portal to Sell their products
Type-2: Some Third party people develop Online Shopping portal to Sell & Buy products

Our Application also 2nd Type...

Admin Interface: 
In Admin Admin Interface. First Manufacturer Register, Add Category, Add Product, Add Currency...
Edit Manufacturer,  Delete Manufacturer, Edit Category, Delete Category, Edit Product,  Delete Product, 
Edit Currency, Set Default Currency, Delete Currency, Generate Product wise Reports, and Generate 
Customer wise Reports...

Admin User Add Financial Service Provider, Edit Financial Service Provider, Delete Financial Service Provider...
Admin User Add Courier Service Provider, Edit Courier Service Provider, Delete Courier Service Provider....
Admin User Add Distributor, Edit Distributor, Delete Distributor...
Admin User Add Report, Edit Report, Delete Report....
-------------------------
User Interface:
In User Interface, Portal Developer provides Interface between Manufacturers and Customers,
Manufacturers place /show their Product Information ans Sell...,
Customers view Products, Search Products, Register, Login to Application, Buy Products, and Track Orders etc...
----------------------------------------------- 
3) Stake holders of the Project (Production Environment...)

i) Web Portal Developer/s
ii) Manufacturers / s
iii) Financial Service Providers
iv) Distributes of the Manufacturers / s
v) Courier service Providers
vi) Customers (General, and Registered Customers)
----------------------------------------------- 
4) Interfaces of the Project / AUT

This Application has 2 Interfaces,

i) GCRShop Admin Interface - Maintenance of the Application

Master Data: Required Data for Running the Application
(Ex: In Internet Banking Application, Add Bank info, Branches, ATMs, Products, Bank History etc...)

GCRShop Adimin Interface Login Details,

URL: http://gcrit.com/build3/admin
-----------------------
http: Hyper Text Transfer Protocol
www - World Wide Web
gcrit.com - Web Domain / Web Address
build3 - Folder
admin - Sub-Folder
-------------------
http://english.tupaki.com/
tupaki.com - Web Domain
english - Sub Domain

http://telugu.greatandhra.com/
telugu - Sub Domain
------------------------
http://www.gcrit.com/build3/admin/login.php
login.php - Web Page

http://www.gcreddy.com/2016/11/java-interview-questions-and-answers.html
java-interview-questions-and-answers.html - Web Page

Web Domain/Web Page...
Web Domain/Folder/Web Page...
Web Domain/Folder/Sub Folder/Web Page...
Sub Domain/Web Domain/Web Page...

Username: admin
Password: admin@123
----------------------------
ii) GCRShop User Interface - To conduct specific (Online shopping) business operations

> View Product/s, Search Product/s, Advanced Search product/s, Customer/User Registration, Login, 
Choose Product/s, Add to Cart, Buy product/s, Track Order/s Status, Return product/s....

URL: http://www.gcrit.com/build3/
Note: No restrictions, anybody can use this interface, but if you want to buy the product/s
then you need to register (Free) and Login....
----------------------------------------------- 
5) Features to be Tested in Admin Interface

i) Launch the Application
ii) Admin Login to Application
iii) Redirect Operation from Admin to User Interface
iv) Add / Edit / Delete Manufacturer
v) Add / Edit / Delete Category
vi) Add / Edit / Delete Product
vii) Add / Edit / Delete/Set as Default Currency
viii) User & product Reports...
----------------------------------------------- 
6) Features to be Tested in User Interface

i) Launch the Application
ii) View product/s
iii) Search Product/s
iv) Advanced Search Product/s
v) Customer / User Registration
vi) Customer / User Login
vii) Buy product/s (Login , Choose Product/s , Update Quantity, Delete Product/s, Change the Details,
Select Payment Option, Checkout...)
viii) Track Order Status....
----------------------------------------------- 
7) Test Requirements, Test Scenarios, and Test Cases....

Business Requirements (BRS...)
 Software Requirements(SRS...)
  Test Requirements...
   Test Scenarios (Positive and Negative...)
    Test Cases (Positive and Negative Test Cases...)
    Test Data (* Test Data required for some Test Cases only)
---------------------------
Software Requirements / Test Requirements...
 Functional Requirements
 Non Functional Requirements
  Performance Requirements
  Usability Requirements
  Reliability Requirements etc...
-------------------------
Functional Requirement: Admin User Login to GCRShop (http://gcrit.com/build3/admin) Admin Interface

Test Scenarios:
i) Admin Login with valid Username and valid Password (Positive test Scenario)
ii) Admin Login with valid Username and invalid Password (Negative Test Scenario)
iii) Admin Login with invalid Username and valid Password (Negative Test Scenario)
iv) Admin Login with invalid Username and invalid Password (Negative Test Scenario)
v) Admin Login with blank Username and blank Password (Negative Test Scenario)
Etc...
--------------------------------------
Test Case:
1) Test Case ID:TC_Ad_001
2) Test Case Name/Description: Verify Admin Login to the Application (with valid input)
3) Test Suite Id: TS_Ad_01
4) Priority: P0
5) Pre Condition: None
6) Steps to be Executed: 
 i) Launch the Browser
 ii) enter Username
 iii) Enter Password
 iv) Click "Login" Button
7) Test Data : Ref: TestData.xlsx...
8) Post-Condition: Get Index Page of the Application
9) Software & Hardware: Hardware configuration, Windows 7 OS etc...
10) Expected Result: Index Page / "http://www.gcrit.com/build3/admin/index.php"
11) Actual Result: 
12) Test Result: Pass/Fail
13) Comments...
-----------------------
Test Data
Username: admin
Password: admin@123
-----------------------
Note: No Test Data for Some Test cases...
-----------------------------------------
Software Requirement
 Functional Requirement
  Test scenario/s
   Test Case/s & Test Data...
----------------------------------------------- 
Performance Requirement: Admin Login to the Application with 1000 Concurrent Users in 8 Seconds
Usability Requirement: Fields Alignment and Font Sizes in Admin Login Page (Before Login)
Reliability Requirement: Redirect From Admin Interface to User Interface 20 Times...
----------------------------------------------- 
8) Derive Smoke Test Cases for Admin Interface

i) Verify Launch Application (Admin Interface, Includes Launch Browser)
ii) Verify Required Elements availability of Login Page
iii) Verify Admin Login with valid input for Admin Interface of the Application
iv) Verify Required elements availability of Admin index page (after login)
v) Verify Add Manufacturer
vi) Verify Add Category
vii) Verify Add Product
viii) Verify Add Currency
ix) Set default Currency Etc...
----------------------------------------------- 
9) Derive Smoke Test Cases for User Interface

i) Verify Launch the User Interface of the Application with valid URL
ii) Verify Required Elements availability (Constant / Fixed Elements) of User Interface Home Page
iii) Verify Customer Registration to the Application with valid Data.
iv) Verify Customer Login with valid Email Address and password to User Interface
vi) Verify Add Product/s 
vii) Verify Selection of Payment Mode
viii) Verify Checkout Process...
ix) Verify Customer "Track (Order) Status etc...
----------------------------------------------- 
10) Derive Comprehensive (All Possible Test Cases) for Admin Interface

i) Verify Launch Application (Admin Interface, Includes Launch Browser)
ii) Verify Required Elements availability of Login Page
iii) Verify Redirect Functionality before Login tot the Application (From Admin to User Interface) 
iv) Verify Admin Login with valid input for Admin Interface of the Application
v) Verify Redirect Functionality after Login tot the Application (From Admin to User Interface) 
vi) Verify Admin Login with Invalid input for Admin Interface of the Application
vii) Verify Admin Login with 3 sets of Invalid data (Lock the Login Functionality for 5 minutes)
viii) Verify Admin Login to Admin Interface after 5 minutes
ix) Verify Required Elements availability in Admin Index Page
x) Verify Add Manufacturer
xi) Verify Edit Manufacturer
xii) Verify Delete Manufacturer
xiii) Verify Add Category
xiv) Verify Edit Category
xv) Verify Delete Category
xvi) Verify Add Product
xvi) Verify Edit Product
xvii) Verify Delete Product
xviii) Verify Add Currency
xix) Verify Edit Currency
xx) Verify Delete Currency
xxi) Verify Set Default Currency
xxii) Verify Customer Report/s
xxiii) Verify Product Report/s
xxiv) Verify Log Off 
----------------------------------------------- 
11) Derive Comprehensive (All Possible) Test Cases for User Interface

i) Verify Launch the User Interface of the Application with valid URL
ii) Verify Required Elements availability (Constant / Fixed Elements) of User Interface Home Page
iii) Verify products "Search"...
iv)  Verify products "Advanced Search"...
v) Verify "create an account" / Customer Registration with valid input data
vi) Verify "create an account" / Customer Registration with invalid input data
vii) verify "login"/Customer Login valid input data
viii) verify "login"/Customer Login invalid input data
ix) Verify "Shopping Cart" before Select any product
x) Verify "Shopping Cart" after Select any product/s
xi) Verify "Update" in Shopping Cart while add a product
xii) Verify "Update" in Shopping Cart after add a product
xiii) Verify "Remove" the Product from Shopping Cart
xiv) Verify "Checkout" before select any product and before Login
xv) Verify "Checkout" after select any product/s and before Login
xvi) Verify "Checkout" before select any product and after Login
xvii) Verify "Checkout" after select any product/s and after Login
xviii) Verify "Change Address" with another address
xix) Verify availability of all Payment Methods
xx) Verify Select "Payment Method"
xxi) Verify "CheckOut" Process
xxii) Verify "LogOff" Etc...
----------------------------------------------- 
Write Detailed Test Cases for Smoke Tests in Admin Interface

i) Verify Launch Application (Admin Interface, Includes Launch Browser)

1) Test Case ID: TC_Ad_001
2) Test Case Name: Verify Launch Application (Admin Interface, Includes Launch Browser)
3) Test Suite ID: Ad-01
4) Pre-Condition: None
5) Step to be Executed:
 i) Launch the Browser
 ii) Navigate to GCRShop Admin Interface (Home Page) ("http://www.gcrit.com/build3/admin/")
6) Test Data: None
7) Post Condition: GCRShop Admin Home Page
8) Verification Point:
    Capture the Page Title and Compare with Expected
9) Expected Result: GCRShop
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
ii) Verify Required Elements availability of Login Page

1) Test Case ID: TC_Ad_002
2) Test Case Name: Verify Required Elements availability of Login Page
3) Test Suite ID: Ad-01
4) Pre-Condition: Login Page
5) Step to be Executed:
 None...
6) Test Data: None
7) Post Condition: Login Page
8) Verification Point/s:
    Verify the existence of Username, Password Edit boxes and Login Button
9) Expected Result: Availability of Username, Password Edit boxes and Login Button
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
iii) Verify Admin Login with valid input for Admin Interface of the Application

1) Test Case ID: TC_Ad_003
2) Test Case Name: Verify Admin Login with valid input for Admin Interface of the Application
3) Test Suite ID: Ad-01
4) Pre-Condition: Login Page
5) Step to be Executed:
 i) Enter "Username"
 ii) Enter "Password"
 iii) Click "Login" Button
6) Test Data:
 i) Username: admin
 ii) Password: admin@123
7) Post Condition: Admin Index Page
8) Verification Point/s:
    Capture the "Current URL" after Login and Compare with Expected
9) Expected Result:"http://www.gcrit.com/build3/admin/index.php"
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
Manual Test Case: Verify Launch Application 

Test Steps:
1) Test Case ID: TC_Ad_001
2) Test Case Name: Verify Launch Application (Admin Interface, Includes Launch Browser)
3) Test Suite ID: Ad-01
4) Pre-Condition: None
5) Step to be Executed:
 i) Launch the Browser
 ii) Navigate to GCRShop Admin Interface (Home Page) ("http://www.gcrit.com/build3/admin/")
6) Test Data: None
7) Post Condition: GCRShop Admin Home Page
8) Verification Point:
    Capture the Page Title and Compare with Expected
9) Expected Result: GCR Shop
10) Actual Result: (*After Execution)
11) Test Result: Pass/Fail (*After Execution)
12) Comments:
----------------------------------------------- 
Selenium Test Case:

public class LaunchApplication {

public static void main(String[] args) {
//Instantiate the Browser Driver
System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("http://www.gcrit.com/build3/admin/");

String PageTitle = driver.getTitle();

if (PageTitle.equals("GCR Shop")){
System.out.println("GCR Shop Admin Home Page displayed - Passed"); 
}
else {
System.out.println("GCR Shop Admin Home Page Not displayed - Failed"); 
}
driver.close();
}
}
-------------------------------------------------------------------------

Software Testing Jobs

Software Testing Tutorials
Software Testing Jobs in India
1)Tcs-bps Hiring Manual Testers

Location :Mumbai

Interview Date: 18th April 2017 Tuesday

Company Name :TCS

Experience :1 - 6 Years

Job Description :
Good understanding of testing methodologies and concepts
Should have experience in Manual Testing procedures
Familiarity with Test Planning and Reporting
Writing and Executing test cases based on Requirement Document
Identification and analysis of software defects.

Address :
Tata Consultancy Services
Plant No. 12, Gate No. 4,
Godrej & Boyce Complex, L B S Marg, Vikhroli West,
Mumbai, Maharashtra 400078
For More Details :

-------------------------------------------------
2) Senior Test Engineer

Location :Kochi

Walk-in Interview on 20th April from

Company Name :Williams Lea India Private Limited

Experience :3 - 8 Years

Job Description :
3-5 Years of experience in creating and executing the test cases for Web based application.
Strong Experience in Automating Web Application Testing using Selenium Web Driver with TestNG framework.
Strong Experience in Java Programming, Selenium Web Driver, JUnit and TestNG.
Experience in identifying & prioritizing the test scenarios and test cases.
Experience in test estimation with complexity analysis.

Address :
Williams Lea Tag
Plot#1, Muthoot Technopolis
Kakkanad,
Cochin, Kerala, India

Contact :04843008101
For More Details :
----------------------------------
3) Senior Level Automation Engineers

Location :Bangalore   

Company Name :Mindteck (India) Ltd

Experience :5 - 8 Years

Job Description :
Experience working on Automation Testing, Designing Automation
Frameworks
Should have at least 3-4 years experience hands on Selenium Java
Should be okay with handling Manual testing
For More Details :------------------------------------------
4)Manual Testing/software Testing

Location :Kolkata

Company Name :2COMS Consulting Pvt Ltd

Experience :3 to 5 years

Job Description :
Should have experience in Manual Testing procedures
Familiarity with Test Planning and Reporting
Writing and Executing test cases based on Requirement Document
Identification and analysis of software defects

Address :
2Coms Consulting Pvt Ltd
388,Block-G New Alipur
KOLKATA,West Bengal,India 700053

Contact :9748879223
For More Details :-------------------------------------
5)Manual Testers

Location :Gurgaon   

Company Name :Aspire Systems India (P) Ltd

Experience :2 - 5 Years

Job Description :
Strong knowledge in Manual Testing and QA processes
Knowledge in ecommerce Testing - preferable
Strong logical skills, Good Communication skills and Customer Focus

Address :
806- 807, Udyog Vihar,
Phase-V, 1st Floor, Near Trident Hotel

Contact :91-124-6154000
For More Details :

---------------------------------------
6)Automation QA Analyst
Location : Hyderabad

Company Name :DST Worldwide Services India Pvt. Ltd

Experience :1 - 3 Years

Job Description :
Good understanding of Selenium concepts
Good Programming Skills in .Net/Java
Strong Debugging and code review skills
Individual Contributor for all automation testing tasks assigned to him/her
Familiar with preparing SQL queries
For More Details :
-----------------------------------------------
7)Automation Test Engineer

Location :Chennai   

Company Name :Teamware Solutions:

Experience :3 - 5 Years

Job Description :
Select and develop appropriate test automation tools, applying the latest techniques in test
automation.
Work with the Development team to capture and reuse automated Unit Test Cases, Test Stubs and
Drivers, and other Development test objects.

Contact : +91 80 49389837
For More Details :

----------------------------------------------
8) Engineer-manual

Location : Mumbai

Company Name :Ness technologies (I) Pvt Ltd.

Experience :2 - 3 yrs

Job Description :
Execute test cases manually.
Identify, record, document and track defects.
Able to build, maintain and execute automated regression test cases and share reports with management.
Required Mandatory Skills Should have 2+ Years of experience as a Quality Assurance Engineer.
Hands-on knowledge of PL SQL.

Adrress :
Malad Address
Ness Software Engineering Services
501, Interface 11, New Link Road,
Malad (West), Mumbai 400 064
For More Details :

-----------------------------------
9) Manual Testing - Capital Markets

Location :Mumbai

Company Name :Capgemini Technology Services India Limited

Experience : 3 - 7 yrs

Date and Day : Saturday 22nd April 2017
Time : 10 AM to 1PM

Job Description :
Face to Face Drive for Manual Testing
Must have experience in Capital markets Domain
Please note: Candidates with other domain will not be considered

Adrress :
3rd Floor, Plant No. 5, M - VII office.
Godrej & Boyce Mfg. Co. Ltd.,
Pirojshanagar, L.B.S. Marg,
Vikroli (W), Mumbai 400079.
For More Details :
-------------------------------------------

Computer and Mobile Software Applications

Computer and Mobile Software Applications

Earlier Computer Software only famous, but nowadays Mobile Software also. Computer Software Development & Software Testing and Mobile Software Development & Software Testing.

We can conduct Software (Computer and Mobile) Testing in two ways,

i) Manual Testing
ii) Automated Testing and Test Automation

Testing Software (Computer and Mobile) manually without using any Test Tool or Test script is called manual Testing.

Testing Sofotware (Computer and Mobile) by using any Test Tool or Test Script is called Test Automation or Automated Testing.

Types of Software
i. System Software  -Operating Systems Ex: MS Windows, UNIX..., Divice Drivers Ex: Printer...
ii. Programming Software Example: C, C++, Java, .NET, Oracle....
iii. Application Software Example: Banking, Insurance, ERP, Ecommerce, Healthcare...

Types of Computer Software Applications....
i. Desktop Applications (I-tier, II-tier...)
ii. Web Applications (III-tier, N-Tier...)
iii. Hybrid Applications (Basically Desktop Applications and communicate with web...)

Types of Mobile Software Applications...
i. Native Application
ii. Web Applications/ Web Apps
iii. Hybrid Applications

Note: Selenium supports Computer Web Applications and Mobile Web Applications, but It doesn't support, Desktop Applications and Mobile Native Applications.
Computer and Mobile Software
We  can conduct Automated Testing for Computer Software Applications using Selenium, UFT (formerly QTP), RFT, LoadRunner etc...Tools and for Mobile Software Applications using Appium, Selendroid, Webload etc..Tools.

TestNG Framework Annotations

TestNG Framework for Selenium
TestNG Framework Annotations

Important TestNG Annotations...

@Test - The annotated method is a part of Test Case

@BeforeMethod: The annotated method will be run before each Test Case in the current class is invoked
@AfterMethod: The annotated method will be run after each Test Case in the current class have been run

Example:
Test Cases...
i) launchBrowser()
ii) verifygoogleTitle()
iii) verifyyahooTitle()
iv) verifybankofAmericaTitle()
iv) closeBrowser()
--------------------------------
Test Execution Flow...

i) launchBrowser()
ii) verifygoogleTitle()
iii) closeBrowser()

i) launchBrowser()
ii) verifyyahooTitle()
iii) closeBrowser()

i) launchBrowser()
ii) verifybankofAmericaTitle()
iii) closeBrowser()
-----------------------------------
@BeforeClass: The annotated method will be run the first Test Method in the current class is invoked
@AfterClass: The annotated method will be run after all the Test methods in the current class have been run

Example:
Test Cases...
i) launchBrowser()
ii) verifygoogleTitle()
iii) verifyyahooTitle()
iv) verifybankofAmericaTitle()
iv) closeBrowser()
--------------------------------
Test Execution Flow....

i) launchBrowser()

ii) verifygoogleTitle()
iii) verifyyahooTitle()
iv) verifybankofAmericaTitle()

iv) closeBrowser()
-----------------------------------
@BeforeTest: The annotated method will be run before any Test Method belonging to the classes inside the tag is run.
@AfterTest: The annotated method will be run after all the Test Methods belonging to classes inside the tag 

Example:
Test Cases in Class 1...
i) launchBrowser()
ii) verifygoogleTitle()
iii) verifyyahooTitle()
iv) verifybankofAmericaTitle()
iv) closeBrowser()
--------------------------------
Test Cases in Class 2...

i) launchBrowser()
ii) verifyabcdeTitle()
iii) verifyxyzaTitle()
iv) verifysdfghjTitle()
iv) closeBrowser()
--------------------------------
Test Execution Flow...

i) launchBrowser()
ii) verifygoogleTitle()
iii) verifyyahooTitle()
iv) verifybankofAmericaTitle()
v) verifyabcdeTitle()
vi) verifyxyzaTitle()
vii) verifysdfghjTitle()
viii) closeBrowser()
-----------------------------------
Example 1: TestNG Program with "priority" Attribute

Test Cases....
i) launchBrowser()
ii) verifygoogleTitle()
iii) verifyyahooTitle()
iv) verifygcreddy()
iv) closeBrowser()
--------------------------------
Test Execution as per Alphabetical order...

i) closeBrowser()
ii)  launchBrowser()
iii) verifygcreddyTitle()
iv) verifygoogleTitle()
v) verifyyahooTitle()
-------------------------------------
public class Class3 {
public static WebDriver driver;

@Test (priority = 1)
public void launchBrowser(){
System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
}
@Test (priority = 2)
public void verifygoogleTitle(){
driver.get("https://www.google.co.in/");
String pageTitle = driver.getTitle();
Assert.assertEquals("Google", pageTitle);
}
@Test (priority = 3)
public void verifyyahooTitle(){
driver.get("https://in.yahoo.com/");
String pageTitle = driver.getTitle();
Assert.assertEquals("Yahoo", pageTitle);
}
@Test (priority = 4)
public void verifygcreddyTitle(){
driver.get("http://www.gcreddy.com/");
String pageTitle = driver.getTitle();
//System.out.println(pageTitle);
Assert.assertEquals("Software Testing", pageTitle);
}
@Test (priority = 5)
public void closeBrowser(){
driver.close();
}
}
-----------------------------------
Example 2: TestNG Program with "BeforeMethod, AfterMethod Annotations and "priority" Attribute

Test Execution Flow...

i) launchBrowser()
ii) verifygoogleTitle()
iii) closeBrowser()

i) launchBrowser()
iii) verifyyahooTitle()
iii) closeBrowser()

i) launchBrowser()
iii) verifygcreddy()
iii) closeBrowser()
--------------------------------
@BeforeMethod
public void launchBrowser(){
System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
}
@Test (priority = 1)
public void verifygoogleTitle(){
driver.get("https://www.google.co.in/");
String pageTitle = driver.getTitle();
Assert.assertEquals("Google", pageTitle);
}
@Test (priority = 2)
public void verifyyahooTitle(){
driver.get("https://in.yahoo.com/");
String pageTitle = driver.getTitle();
Assert.assertEquals("Yahoo", pageTitle);
}
@Test (priority = 3)
public void verifygcreddyTitle(){
driver.get("http://www.gcreddy.com/");
String pageTitle = driver.getTitle();
//System.out.println(pageTitle);
Assert.assertEquals("Software Testing", pageTitle);
}
@AfterMethod
public void closeBrowser(){
driver.close();
}
}
-----------------------------------
public class Class3 {
public static WebDriver driver;

@BeforeMethod
public void launchBrowser(){
System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
System.out.println("Application Launched - Passed");
}
@Test (priority = 1)
public void verifygoogleTitle(){
driver.get("https://www.google.co.in/");
System.out.println("Title is Google - Passed");
}
@Test (priority = 2)
public void verifyyahooTitle(){
driver.get("https://in.yahoo.com/");
System.out.println("Title is Yahoo - Passed");
}
@Test (priority = 3)
public void verifygcreddyTitle(){
driver.get("http://www.gcreddy.com/");
System.out.println("Title is Software Testing - Passed");
}
@AfterMethod
public void closeBrowser(){
driver.close();
System.out.println("Application Closed - Passed");
}
}
-----------------------------------
Example 3: TestNG Program with "BeforeClass, AfterClass Annotations and "priority" Attribute

Test Execution Flow...

launchBrowser()
i) verifygoogleTitle()
ii) verifyyahooTitle()
iii) verifygcreddy()
closeBrowser()
-----------------------------------
public class Class3 {
public static WebDriver driver;

@BeforeClass
public void launchBrowser(){
System.setProperty("webdriver.chrome.driver", "D:/chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
System.out.println("Application Launched - Passed");
}
@Test (priority = 1)
public void verifygoogleTitle(){
driver.get("https://www.google.co.in/");
System.out.println("Title is Google - Passed");
}
@Test (priority = 2)
public void verifyyahooTitle(){
driver.get("https://in.yahoo.com/");
System.out.println("Title is Yahoo - Passed");
}
@Test (priority = 3)
public void verifygcreddyTitle(){
driver.get("http://www.gcreddy.com/");
System.out.println("Title is Software Testing - Passed");
}
@AfterClass
public void closeBrowser(){
driver.close();
System.out.println("Application Closed - Passed");
}
}
-----------------------------------------------------------------