Package ru.yandex.qatools.allure.events

Examples of ru.yandex.qatools.allure.events.TestCaseFailureEvent


        Failure failure = mockFailureWith(exception, description);

        runListener.testFailure(failure);

        verify(allure).fire(eq(new TestCaseFailureEvent().withThrowable(exception)));
    }
View Full Code Here


        fireFinishTest();
    }

    @Override
    public void onTestFailure(ITestResult iTestResult) {
        getLifecycle().fire(new TestCaseFailureEvent()
                        .withThrowable(iTestResult.getThrowable())
        );
        fireFinishTest();
    }
View Full Code Here

        fireFinishTest();
    }

    @Override
    public void onTestFailedButWithinSuccessPercentage(ITestResult iTestResult) {
        getLifecycle().fire(new TestCaseFailureEvent()
                        .withThrowable(iTestResult.getThrowable())
        );
        fireFinishTest();
    }
View Full Code Here

    public void fireTestCaseFailure(Throwable throwable) {
        if (throwable instanceof AssumptionViolatedException) {
            getLifecycle().fire(new TestCaseCanceledEvent().withThrowable(throwable));
        } else {
            getLifecycle().fire(new TestCaseFailureEvent().withThrowable(throwable));
        }
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.allure.events.TestCaseFailureEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.