Micro Focus QTP (UFT) Forums
Verifying checkpoint and set flag - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Verifying checkpoint and set flag (/Thread-Verifying-checkpoint-and-set-flag)



Verifying checkpoint and set flag - ritugoyal - 01-14-2010

Hi All,

I am struck in an issue. I want to set flag for a page(say Page001), if that page is displayed or not.
Means I want to put checkpoint for that page to be displayed. how can I verify the checkpoint for page displayed and set the flag.

Please help me.

Regards,
Ritu


RE: Verifying checkpoint and set flag - ShubhangiM - 01-14-2010

Click on Record. When we click on Record, "Record and Run Settings" window opens up. Go to "Web" tab and choose first option "Record and run test on any open browser." and click ok.
Go to Insert (menu)->Checkpoint->Standard Checkpoint (or press F12).
The mouse pointer will become hand and QTP will be minimized.
Click anywhere on the white space on the Google.co.in page.
It will Open "Object Selection - Checkpoint Properties" window. Click on 'Page : Google' option which has a page icon on left of it with right corner of the page slightly folded.
Click ok.
A 'Page Checkpoint Properties' window opens up. Let all the options be default. Click ok.
Click on Stop in order to stop the Recording.
In the Expert view it will add just one line:




Code:
Browser("Browser_Name").Page("Page_Name").Check CheckPoint("chk point")

and run it


RE: Verifying checkpoint and set flag - sreekanth chilam - 01-15-2010

Adding up to Shubhangi's solution, try in the below way.

Code:
Flag=Browser("Browser").Page("Page").Check (CheckPoint("Page"))
msgbox Flag

The above variable Flag would return boolean values(i.e True,False).


RE: Verifying checkpoint and set flag - ritugoyal - 01-18-2010

Thank u All,

My issue resolved.

Regards,
Ritu