[Webtest] verifyLinks

Marc Guillemot webtest@lists.canoo.com
Thu, 14 Apr 2005 09:54:59 +0200


Hi,

verifyLinks collects the urls of all the links in the page and performs an invocation of each url. An url like 
"javascript:document.f.submit()" can't be invocated directly, it can only be used in the context of the page containing it.
We could imagine that the links get "clicked" rather than the urls directly invoked. I don't think that it is a good 
idea because this step is rather intended to test links to static pages where no logic is implied on the server. If you 
use verifyLinks on a page where you have a "logout" link and a "my profile" link, you can get problems because depending 
on the order of invocation, it would give different results. In your example, the link submits data from the form and 
therefore the returned page is probably not static and depends from the received content. The test of this 
functionnality should therefore be made with explicitely set values rather than with a general verifyLinks.

Marc.

Chintakrindi Meghanath wrote:
> Hi
> 
> I am using the verifyLinks function.
> For some of the links it is coming as 
> " [testSpec] (verify.VerifyLinks     96  ) Skipped link due to protocol: javascript:document.f.submit()"
> All are valid HTML links.
> Can anyone explain me what's happening and how to make the script so that they are not skipped.
> 
> Thanks
> Meghanath
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>