use of gherkin.pickles.PickleStep in project page-factory-2 by sbtqa.
the class CriticalStepCheckAspect method sendStepFinished.
@Around("sendStepFinished(event)")
public void sendStepFinished(ProceedingJoinPoint joinPoint, TestStepFinished event) throws Throwable {
PickleStep step = getDefinitionMatchStep(event.testStep);
if (hasError(step)) {
final Result result = new Result(Result.Type.AMBIGUOUS, event.result.getDuration(), ((PickleStepTag) step).getError());
event = new TestStepFinished(event.getTimeStamp(), event.getTimeStampMillis(), event.getTestCase(), event.testStep, result);
}
joinPoint.proceed(new Object[] { event });
}
Aggregations