Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public void setExcelFile(String Path, String SheetName) {
  2. try {
  3. // Open the Excel file
  4.  
  5. FileInputStream ExcelFile = new FileInputStream(TETs.test_doc_path);
  6. // Access the required test data sheet
  7. excelWBook = new XSSFWorkbook(ExcelFile);
  8. excelWSheet = excelWBook.getSheet(SheetName);
  9. } catch (Exception e) {
  10. System.out.println("Exception " + e.getMessage());
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement