Examples of StepFinishedEvent


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

        return attachment;
    }

    public void fireStepFinished() {
        Allure.LIFECYCLE.fire(new StepFinishedEvent());
    }
View Full Code Here

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

        assertThat(listener.get(SimpleListener.EventType.STEP_EVENT), is(1));
    }

    @Test
    public void stepFinishedEventTest() throws Exception {
        allure.fire(new StepFinishedEvent());
        assertThat(listener.get(SimpleListener.EventType.STEP_FINISHED_EVENT), is(1));
    }
View Full Code Here

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

    }

    @AfterThrowing(pointcut = "anyMethod() && withStepAnnotation()", throwing = "e")
    public void stepFailed(JoinPoint joinPoint, Throwable e) {
        Allure.LIFECYCLE.fire(new StepFailureEvent().withThrowable(e));
        Allure.LIFECYCLE.fire(new StepFinishedEvent());
    }
View Full Code Here

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

        Allure.LIFECYCLE.fire(new StepFinishedEvent());
    }

    @AfterReturning(pointcut = "anyMethod() && withStepAnnotation()", returning = "result")
    public void stepStop(JoinPoint joinPoint, Object result) {
        Allure.LIFECYCLE.fire(new StepFinishedEvent());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.