Examples of StepStartedEvent


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

    public void fireTestCaseFinished() {
        Allure.LIFECYCLE.fire(new TestCaseFinishedEvent());
    }

    public Step fireStepStart() {
        Allure.LIFECYCLE.fire(new StepStartedEvent("some.step.name"));
        Step step = Allure.LIFECYCLE.getStepStorage().getLast();
        assertNotNull(step);
        assertThat(step.getName(), is("some.step.name"));
        return step;
    }
View Full Code Here

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

        AllureResultsUtils.setResultsDirectory(folder.newFolder());
    }

    @Test
    public void stepStartedEventTest() throws Exception {
        allure.fire(new StepStartedEvent(""));
        assertThat(listener.get(SimpleListener.EventType.STEP_STARTED_EVENT), is(1));
    }
View Full Code Here

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

    @Before("anyMethod() && withStepAnnotation()")
    public void stepStart(JoinPoint joinPoint) {
        String stepTitle = createTitle(joinPoint);

        MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
        StepStartedEvent startedEvent = new StepStartedEvent(
                getName(methodSignature.getName(), joinPoint.getArgs())
        );

        if (!stepTitle.isEmpty()) {
            startedEvent.setTitle(stepTitle);
        }

        Allure.LIFECYCLE.fire(startedEvent);
    }
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.