I have one utility class as DataManager.java where I have written a method to read data from an excel sheet. public static XSSFWorkbook xssfWorkbook; public static XSSFSheet xssfSheet; public static Object[][] readUserCredentials(String...
Use @BeforeMethod annotation instead of @BeforeClass as @BeforeMethod invokes multiple times before execution of each test method and @BeforeClass annotation will run only once before starting all test cases. ...