Micro Focus QTP (UFT) Forums
Red Image issue - solution required its urgent. - 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: Red Image issue - solution required its urgent. (/Thread-Red-Image-issue-solution-required-its-urgent)



Red Image issue - solution required its urgent. - chetan-24 - 01-15-2009

Hello,
I have to check image I can check either image check point or standard check point but, i want to check red x image and i have some criteria and i want to Create a check point for red x image, like ,

if check point return pass then Execute x steps
else Execute Y steps.

So could anybody spacify that how can i create red x check point.

Please its an urgent.

Thanks
Chetan!


RE: Red Image issue - solution required its urgent. - Jackomcnabb - 01-19-2009

you can just do a ".Exist" for your red x image in your if statement, it maybe easier to build your own checkpoint than to use QTP's check point

Something like this:

Code:
If <red x image>.Exist then
<Execute x steps>
Reporter.ReportEvent micPass, "MyCheckpoint", "red x image was displayed"' "
Else
Reporter.ReportEvent micFail, "MyCheckpoint", "red x image was not displayed"' "
End if