Viper provides pixel to pixel image verification which give more accurate validation between two images. This is ideal to validate online image with the local image or two images in different folder, where one image will be a downloaded image from your automation scenario.
To implement this functionality in your Viper automation scenario, lets look at the ImageCompareClass in the Utility package. The method SendAICompare will take the two destination of images and begin the comparison.
Lets implement it in a test scenario and see if images you specify matches. For this create a test in the Test package and import the Utility class ImageCompareClass. Call the method SendAICompare with necessary parameters.
Please note that you can also place the actual image URL for the source, which will compare online image with local image.


No comments:
Post a Comment