RE: Error in Data Driven Framework

Answered

Hi,
I am working on Data Driven Framework example shown in Selenium WebDriver Tutorials in  www.toolsqa.com  website. When I run Apache_POI_TC.java file, I am getting the following error:

Exception in thread “main” java.io.FileNotFoundException: C:\Users\ABK\Desktop\Sama\Eclipse\OnlineStore\src\testData (Access is denied)

Appreciate if anyone could help me out with this error.

on November 4, 2014.
Add Comment
4 Answers

Hi,

Make sure the Excel file is closed. Make sure that Excel file is not corrupted, try opening it. Make sure the location is correct, as I see the path is till testData folder, it did not display the excel file name after it, make sure you place the slash after testData folder.

Regards,
Lakshay Sharma

Professor Answered on October 30, 2014.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.