use of org.jbehave.core.annotations.AfterScenario in project jbehave-core by jbehave.
the class FailureCorrelationStories method afterScenarioFailure.
@AfterScenario(uponOutcome = Outcome.FAILURE)
public void afterScenarioFailure(UUIDExceptionWrapper failure) throws Exception {
System.out.println("After Failed Scenario ...");
File file = new File("target/failures/" + failure.getUUID().toString());
file.getParentFile().mkdirs();
file.createNewFile();
failures.add(file.toString());
System.out.println("Failure: " + file);
}
Aggregations