For security/privacy reasons, it may be required to blur sensitive screenshots in Thucydides reports. This can be done by annotating the test methods or steps with the annotation @BlurScreenshots
. When defined on a test, all screenshots for that test will be blurred. When defined on a step, only the screenshot for that step will be blurred. @BlurredScreenshot takes a string parameter with values LIGHT, MEDIUM
or HEAVY
to indicate the amount of blurring. For example,
@Test @BlurScreenshots("HEAVY") public void looking_up_the_definition_of_pineapple_should_display_the_corresponding_article() { endUser.is_the_home_page(); endUser.looks_for("pineapple"); endUser.should_see_definition_containing_words("A thorny fruit"); }
A screen at various blur levels is shown below.