question: @ 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 ) ; } }
target:  Stops all the therads in the GondolaRc instance and exits if the test case failed.