@AfterMethod
 public void DefaultResult(ITestResult result) throws InterruptedException {
   System.out.println("Method name: " + result.getMethod().getMethodName());
   System.out.println("Success %:" + result.isSuccess());
   if (!result.isSuccess()) {
     TestUtil.takeScreenShot(result.getMethod().getMethodName());
     closeBrowser();
     System.out.println("Closing the Browser");
     openBrowser();
     System.out.println("Opening the Browser");
     TestUtil.doLogin();
     System.out.println("Performed Login");
   } else {
     System.out.println("Testcase is passed, Not required to call Exit!");
   }
 }