write script for finding number of broken links in web page?

kindly please answer my question.

Answer Posted / pramila

Using Automatic Page checkpoint:
Go to Tools > Options > Web > Advanced and check the two
boxes labeled “Create a checkpoint for each page while
recording” and “Broken Links”.
Now every time you record a new page, QTP will automatically
include a checkpoint for broken links.

OR

By manually creating a Page checkpoint:
QTP does not provide a direct menu option to incorporate a
page checkpoint. You need to take the help of standard
checkpoint. Start recording session > Insert > Checkpoint >
Standard Checkpoint (OR press F12). Place and click the hand
pointer anywhere on your web page from "Object selection-
CheckPoints Properties" window click OK it takes you to
"Page checkpoints Properties" where in click on 'Broken
Links" option.
Run the above script. Go To Test Results > Your Check Point.
Check the status of all links under “Broken Links Result”
If you want to verify links pointing only to the current
host check the box titled “Broken Links- check only links to
current host” under Tools > Options > Web. Similarly If you
want to verify links pointing to other hosts as well,
uncheck it.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the code for,In the page screen we have total 10 Links,out of these I have to click 9th link

1053


Explain the differences between table and db checkpoints?

738


How many add-ins comes by default with quicktest professional?

713


What are the properties you would use for identifying a browser and page when using descriptive programming?

787


What are some test assets and related extensions of qtp?

746


How many types of actions are there in quicktest professional (qtp)?

706


What is meant by Output Value in UFT?

749


what is meant by source control?

1881


What is difference in global and action sheet in qtp?

808


What are the Test design techniques you uses in ur project?

1682


Anybody plz give, How do you test aframe in a web page? If page cotain text message or Images, tables?

1799


how to explain a claims and insurance project?

1971


How the exception handling can be done using quicktest professional (qtp)?

734


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

1838


How to creating an output value using quicktest professional (qtp)?

753