filmov
tv
Read data from Excel to DataProvider in Selenium

Показать описание
Please use the following link to install the Katalon Studio:
Read data from excel to dataprovider in selenium will explain how we can get the data from excel sheet and will pass the same to testng dataprovider. While working with the data driven testing we need to pass so much of data to the test methods as parameters. But maintaining the data is very difficult within the method as sometimes we need to pass multiple data sets to same method as parameters to test the same functionality.
To simplify this we will use TestNG DataProvider concept. Will read multiple sets of data from excel and will place the same in dataprovider object array and will pass the same to the test method as parameters. Here, we need to remember one thing is; dataprovider array values and test method parameter values must be same.
We will take one sample program to read data from excel to dataprovider. Here to interact with the excel sheet will use Apache POI api. Will read some sample data from excel to dataprovider and will print the same.
Read data from excel to dataprovider in selenium will explain how we can get the data from excel sheet and will pass the same to testng dataprovider. While working with the data driven testing we need to pass so much of data to the test methods as parameters. But maintaining the data is very difficult within the method as sometimes we need to pass multiple data sets to same method as parameters to test the same functionality.
To simplify this we will use TestNG DataProvider concept. Will read multiple sets of data from excel and will place the same in dataprovider object array and will pass the same to the test method as parameters. Here, we need to remember one thing is; dataprovider array values and test method parameter values must be same.
We will take one sample program to read data from excel to dataprovider. Here to interact with the excel sheet will use Apache POI api. Will read some sample data from excel to dataprovider and will print the same.
Комментарии