Micro Focus QTP (UFT) Forums
How to build logic around a checkpoint - 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 build logic around a checkpoint (/Thread-How-to-build-logic-around-a-checkpoint)



How to build logic around a checkpoint - myedvabny - 08-02-2008

Hi:

Is it possible to include a checkpoint in a logical condition like If...Then? What would be the syntax? Example?

Thanks.


RE: How to build logic around a checkpoint - kishoreinchennai - 08-05-2008

Code:
Dim x, y
x = 12
y = 11
If x>y  Then
    Browser("xxx").Page("yyy").Frame("zzz").Check CheckPoint("c1")
    Else
    Browser("xxx").Page("yyy").Frame("zzz").WebElement("Delete").Check CheckPoint("c2")
End If
I am not sure if this is the one you are looking for.if no Please let me know the requirement in detail.

Regards
Kishore