You can create image verifications in one of the following ways:
- By using the
- During recording.
To create a new image verification in the
menu, perform the following steps:
Select the project, to which you want to add the new image verification, and type a meaningful name for the verification into
The image verification UI opens.
Identify to identify the image that you want to verify in the application under test.
Optional: If you want to recapture the same image from the application under test, because there is a change in comparison to the image
that you had initially captured, click
If you are testing a Web application, you can select the browser on which you want to capture the image from the
Select Browser window.
Optional: You can click
Verify to test if the image verification works.
Silk4J searches for the image in the UI of the AUT, top-down and left to right, and highlights the first matching image.
Optional: You can add an exclusion area to the image verification, which will not be considered when
Silk4J compares the image verification to the UI of the application under test (AUT).
Optional: You can set the option
Client Area Only to define that only the part of the image that is actually part of the AUT is considered when
Silk4J compares the image verification to the UI of the AUT.
The accuracy level defines how much the image to be verified is allowed to be different to the image in the application under
Silk4J declares the images as different. This is helpful if you are testing multiple systems or browsers with different screen resolutions.
We recommend to choose a high level of accuracy in order to prevent false positives. You can change the default accuracy level
in the options.
Note: When you set the
Accuracy Level to less than five, the actual colors of the images are no longer considered for the comparison. Only the grayscale representations
of the images are compared.
Save the image verification.
The new image verification is listed in the
Package Explorer, and you can use it to check if the image exists in the UI of your application under test.