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)
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)