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

What are the features of quick test pro(qtp)?

537


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2400


Subj: realtime example of Database check point, Can any one please detail on how the Database check point is utilized/implemented in a real time project. I already know how to make one by creating DSN/ODBC and writing the required query manually and other steps...I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thank you in advance

1775


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

546


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

637






describe some problems that u had with automating testing tool?

1415


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

703


Explain about the test fusion report of quicktest professional?

535


After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.

5890


diff between qtp versions from 8.5

1570


How to data driven test for Win objects in QTP ?

1477


why text area checkpoints cannot used for web applications

1883


What is the syntax to call one action in another?

554


What is throw Object?

1563


what is the difference between development and testing

2392