Micro Focus QTP (UFT) Forums
How to use the Checpoint for dynamic image result page? - 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: How to use the Checpoint for dynamic image result page? (/Thread-How-to-use-the-Checpoint-for-dynamic-image-result-page)



How to use the Checpoint for dynamic image result page? - Uma - 09-07-2011

Hi,
My Result page is giving dynamic images everytime.If I Put Check point,
I hold some image value and it is comparing the latest one and the checkpoint is failed.
If I get any image ,the checkpoint needs to pass.
[I used bitmap checkpoint,then I tried with Standard Check point,
both are comparing with the old image]
any help?
Thanks,
Uma



RE: How to use the Checpoint for dynamic image result page? - tarun - 09-07-2011

Ok if you only have to check if any image is displayed on the result page then use the following code

Code:
Browser.Page.oImage.GetROProperty("html tag") = "IMG"

Here oImage is the image object that is displayed on your page