Selenium Java Data Driven Test Case Example using Apache POI Excel Library
In this tutorial, we will go through step by step process on how to use the data from .xlsx (XSSF) to drive the test case.
In this Data Driven example using apache POI, i have taken form authentication example from the websitehttp://the-internet.herokuapp.com/login.
Excel workbook contains the data for user name and password which is fed to the test method using @DataProvider Annotation of TestNG.
@DataProvider method will fetch the data from excel sheet using apache POI XSSF library and feeds the data to the @Test method.
Please subscribe to the youtube channel to get the latest updates.
In this Data Driven example using apache POI, i have taken form authentication example from the websitehttp://the-internet.herokuapp.com/login.
Excel workbook contains the data for user name and password which is fed to the test method using @DataProvider Annotation of TestNG.
@DataProvider method will fetch the data from excel sheet using apache POI XSSF library and feeds the data to the @Test method.
For more details please go through the video.
Please subscribe to the youtube channel to get the latest updates.
Comments
Post a Comment