Micro Focus QTP (UFT) Forums

Full Version: Checkpoint result affecting the script result
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi All,

I have created a cehckpoint and put a business logic,saying if it passes do this,else do something else. When the checkpoint fails,the script continues exectuion, but still the script end result is fail. Please let me know how to avoid this end result being fail.

Thanks,
Sheetal
Try like below code

Code:
bFlag = window("windowname").winobject("somename").Check(checkPoint("Checkpoint1"))

Code:
If bFlag Then
'True steps are here
Else
  'False steps are here
End If