naveenanimation20 / LatestCucumber6WithPOM

Latest Cucumber6 BDD framework with POM(Page Object Model)
97 stars 322 forks source link

Tests failing due to missing xls file #5

Open arjunmeda opened 3 years ago

arjunmeda commented 3 years ago

Hi Naveen, Thanks for the code. Below error is seen due to missing xls file.

runScenario ("Contact Us scenario with different set of data", "Optional[Contact Us Feature]") java.io.FileNotFoundException: \Users\naveenautomationlabs\Desktop\automation.xlsx at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:317) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:295) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:276) at com.qa.util.ExcelReader.getWorkBook(ExcelReader.java:44) at com.qa.util.ExcelReader.getSheetByName(ExcelReader.java:34) at com.qa.util.ExcelReader.getData(ExcelReader.java:23) at parallel.ContactUsSteps.user_fills_the_form_from_given_sheetname_and_rownumber(ContactUsSteps.java:32) at ✽.user fills the form from given sheetname "contactus" and rownumber 5(file:///D:/Learning/Automation/LatestCucumber6WithPOM-master/src/test/resources/parallel/ContactUs.feature:5)

puneethnath86 commented 3 years ago

I was able to run my scripts with the file that's attached here. "automation.xlsx automation.xlsx "

These are the columns needed subjectheading, email, orderref, message

A BIG BIG Thanks to Naveen for this code