use of cucumber.api.PickleStepTestStep 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();
}
}
use of cucumber.api.PickleStepTestStep in project page-factory-2 by sbtqa.
the class PrintSteps method sendStepStarted.
@Around("sendStepStarted(event)")
public void sendStepStarted(ProceedingJoinPoint joinPoint, Event event) throws Throwable {
PickleStepTestStep testStep = (PickleStepTestStep) ((TestStepStarted) event).testStep;
String stepText = testStep.getStepText();
if (!previous.equals(stepText) && testStep.getPickleStep() instanceof PickleStepTag && !((PickleStepTag) testStep.getPickleStep()).isSkipped()) {
System.out.println(" * " + stepText);
previous = stepText;
}
joinPoint.proceed();
}
Aggregations