[Webtest] VerifyLinks

david.cate@wachovia.com david.cate@wachovia.com
Wed, 23 Jul 2008 11:43:46 -0400


This is a multipart message in MIME format.
--=_alternative 005669038525748F_=
Content-Type: text/plain; charset="US-ASCII"

This worked perfectly for what i was doing on the XML side - now I need to 
adapt this to Grails - if anyone has used the Webtest plugin for grails, 
can someone determine the grammar for adding the option to the 
configuration in Groovy? Grails plugin keeps the resources in a different 
area and uses different naming structure.




david.cate@wachovia.com 
Sent by: webtest-admin@gate4.canoo.com
07/23/2008 08:51 AM
Please respond to
webtest@gate4.canoo.com


To
webtest@gate4.canoo.com
cc
webtest@gate4.canoo.com, webtest-admin@gate4.canoo.com
Subject
RE: [Webtest] VerifyLinks







Thank you! I've never used the setting before but will make use of it 
today :) 



"Conor MacMahon" <Conor.MacMahon@qsa.qld.edu.au> 
Sent by: webtest-admin@gate4.canoo.com 
07/22/2008 07:39 PM 

Please respond to
webtest@gate4.canoo.com


To
<webtest@gate4.canoo.com> 
cc

Subject
RE: [Webtest] VerifyLinks








Hi David, 
            I had a similar problem late last week, some JavaScript files 
where changed on a public website I use verifyLinks on, but whose content 
I do not control. I got around the JavaScript error, by disabling the 
JavaScript validation via the config setting (i.e. note the 
ThrowExceptionOnScriptError option set to false): 
  
<config host="${host}" port="${port}" protocol="http"
   basepath="${webapp.name}" resultpath="${resultPath}" 
saveresponse="true"
   resultfile="web-tests-result.xml" summary="true">
   <header name="Accept-Language" value="${user.language}"/>
   <option name="ThrowExceptionOnScriptError" value="false" />
</config> 
  
This may be too drastic for you, in that you may want to see JavaScript 
errors. However, it's good to know this can be a solution to you, if you 
don't get another from someone else. 
  
HTH, 
Conor 

From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] 
On Behalf Of david.cate@wachovia.com
Sent: Wednesday, 23 July 2008 8:07 AM
To: webtest@gate4.canoo.com
Subject: [Webtest] VerifyLinks


I have a site that I am testing with the following: 

<verifyLinks depth="11" onsiteonly="true" excludes=".*js.*"/> 

I want to test 11 levels deep and ignore any javascripts files. I'm still 
receiving errors for the following: 

http://127.0.0.1:8080/js/prototype/dragdrop.js#600 

I thought it would skip over this file since i didn't want it looked 
after. 

Also, does anyone have good examples of using reportLinks and ReportSite? 
Not quite sure the difference between the 2 except that reportSite appears 
to work if you provide the sub element and reportLinks just seems to 
short-circuit to true. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended 
recipient(s) only. If you received this email by mistake, please, 
as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily 
reflect those of the Queensland Studies Authority. All reasonable 
precautions have been taken to ensure that this email contained no 
viruses at the time it was sent.


--=_alternative 005669038525748F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">This worked perfectly for what i was
doing on the XML side - now I need to adapt this to Grails - if anyone
has used the Webtest plugin for grails, can someone determine the grammar
for adding the option to the configuration in Groovy? Grails plugin keeps
the resources in a different area and uses different naming structure.</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>david.cate@wachovia.com</b>
</font>
<br><font size=1 face="sans-serif">Sent by: webtest-admin@gate4.canoo.com</font>
<p><font size=1 face="sans-serif">07/23/2008 08:51 AM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
webtest@gate4.canoo.com</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">webtest@gate4.canoo.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">webtest@gate4.canoo.com, webtest-admin@gate4.canoo.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: [Webtest] VerifyLinks</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Thank you! I've never used the setting before but will make use of it today
:)</font><font size=3> <br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=63%><font size=1 face="sans-serif"><b>&quot;Conor MacMahon&quot;
&lt;Conor.MacMahon@qsa.qld.edu.au&gt;</b> <br>
Sent by: webtest-admin@gate4.canoo.com</font><font size=3> </font>
<p><font size=1 face="sans-serif">07/22/2008 07:39 PM</font><font size=3>
</font>
<br>
<table border=4 width=100%>
<tr valign=top>
<td width=100% bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
webtest@gate4.canoo.com</font></div></table>
<p>
<td width=36%>
<table width=100%>
<tr valign=top>
<td width=20%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=79%><font size=1 face="sans-serif">&lt;webtest@gate4.canoo.com&gt;</font><font size=3>
</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">RE: [Webtest] VerifyLinks</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2 color=blue face="Arial"><br>
Hi David,</font><font size=3> <br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=2 color=blue face="Arial">I
had a similar problem late last week, some JavaScript files where changed
on a public website I use verifyLinks on, but whose content I do not control.
I got around the JavaScript error, by disabling the JavaScript validation
via the config setting (i.e. note the ThrowExceptionOnScriptError option
set to false):</font><font size=3> <br>
 &nbsp;</font><font size=2 color=blue face="Arial"><br>
