During testing, you will often need to test functionality on multiple environments and with different testing configurations.
In a different environment, the actual image might differ in such a degree from the image that you have captured in the image
asset, that image clicks might fail, although the image is existing. In such a case, you can add multiple images to the same
image asset.
To add an additional image to an image asset:
-
Double-click on the image asset to which you want to add an additional image.
The image asset UI opens.
-
Click on the plus sign in the lower part of the UI to add a new image to the image asset.
-
Save the image asset.
The new image is added to the asset. Each time an image click is called, and until a match is achieved,
Silk4NET will compare the images in the asset with the images in the UI of the application under test. By default,
Silk4NET compares the images in the order in which they have been added to the asset.
Note: To change the order in which
Silk4NET compares the images, click on an image in the lower part of the image asset UI and drag the image to the position that you
want. The order lowers from left to right. The image that is compared first is the image in the left-most position.