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
How to find a window is minimized or not
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans
How do you delete unwanted results in qtp?
I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You
How do you configure QTP AND Test director?
What r the different filters in defect in quality center
images are dynamically changes how to compare two images with out using the bitmap
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
Can you write a script to check if the folder exists or not?
How to get the format of a webedit class in qtp. How can i know that particular webedit accept what type of format like "mm/dd/yyyy" or "$" or Alphanumeric
What are the general steps involved in the data driven framework?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.