Annotation Type After
@Retention(RUNTIME) @Target(METHOD) public @interface AfterA equivalent of JUnit @
It should be used instead of JUnit @
Afterannotation when screenshot is configured on
ConfigurationProperties.TriggerMode.AUTOMATIC_ON_FAILvalue to make sure screenshot is taken just after the exception occurs, and before @After methods are invoked.
When using default JUnit @
Afterannotation, screenshot is taken after the invocation of @After methods and may cause hard to diagnose errors when After change the state of the underlying web application.
- See Also:
- Issue #390