Search in sources :

Example 1 with TestStep

use of cucumber.api.TestStep in project page-factory-2 by sbtqa.

the class PrintParameters method beforeSendStepFinished.

@Before("sendStepFinished(event)")
public void beforeSendStepFinished(JoinPoint joinPoint, Event event) {
    TestStep testStep = ((TestStepFinished) event).testStep;
    if (testStep instanceof PickleStepTestStep) {
        this.testArguments.set(((PickleStepTestStep) testStep).getStepArgument());
        addAllureArguments();
    }
}
Also used : PickleStepTestStep(cucumber.api.PickleStepTestStep) TestStep(cucumber.api.TestStep) PickleStepTestStep(cucumber.api.PickleStepTestStep) TestStepFinished(cucumber.api.event.TestStepFinished) Before(org.aspectj.lang.annotation.Before)

Aggregations

PickleStepTestStep (cucumber.api.PickleStepTestStep)1 TestStep (cucumber.api.TestStep)1 TestStepFinished (cucumber.api.event.TestStepFinished)1 Before (org.aspectj.lang.annotation.Before)1