Micro Focus QTP (UFT) Forums
Image and Bitmap Checkpoints - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Image and Bitmap Checkpoints (/Thread-Image-and-Bitmap-Checkpoints)



Image and Bitmap Checkpoints - pkrvisakh - 05-08-2008

Can image and bitmap checkpoints identify colours? If yes, how do they recognize it?


RE: Image and Bitmap Checkpoints - Ankur - 05-08-2008

If you are asking about color of image...No they can't.


RE: Image and Bitmap Checkpoints - pkrvisakh - 05-08-2008

is there any other way to recognise colors in QTP...becuase i have heard that different colors might be having different color codes.


RE: Image and Bitmap Checkpoints - Ankur - 05-09-2008

Please be specific which color you want to recognize.


RE: Image and Bitmap Checkpoints - pkrvisakh - 05-09-2008

for example, if i have a screen with two colours (say yellow and blue)and on updating the screen if the blue colour gets changed to green, can QTP be able to recognise both the colours and differenciate them. Can we put a checkpoint to make QTP verify for the right colours?
i am just asking out of curiosity, but i have never done such a scenario


RE: Image and Bitmap Checkpoints - Ankur - 05-09-2008

ok...well I assume that application can be recognized by QTP.

In that case you can get the color of a screen/object using color property through "GetRoProperty" OR using object.currentstyle method


RE: Image and Bitmap Checkpoints - pkrvisakh - 05-09-2008

thanks so much for the info Smile