12-13-2012, 11:28 AM
Hi All,
In our project, developers have recently changed the hard coded values href of links to some generalized urls. Now the requirement is that we need to validate the links of all web pages if they navigate to right url or will lead to any error pages. This can be done through Web Link validator tool but it can work on only static links and that too it cannot detect custom error pages (eg: browser title is Custom 404 error page). Through qtp, we can get the info about the links that are leading to custom error pages provided a page given.
To achieve the same, in the given page, the qtp fetches all links, opens each link in new window validates for the correctness of it and closes the new window. Since a page can contain some hundreds of links we are thinking to use Web validator link tool in our script which can do the operation in the back ground.
Not sure how to do this, just wanted to check if any such option is available. If anyone has experienced this issue, request you to share the details.
Thx in adv,
Sams
In our project, developers have recently changed the hard coded values href of links to some generalized urls. Now the requirement is that we need to validate the links of all web pages if they navigate to right url or will lead to any error pages. This can be done through Web Link validator tool but it can work on only static links and that too it cannot detect custom error pages (eg: browser title is Custom 404 error page). Through qtp, we can get the info about the links that are leading to custom error pages provided a page given.
To achieve the same, in the given page, the qtp fetches all links, opens each link in new window validates for the correctness of it and closes the new window. Since a page can contain some hundreds of links we are thinking to use Web validator link tool in our script which can do the operation in the back ground.
Not sure how to do this, just wanted to check if any such option is available. If anyone has experienced this issue, request you to share the details.
Thx in adv,
Sams