Testing for broken links, How will you test a web application for broken links using QTP



Testing for broken links, How will you test a web application for broken links using QTP
How will you check a web application for broken links using QTP ? Or How to identify the broken links in QTP ?
With the help of Page Checkpoint which provide the numbers of valid / invalid links on website page.
 Dead links are called the broken links, These are the links which are not available on the web for all time. So how you can find these or how you can identifies these broken links with the help of QTP during the execution session:


By Two ways we can found these broken links:-
  1. By using the Automatic Page Checkpoints
  2. By manually developing the page checkpoints
    By using the Automatic Page Checkpoints: Go from Tools > Options > Web > Advanced and check the two checkboxes with the name “Create a checkpoint for each page while recording” and second one is “Broken Links”.
Testing for broken links
Testing for broken links

Now whenever you record new one then automatically QTP will contains it for broken links checkpoint .
By manually Creating a Page Checkpoints: QTP never give any direct option in menu for apply the checkpoint on page. We required to take help from standard checkpoints. So
Start recording Session> Insert> Checkpoint> Standard Checkpoints or just press the F12 for speed shortcut. Now Place and then click on the hand pointer anywhere on your page of website and now click on Ok.

broken links using QTP
broken links using QTP

Now check on the “Broken Link” check box down and then click on ok


Verifying the page checkpoints and also the broken links
Just execute the above script. Then Go to the Test Results> Your CheckPoint. Check now status of all links from “Broken Links Result”.
If you like to check the result links pointing only to the current check the host box which title is “Broken Links > Check only links to present host” from the Tools> Options> Web. Similarly if you link to test links pointing where or other hosts as well then required to unchecked it. Thats All....

How to identify the broken links in QTP
How to identify the broken links in QTP





















Virtual Objects with Example in QTP
Cross Platform Testing


What is Object Spy in QTP Ordinal Identifiers Alone can Make an Object Unique



Test Automation Frameworks Types



No comments:

Post a Comment

Popular Posts