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 #11 – DataProvider in TestNG | Data Driven Testing

In this TestNG tutorial we will learn about DataProvider in TestNG and how to user TestNG dataprovider to perform data driven testing in Selenium WebDriver.

TestNG library provides @DataProvider annotation which is used to mark a method as supplying data for a test method. Watch the full series to learn complete TestNG test framework.