You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to abort the test case if any step got failed , But as per the serenity behavior its executing the subsequent steps in dry run mode but I want to have a control over it , so used "deep.step.execution.after.failures=false" at serenity.properties file level which is not helpful @wakaleo : Could you please look into this ?
The below is the logic we implemented at BaseStepListener class level: @OverRide
public void stepFailed(StepFailure failure) {
Log.error("Step failed: " + failure.getDescription());
if (failure.getException() != null) {
// Step failed due to an error, mark the current test as failed and stop further
StepEventBus.getEventBus().testFailed(failure.getException());
}
}
The text was updated successfully, but these errors were encountered:
I wanted to abort the test case if any step got failed , But as per the serenity behavior its executing the subsequent steps in dry run mode but I want to have a control over it , so used "deep.step.execution.after.failures=false" at serenity.properties file level which is not helpful @wakaleo : Could you please look into this ?
The below is the logic we implemented at BaseStepListener class level:
@OverRide
public void stepFailed(StepFailure failure) {
The text was updated successfully, but these errors were encountered: