Bitmap checkpoint is used to check
image that it is the correct image and is loaded properly.
To create bitmap checkpoint follow
steps as below.
(Here we are taking a case of an
image opened in Paint)
Record -> Insert ->
Checkpoint -> Bitmap Checkpoint-> Cursor will change to hand icon, click
on the image opened
Bitmap checkpoint properties
window will open as below.
Press OK.
A new window open with the
selected image captured and being show in the window as below.
Press OK.
Code as below will be
automatically generated.
Window("Paint_2").WinObject("Afx:1000000:8").Check
CheckPoint("Afx:1000000:8")
Now run the case, if there is no
change in image, Test will pass else test will fail, we can see the difference
in expected and actual result as shown below in case of Fail.