Search in sources :

Example 6 with SakuliExceptionHandler

use of org.sakuli.exceptions.SakuliExceptionHandler in project sakuli by ConSol.

the class SakuliExceptionListener method onTestFailure.

@Override
public void onTestFailure(ITestResult tr) {
    SakuliExceptionHandler exceptionHandler = BeanLoader.loadBaseActionLoader().getExceptionHandler();
    if (!exceptionHandler.isAlreadyProcessed(tr.getThrowable())) {
        exceptionHandler.handleException(tr.getThrowable());
    }
    super.onTestFailure(tr);
}
Also used : SakuliExceptionHandler(org.sakuli.exceptions.SakuliExceptionHandler)

Aggregations

SakuliExceptionHandler (org.sakuli.exceptions.SakuliExceptionHandler)6 SakuliInitException (org.sakuli.exceptions.SakuliInitException)2 Test (org.testng.annotations.Test)2 SahiScript (net.sf.sahi.playback.SahiScript)1 Report (net.sf.sahi.report.Report)1 TestResult (net.sf.sahi.report.TestResult)1 RhinoScriptRunner (net.sf.sahi.rhino.RhinoScriptRunner)1 JoinPoint (org.aspectj.lang.JoinPoint)1 After (org.aspectj.lang.annotation.After)1 LogResult (org.sakuli.datamodel.actions.LogResult)1 SakuliException (org.sakuli.exceptions.SakuliException)1