Additionally to the recheck configuration, you can configure some additional properties within recheck-web.
RecheckWebOptions are an extended form of the plain
RecheckOptions. Similarly, they are created using the builder pattern and should be a drop-in replacement for the
RecheckWebOptions options = RecheckWebOptions.builder() // Do your configuration here .build()
Same as the
RecheckWebOptions can be passed to the
RecheckWebOptions opts = RecheckWebOptions.builder() // Do your configuration here .build(); Recheck re = new RecheckImpl( opts );
RecheckWebOptions should always be used instead of the
RecheckOptions when using recheck-web.
Below is a list of the available options you may configure with corresponding methods on
RecheckWebOptionsBuilder. Please refer to the detailed sections below.
||Defines the naming strategy used by the
||Defines the screenshot strategy that is used by snapshotting the
RecheckWebOptions.builder() .checkNamingStrategy( new CustomAutocheckingCheckNamingStrategy() ) .screenshotProvider( new ViewPortOnlyScreenshot() ) .namingStrategy( new ClassAndMethodBasedShortNamingStrategy() ) .projectLayout( new GradleProjectLayout() ) .suiteName( "my-custom-suite-name" ) .enableReportUpload() .addIgnore( "MyCustomIgnore.filter" ) .build();
Naming Checks Automatically
When using the
AutocheckingDriver, every action performed will generate a check with a provided
Recheck instance. Since those checks require a name, it will be uniquely generated by the provided
The creation of a check triggers a screenshot capturing of the
WebElement supplied. This screenshot is only used for documentation purposes and not the comparison (e.g. pixel differences). Since screenshot are quite slow and large, they may be changed or disabled by using a provided implementation of
There is a global system property available to configure these screenshots. However, they are overwritten by the local option defined. This allows you to e.g. globally disable screenshots during test execution for performance reasons, but enable them locally during Golden Master creation.
Additionally to recheck properties, recheck-web provides some more properties to configure.
# Configure the strategy of how screenshots are taken. # fullPage | viewportOnly | viewportOnlyMinimal | none de.retest.recheck.web.screenshot.provider=viewportOnlyMinimal