TestNG Tutorial #12 – How to Use DataProvider in TestNG Selenium

In this TestNG tutorial we will learn How to Use DataProvider in TestNG Selenium to perform data driven testing for login functionality of any web portal.

This tutorial will walk you through the real scenario with example of dataprovider usage in order to perform data driven testing in Selenium WebDriver with TestNG.

TestNG Tutorial #13 – Move TestNG DataProvider into Different File

In this TestNG tutorial we will learn How to Move TestNG DataProvider into Different File. When you are referring to test data from TestNG DataProvider file, it is advised not to have data provider in each of your test case file.

When you externalize the data provider into separate file and refer the same file from all your test cases then your code become more maintainable. In this tutorial I will walk you through the process of moving the testng dataprovider into different file and referring it in your test cases.

TestNG Tutorial #14 – How to Pass Parameter from TestNG.xml File

In this TestNG tutorial we will learn How to Pass Parameter from TestNG.xml File. We will learn step by step how to define the parameters in the testng.xml file and then reference those parameters in your test case files.

TestNG Tutorial #15 – What are TestNG Listeners

In this TestNG tutorial we will learn What are TestNG Listeners. TestNG provides @Listeners annotation to implement listeners in your test cases.

TestNG listeners listen to every event that occurs in the Selenium Test Case. Listeners modify the TestNG behavior which helps to redirect to new block of code based on certain events in your tests, for example, capture screenshot if test case failed.

TestNG Tutorial #16 – How to Capture Screenshot for Failed Tests in TestNG

In this TestNG tutorial we will learn how to Capture Screenshot for Failed Tests in TestNG. TestNG provides @Listeners annotation to implement listeners in our test case and capture the screenshot on failure of any test case while test execution.