As we already gave an idea on our last tutorial of minimum requirement to run excel read /write Jar file of Apache POI A simple way to enter data in excel file is where our data file is blank and present in the path " /Users/priyankac/Desktop/Datatest.xlsx " reference to get a path location in Mac check the blog Blank excel present with header @Test public void test2() throws IOException{ // create object of fileoutput stream FileInputStream fis = new FileInputStream("/Users/priyankac/Desktop/Datatest.xlsx"); XSSFWorkbook workbook = new XSSFWorkbook(fis); XSSFSheet sheet = workbook.getSheetAt(0); //As 0th row is occupied with header we will start entering data from 1st row, 0th column to 2nd column one by one sheet.getRow(1).createCell(0).setCellValue("Priyanka Chauhan"); sheet.getRow(1).createCell(1).setCellValue("500"); sheet.getRow(1).createCell(2).setCellValue("Java"); //entering data from 1st row, 0th c...
A home for beginners in the domain of Software Testing. Join in the journal to learn from experiences earned the hard way