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
What is Cross browser testing? Does UFT support it?
If I change the object name in one action will it be updated in all the actions? Or not?
What is the latest version of qtp?
When Recovery scenario actually starts while testing the application?
What is debugging? How you debug your script?
Approach for Installation,comaptibility,system testing
how do i know how to use tools
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
Can U Explain about QTP tool from older version to latest version also its differences?
What are the different recording modes?
what are the limitations of smart identification in qtp 9.0
if mandatory and Assitive propertys are shows same how will u write skript in QTP window
How qtp recognizes the object?
wt is the use of multiple questions in QTP
Discuss the QTP Environment?