Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verifying checkpoint and set flag
#1
Solved: 11 Years, 3 Months, 2 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 2 Weeks ago
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
Reply
#3
Solved: 11 Years, 3 Months, 2 Weeks ago
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).
Reply
#4
Solved: 11 Years, 3 Months, 2 Weeks ago
Thank u All,

My issue resolved.

Regards,
Ritu
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Verifying the contents of a Web List in QTP scipt ritugoyal 4 47,447 10-07-2016, 12:23 AM
Last Post: Vijay Kumar

Forum Jump:


Users browsing this thread: 3 Guest(s)