5051525354555657585960
if (screenshotAnnotation != null) { if (screenshotAnnotation.takeAfterTest()) { return true; } if (result.getStatus() == Status.FAILED && screenshotAnnotation.takeWhenTestFailed()) { return true; } } }