Package ru.yandex.qatools.allure.events

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


        return attachment;
    }

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


        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

    }

    @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

        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

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

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.