Selenium Framework Tutorial #11 - Read Excel File in Selenium with Apache POI - Part 2

  Рет қаралды 29,877

Software Testing Mentor

Software Testing Mentor

Күн бұрын

Пікірлер: 16
@snehaingalkar491
@snehaingalkar491 2 жыл бұрын
I was waiting for videos. Thanks a lot for such informative videos.
@phanikiran9826
@phanikiran9826 2 жыл бұрын
best apache poi tutorial.
@KrisuParikh
@KrisuParikh 11 күн бұрын
thank you
@stylishmanurana
@stylishmanurana 2 жыл бұрын
Very helpful video.... Great work!!
@bhagyasrikothamasu8572
@bhagyasrikothamasu8572 2 жыл бұрын
Nice explanation sir. thank you
@krishnavamankrishna3047
@krishnavamankrishna3047 Жыл бұрын
if in Excel we used a formula for calculation then formateCellValue can display in the console that formula instead of value any alternative solution is there
@rmahideep
@rmahideep 2 жыл бұрын
Thanks Sir !!
@softwaretestingmentor
@softwaretestingmentor 2 жыл бұрын
Most welcome. Keep watching for more videos!
@ashish_dewal4245
@ashish_dewal4245 Жыл бұрын
Can you please help me i am getting the error "Cannot invoke "org.apache.poi.ss.usermodel.Sheet.getLastRowNum()" because "sheetName" is null"
@deepakchopra2145
@deepakchopra2145 Жыл бұрын
check your sheet name spelling and you have entered data in correct sheet , you will see sheet name in bottom left side.
@deepakchopra2145
@deepakchopra2145 Жыл бұрын
it will be sheet1 you can rename as you want
@monil.joshi4
@monil.joshi4 Жыл бұрын
How to read excel file present on one drive in selenium java
@AjaySingh-oe6zb
@AjaySingh-oe6zb 2 жыл бұрын
It is giving error - "You need to specify at least one testng.xml, one class or one method"
@AjaySingh-oe6zb
@AjaySingh-oe6zb 2 жыл бұрын
now when i run it as java application, it is resolved but now the error coming is - Exception in thread "main" java.lang.NullPointerException: Cannot invoke "org.apache.poi.ss.usermodel.Sheet.getLastRowNum()" because "sheetName" is null
@mvtvvlogs5405
@mvtvvlogs5405 Жыл бұрын
getting this error: have tried everything not able to resolve: Please help: java: cannot access org.apache.poi.poifs.filesystem.NPOIFSFileSystem class file for org.apache.poi.poifs.filesystem.NPOIFSFileSystem not found
@TheCoolparas
@TheCoolparas 2 жыл бұрын
package utilities; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import org.apache.poi.EncryptedDocumentException; import org.apache.poi.ss.usermodel.DataFormatter; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; public class ReadXLSdata { public static void main(String[] args) throws EncryptedDocumentException, IOException { ReadXLSdata red = new ReadXLSdata(); red.getdata("login"); } public String[][] getdata(String excelSheetName) throws EncryptedDocumentException, IOException { File f = new File(System.getProperty("user.dir") + "\\src\\test\ esources\\testdata\\testdata.xlsx"); FileInputStream fis = new FileInputStream(f); Workbook wb = WorkbookFactory.create(fis); Sheet sheetName = wb.getSheet(excelSheetName); int totalRows = sheetName.getLastRowNum(); // FOR ROW COUNT System.out.println(totalRows); Row rowCells = sheetName.getRow(0); // FOR COULMNS COUNT int totalCols = rowCells.getLastCellNum(); System.out.println(totalCols); DataFormatter format = new DataFormatter(); String testData[][] = new String[totalRows][totalCols]; for (int i = 1; i
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 44 МЛН
Lamborghini vs Smoke 😱
00:38
Topper Guild
Рет қаралды 65 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Симбочка Пимпочка
Рет қаралды 4,6 МЛН
Selenium Framework Tutorial #9 - Data Driven Testing with TestNG DataProvider
17:35
Selenium Framework Tutorial #8 - Create and use TestNG.XML in Selenium
9:45
Software Testing Mentor
Рет қаралды 34 М.
How to Read Excel File in Selenium Webdriver Using Apache POI
42:46
Mukesh otwani
Рет қаралды 611 М.
Introduction to Apache POI | Selenium WebDriver |
9:53
H Y R Tutorials
Рет қаралды 37 М.
Data Driven Testing in Selenium | Framework For Automation
16:13
SoftwaretestingbyMKT
Рет қаралды 3,8 М.
How to write excel file in Selenium using Apache POI
9:13
Mukesh otwani
Рет қаралды 143 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 44 МЛН