Friday 21 October 2011

QTP: How to check Broken Links


Broken Links also sometimes called as dead links are those links on the web which are permanently unavailable. Commonly found, 404 error is one example of such link. Now the question is how can we identify broken links with the help of QTP during the run session?
There can be two ways to do this:
  1. Using Automatic Page checkpoint.
  2. By manually creating a Page checkpoint.
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”
qtp-broken-links
Now every time you record a new page, QTP will automatically include a checkpoint for broken links.
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. Select Page (As shown in picture below) and Click OK.
qtp-page-checkpoint
You will get the following screen:
page-check-qtp
Check “Broken Link” checkbox down below and click OK.
Now, how will you verify page checkpoint and hence broken links?
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.
qtp-links-host

9 comments:

  1. Heya i am for the primary time here. I found this board and I
    find It truly helpful & it helped me out much.

    I'm hoping to give something again and help others such as you aided me.


    My website; minecraft.net

    ReplyDelete
  2. Great article! This is the type of info that should be shared around the net.
    Shame on the seek engines for now not positioning this post upper!
    Come on over and seek advice from my web site . Thank you =)

    My web blog ... minecraft download

    ReplyDelete
  3. Hey just wanted to give you a brief heads up and let you know a few of the images aren't loading
    correctly. I'm not sure why but I think its a linking issue.
    I've tried it in two different web browsers and
    both show the same results.

    Have a look at my web site :: minecraft game

    ReplyDelete
  4. Thanks to my father who stated to me concerning this
    website, this weblog is truly amazing.

    Feel free to surf to my blog post; quest Bars

    ReplyDelete
  5. Thanks a bunch for sharing this with all people you really
    recognize what you're speaking approximately! Bookmarked.
    Kindly also talk over with my web site =). We could have a link trade contract among us

    Look into my web page; Quest Bars

    ReplyDelete
  6. I think this is among the most important information for me.
    And i am glad reading your article. But wanna remark on some general things, The site style
    is great, the articles is really excellent : D. Good job, cheers

    Have a look at my webpage; Where To Buy Cheap Quest Bars

    ReplyDelete
  7. Wow, amazing blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your
    web site is great, as well as the content! Quest Bars blogesaurus

    Look into my webpage - quest bars free sample

    ReplyDelete
  8. Hey very nice site!! Guy .. Excellent .. Wonderful .. I'll
    bookmark your blog and take the feeds additionally? I am happy
    to seek out numerous helpful info right here within the publish, we need work out
    extra techniques in this regard, thanks for sharing. .
    . . . .

    My weblog ... Diet Plans for Women to Lose Weight

    ReplyDelete
  9. Every weekend i used to pay a quick visit this site, for the reason that
    i want enjoyment, for the reason that this this web site conations actually pleasant funny
    stuff too.

    My blog post - Diet Plans for Women to Lose Weight

    ReplyDelete