&lt;config host=&quot;${host}&quot; port=&quot;${port}&quot; protocol=&quot;http&quot;<br>
 &nbsp; basepath=&quot;${webapp.name}&quot; resultpath=&quot;${resultPath}&quot;
saveresponse=&quot;true&quot;<br>
 &nbsp; resultfile=&quot;web-tests-result.xml&quot; summary=&quot;true&quot;&gt;<br>
 &nbsp; &lt;header name=&quot;Accept-Language&quot; value=&quot;${user.language}&quot;/&gt;<br>
 &nbsp; &lt;option name=&quot;ThrowExceptionOnScriptError&quot; value=&quot;false&quot;
/&gt;<br>
&lt;/config&gt;</font><font size=3> <br>
 &nbsp;</font><font size=2 color=blue face="Arial"><br>
This may be too drastic for you, in that you may want to see JavaScript
errors. However, it's good to know this can be a solution to you, if you
don't get another from someone else.</font><font size=3> <br>
 &nbsp;</font><font size=2 color=blue face="Arial"><br>
HTH,</font><font size=3> </font><font size=2 color=blue face="Arial"><br>
Conor</font><font size=3> <br>
<br>
</font>
<hr><font size=2 face="Tahoma"><b>From:</b> webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] <b>On Behalf Of </b>david.cate@wachovia.com<b><br>
Sent:</b> Wednesday, 23 July 2008 8:07 AM<b><br>
To:</b> webtest@gate4.canoo.com<b><br>
Subject:</b> [Webtest] VerifyLinks</font><font size=3><br>
</font><font size=2 face="sans-serif"><br>
<br>
I have a site that I am testing with the following:</font><font size=3>
</font><font size=2 color=#000080 face="Courier New"><br>
<br>
&lt;verifyLinks</font><font size=2 face="Courier New"> </font><font size=2 color=#000080 face="Courier New">depth=</font><font size=2 color=#008000 face="Courier New">&quot;11&quot;</font><font size=2 face="Courier New">
</font><font size=2 color=#000080 face="Courier New">onsiteonly=</font><font size=2 color=#008000 face="Courier New">&quot;true&quot;</font><font size=2 face="Courier New">
</font><font size=2 color=#000080 face="Courier New">excludes=</font><font size=2 color=#008000 face="Courier New">&quot;.*js.*&quot;</font><font size=2 color=#000080 face="Courier New">/&gt;</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
I want to test 11 levels deep and ignore any javascripts files. I'm still
receiving errors for the following:</font><font size=3> <br>
<br>
http://127.0.0.1:8080/js/prototype/dragdrop.js#600 </font><font size=2 face="sans-serif"><br>
<br>
I thought it would skip over this file since i didn't want it looked after.</font><font size=3>
</font><font size=2 face="sans-serif"><br>
<br>
Also, does anyone have good examples of using reportLinks and ReportSite?
Not quite sure the difference between the 2 except that reportSite appears
to work if you provide the sub element and reportLinks just seems to short-circuit
to true.</font><font size=3> </font><font size=3><tt><br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
This email (including any attached files) is for the intended <br>
recipient(s) only. If you received this email by mistake, please, <br>
as a courtesy, tell the sender, then delete this email.<br>
<br>
The views and opinions are the originator's and do not necessarily <br>
reflect those of the Queensland Studies Authority. All reasonable <br>
precautions have been taken to ensure that this email contained no <br>
viruses at the time it was sent.</tt></font><font size=3><br>
</font>
<br>
--=_alternative 005669038525748F_=--