Subscribe by Email

Thursday, September 27, 2012

How will you check a web application for broken links using QTP?

Checking for the broken and ill links forms a very important aspect of any web testing profile. The below mentioned are few testings which take the priority of the web testing check list:
  1. Usability testing
  2. Functionality testing
  3. Compatibility testing
  4. Interface testing
  5. Security testing
  6. Performance testing
Out of all these the functionality testing tests the following basic aspects of a web page or site or application:
  1. all the links in web pages
  2. data base connection
  3. forms in the web pages
  4. cookies
When it comes to checking of the links the following links are tested:
  1. out going links from a specific domain
  2. internal links
  3. links jumping on same page
  4. links for sending mails
  5. orphan pages and lastly
  6. broken  links
Our focus is on last aspect i.e., testing of the broken links in a web page, site or web application with the help of the quick test professional. 

What are broken links?

- Broken links are also termed as dead links since they are permanently unavailable and hence cannot be accessed by the user. 
- If you would have observed you might have surely come across 404 error while browsing some site. 
- This signifies the presence of a broken link. 
- Using quick test professional, the broken links can be identified during the run time itself by following any one of the two methods mentioned below:
  1. via manual creation of a check point
  2. via automatic page check point

How a broken link be checked manually by creating a page check point?

- A direct menu option is not available in the quick test professional for incorporating a page check point. 
- Therefore, you need to take assistance of a standard check point. 
- What you actually need, is to click on the start recording session and then select insert option, then check point and finally standard check point option.
You can use F12 if it works for you.
- Get the hand pointer on the web page and click OK. 
- You will get a page check point properties dialog box which has a broken link check box. 
- You need to check that box and click OK. 
- After this, you need to run the scripts and check the status of links in broken link result. 
- If the links pointing only to the current host have to be checked then you need to check the box titled check only links to current host by going to the tools menu and then selecting web options. 
- Similarly, if the links pointing to all the hosts have to be checked then this box has to be kept unchecked. 
For following the second method you need to go through the following:
Tools à options à web à advanced
- You will get two boxes labeled “broken links” and “create a check point for each page while recording”, check these both boxes. 

Now every time the quick test professional starts recording on a new page, a check point will be automatically included for all the broken links. 
One thing that you should know is that the quick test professional experiences some issues with the windows vista if the internet explorer version that you using is 7.0. 
Tabbed browsing is something that is not supported by the quick test professional especially in Microsoft internet explorer. 
An alternative to this can be to disable tabbed browsing first and then proceed with quick test professional. In internet explorer the quick test professional may not be able to recognize the web objects. 

No comments:

Facebook activity