@AfterMethod(alwaysRun=true) public void doAfterMethod(ITestContext tc,ITestResult tr,Method m) throws Exception {
  runningTick=0;
  gondolaRc.stop();
  if (tr.getStatus() != ITestResult.SUCCESS) {
    Throwable t=tr.getThrowable();
    if (t != null) {
      logger.error("Test case failed.\n\n" + t.getMessage(),t);
    }
  }
  if (exceptionInAnotherThread != null) {
    logger.error("Test case failed.\n\n" + exceptionInAnotherThread.getMessage(),exceptionInAnotherThread);
    tr.setStatus(ITestResult.FAILURE);
  }
}

@ AfterMethod ( alwaysRun = true ) public void doAfterMethod ( ITestContext tc , ITestResult tr , Method m ) throws Exception { runningTick = 0 ; gondolaRc . stop ( ) ; if ( tr . getStatus ( ) != ITestResult . SUCCESS ) { Throwable t = tr . getThrowable ( ) ; if ( t != null ) { logger . error ( "Test case failed.\n\n" + t . getMessage ( ) , t ) ; } } if ( exceptionInAnotherThread != null ) { logger . error ( "Test case failed.\n\n" + exceptionInAnotherThread . getMessage ( ) , exceptionInAnotherThread ) ; tr . setStatus ( ITestResult . FAILURE ) ; } }
stops all the therads in the gondolarc instance and exits if the test case failed .
