Hot answers tagged

1

Register event handle: publisher.registerHandlerFor(EmbedEvent.class, this::stepEmbedded); Catch the event: private void stepEmbedded(EmbedEvent event) { byte[] a = event.getData(); String s = new String(a); try { step.log(Status.FAIL, "Test Failed" , MediaEntityBuilder....


1

Assuming that the process should move to [Teardown] annotation. Then you should not use the try-catch inside the test annotations because Test annotations provide test results based on the Exception so try by removing try-catch blocks Reference: https://stackoverflow.com/a/111270/10858089


Only top voted, non community-wiki answers of a minimum length are eligible