Micro Focus QTP (UFT) Forums

Full Version: How to build logic around a checkpoint
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi:

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

Thanks.
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