Micro Focus QTP (UFT) Forums
Checkpoint result affecting the script result - 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: Checkpoint result affecting the script result (/Thread-Checkpoint-result-affecting-the-script-result)



Checkpoint result affecting the script result - sheetal - 11-16-2009

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


RE: Checkpoint result affecting the script result - v_selvam - 11-17-2009

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