Posts

What is data driven testing?

Data Driven Testing Framework  is used to separate the test script from the test data. You can test the same script with multiple sets of data. ExcelFileReader.java file is necessary for connect to excel file. ExcelFileReader.java Option 1: package Utility; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFWorkbook; public class ExcelFileReader { XSSFWorkbook wb; XSSFSheet sheet; File file; String filePath; FileInputStream fi; public ExcelFileReader(String filePath) { this.filePath=filePath; try { file = new File(filePath); fi = new FileInputStream(file); wb = new XSSFWorkbook(fi); } catch (Exception e) { // TODO Auto-generated catch block e...