How to validate check points in QTP

Well few days back one of my junior asked me ..how to check if a checkpoint is passed or failed...

Simple....
Checkpoint returns on True or False.Based on that it can be coded..
Below is the example.

value_chkpoint = Browser(...).Page(...).WebEdit(...).Check (Checkpoint("Check1"))
if value_chkpoint then
MsgBox "Check Point passed"
else
MsgBox "Check Point failed"
end if
How to validate check points in QTP How to validate check points in QTP Reviewed by Animesh Chatterjee on January 19, 2009 Rating: 5

No comments:

Powered by Blogger.