Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setExcelFile(String Path, String SheetName) {
- try {
- // Open the Excel file
- FileInputStream ExcelFile = new FileInputStream(TETs.test_doc_path);
- // Access the required test data sheet
- excelWBook = new XSSFWorkbook(ExcelFile);
- excelWSheet = excelWBook.getSheet(SheetName);
- } catch (Exception e) {
- System.out.println("Exception " + e.getMessage());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement