TestNG Complete Course for Beginners-Basic to Advance
4.6 (6 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
23 students enrolled
Wishlisted Wishlist

Please confirm that you want to add TestNG Complete Course for Beginners-Basic to Advance to your Wishlist.

Add to Wishlist

TestNG Complete Course for Beginners-Basic to Advance

Learn TestNG Testing Framework using Java and Selenium and implement it into any automation project. Face any interview!
4.6 (6 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
23 students enrolled
Created by Akanksha Agarwal
Last updated 7/2017
Curiosity Sale
Current price: $10 Original price: $55 Discount: 82% off
30-Day Money-Back Guarantee
  • 4.5 hours on-demand video
  • 36 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Assignments
  • Certificate of Completion
What Will I Learn?
  • Use testNG for any type of testing- Unit, Functional, End-to-End, Integration
  • Why you should opt for TestNG as a Testing Framework?
  • Use TestNG along with Selenium and create your own framework.
  • Understand various TestNG features like Parallel Testing, Parameterization, Grouping, Sequencing and Data Driven Testing.
  • Exclusive questions with answers that cover everything in TestNG for interview.
  • Implement TestNG in your project (wherever applicable) on your own.
View Curriculum
  • The students should at least know basic Selenium Webdriver functions before taking up this course.
  • The students should be aware of basic coding skills.


This is the place where you'll learn everything about TestNG from Basic to Advance (Look for the course details just a few lines down here)**. 

You don't need anything except for WILLINGNESS TO LEARN. Every lecture is a video screen cast of live coding and explanation of the topic. Every lecture explains one topic at a time and is a step by step guide.

You will be able to download all the resources(files and PDFs) and coding Files.

The entire course has been divided into two parts - Part 1 and Part 2 with number of lectures. You will find the entire presentation is a PDF format of Part 1 and Part 2 telling you about every topic that is part of this course. You are free to download those PDFs and read them or take a print out as per your comfort.

We keep updating the course for our students with new assignments that enhance your implementation skills.

There will be two dedicated teachers who will be available to respond to your queries and assess your assignment submission.

My experience in teaching over 600 students from all parts of the world in LIVE classes(through various online platforms) is used while creating this course for you. I know what students are looking for and what should be the IDEAL PACE for them to learn a new technical stuff.

What will you gain at the end of this course?

Confidence, confidence and confidence! To work independently using TestNG and face any interview.

******The entire course covers the following topics******: 

Introduction to TestNG

TestNG Annotations

First TestNG Test Case & Running a TestNG Test Case

Three Step Process

TestNG with Selenium

TestNG Test Suite Reports - Configuration File (testNG.xml)

TestNG Attributes - AlwaysRun, invocationCount, invocationTimeOut, timeOut, enabled, threadPoolSize

TestNG Grouping

Assertions and Soft Assert

Exception Handling and Skip Exception

Parallel Testing

Parameterization in TestNG

TestNG Parameters & Cross Browser Testing

TestNG DataProviders & Advance DataProvider Features

TestNG DataProviders with Excel

TestNG Listeners   

Factory Annotation in TestNG

What else?

Quizzes and Assignments with solution. Interview Preparation with exclusive interview questions and answers.

Who is the target audience?
  • Preferably Selenium Automation testers who are interested in learning TestNG with Selenium however, anybody who is interested in learning TestNG as a testing framework or wants to prepare for an interview can take up this course.
  • If you are preparing for an interview, this course covers all and is an ideal solution to your problem.
Students Who Viewed This Course Also Viewed
Curriculum For This Course
21 Lectures
Course walk through
1 Lecture 08:33
Introduction to TestNG
2 Lectures 19:13

In this lecture, we will see how to create the setup to start using TestNG along with Selenium.

TestNG SetUp

TestNG Advantages
TestNG - Part1
9 Lectures 02:22:56

In this lecture, you will learn about different TestNG annotations and how to use them.

The downloadable "TestNG Part1.pdf" contains everything that is going to be covered in TestNG- Part 1 section. You can download it and refer to it after every lecture.

TestNG basics - Annotations, Writing and Running first TestNG test case

TestG with Selenium - Three Step Process

1) Go to amazon.com. 2) Fetch the title and print it on console. 3) click on "Your Amazon" hyper link. 4) Fetch the title and print it on console. 5) Quit the browser.
Use TestNG annotations for Selenium Test
1 question

In this lecture, you will learn how to create a TestNG test suite using a configurations file(testNG.xml) and about TestNG report generation.

TestNG Basics - Test Suite and Test Report

Create two TestNG classes. One to log on to Facebook.com and another one to log on to Ebay.com Execute these two classes as two different 'test scenarios' by using testNG.xml config file.
Execute different test cases using testNG.xml
1 question

In this quiz you will be asked basic questions related to selenium. This will help you revise everything that you've learnt so far.

TestNG Basics
4 questions

This lecture explains how you can prioritize and sequence your test cases in TestNG.

TestNG basics - Test Case Prioritization

In this lecture, you will learn about dependency test in TestNG. How to declare method dependency and what is soft dependency and hard dependency.

TestNG Dependency Test and Method Dependency

This lectures explains how to group your test cases in TestNG, why group your test cases and how you can declare if a method is dependent on other groups.

Test Case Grouping and Group Dependency

1) Create two TestNG classes. 1st Class - go to Amazon.com & Click on Your Amazon link and log in to your account. Search an item on Amazon. 2nd Class - Write a class to go to Ebay.com & Login to your account. Search an item. Group the test cases on the basis of Login and Search.
Group the test cases
1 question

In this lecture, you will learn about other testNG attributes like invocationCount, invocationTimeOut, timeOut, alwaysRun, threadPoolSize.

TestNG - Other Attributes

This quiz will basically deal with attributes in TestNG.

TestNG Attributes
5 questions

Write a TestNG class. 1) Open google.com 2) Find the google searcg button webelement. 3) Fetch its text and assert it to be equal to "Google Search". 4) Do this 10 times using 5 threads. 5) Print the name of the thread. 6) quit the browser.
Generate load using invocationCount and threadPoolSize
1 question

This lecture talks about assertions and the difference between hard asset and soft assert and how to achieve soft assertion in TestNG.

Preview 20:06

Create a TestNG test class. Write a code to login to facebook. After login, assert the title of the home page. Even if the assertion fails, the execution should go to the next line of code which is taking a screenshot of the home page. Quit the browser.
Using soft assertion for verification.
1 question

This lecture explains what is expectedException attribute and how you can skip a test case based on condition using Skip Exception.

Exception Handling and Skip Exception

Create a TestNG test class. write a code to login to Facebook. Verify that actual and expected titles are same. If verification fails, skip the test case and throw an exception. On verification failure, you also have to take a screenshot of the page. Also, the test case should be marked as Pass.
Skip the test case if condition fails without marking the test case as skipped.
1 question
TestNG - Part 2
8 Lectures 01:31:29

In this lecture, you will learn how to do parallel testing in TestNG.

PS: Check the resources for TestNG Part 2 PDF which is a summary of Part 2.

Parallel Testing in TestNG

In this lecture, you will learn what is parameterization and how can we achieve it in TestNG using Parameters.

Parameterization in TestNG & @Parameters Annotation

Write a TestNG test class. Write a code to login to your email (gmail/yahoo etc) account. Pass your email id and password as parameters from testNG.xml.
Login to your Email account using parameters.
1 question

In this lecture, you will learn how to do cross browser testing in TestNG using parameters.

Cross Browser Testing using TestNG

In this lecture, you will learn parameterization using DataProviders.

PS: Download the files from next lecture to practice DataProviders.

Parameterization using DataProviders

This lecture will tell you about how you can have a separate class for DataProviders and call them in test functions using dataProviderClass attribute. You will also learn how you can use same DataProvider for more than one functions.

DataProviders Advance Features

Create a TestNG test class. Write a code to login to Facebook with three different user ids and passwords at the same time i.e. in parallel.
Login to Facebook for different users using Data Providers but in parallel.
1 question

In this tutorial, you will learn data driven testing using DataProviders.

DataProviders with Excel

Create a TestNG test class. Write a code to calculate new salary of employees and print them. New Salary = Salary + Bonus. Salary and bonus should be read from an external file for all employees.
Calculate new Salary of all employees using dataProviders
1 question

This lectures explains the use & implementation of listeners in TestNG.

Preview 15:50

In this lecture, you will learn about Factory annotation-what is it and how to use it?

TestNG Factory Annotation
Interview Questions
1 Lecture 02:15

This section deals with interview questions along with answers to them.

TestNG Interview Questions
About the Instructor
Akanksha Agarwal
4.6 Average rating
6 Reviews
23 Students
1 Course
Online trainer/instructor for Selenium, TestNG and Java

I'm a selenium instructor with around 8+ years of IT experience  and 3 years in automation testing using Selenium Webdriver. I have 1.5 years of experience in giving classroom as well as online training in Selenium through various reputed online teaching platforms/websites. My experience in the industry as a developer as well as an automation engineer helps me teach  students in the best and easiest possible way. My experience in Java as a developer makes it easy for me to explain and students to understand the Java coding concepts well. I have taught over 500 students in India and around the world and have proven track record of students loving my teaching style.