[Webtest] VerifyLinks

david.cate@wachovia.com david.cate@wachovia.com
Wed, 23 Jul 2008 08:51:41 -0400


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

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 0046A8398525748F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Thank you! I've never used the setting
before but will make use of it today :)</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Conor MacMahon&quot;
&lt;Conor.MacMahon@qsa.qld.edu.au&gt;</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/22/2008 07:39 PM</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">&lt;webtest@gate4.canoo.com&gt;</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>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">Hi David,</font>
<br><font size=3>&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>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">&lt;config host=&quot;${host}&quot;
port=&quot;${port}&quot; protocol=&quot;http&quot;<br>
 &nbsp; &nbsp;basepath=&quot;${webapp.name}&quot; resultpath=&quot;${resultPath}&quot;
saveresponse=&quot;true&quot;<br>
 &nbsp; &nbsp;resultfile=&quot;web-tests-result.xml&quot; summary=&quot;true&quot;&gt;<br>
 &nbsp; &nbsp;&lt;header name=&quot;Accept-Language&quot; value=&quot;${user.language}&quot;/&gt;<br>
 &nbsp; &nbsp;&lt;option name=&quot;ThrowExceptionOnScriptError&quot; value=&quot;false&quot;
/&gt;<br>
&lt;/config&gt;</font>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">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>
<br><font size=3>&nbsp;</font>
<br><font size=2 color=blue face="Arial">HTH,</font>
<br><font size=2 color=blue face="Arial">Conor</font>
<br>
<br>
<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>
<br><font size=2 face="sans-serif"><br>
I have a site that I am testing with the following:</font><font size=3>
<br>
</font><font size=2 color=#000080 face="Courier New"><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>
<br>
</font><font size=2 face="sans-serif"><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 <br>
</font><font size=2 face="sans-serif"><br>
I thought it would skip over this file since i didn't want it looked after.</font><font size=3>
<br>
</font><font size=2 face="sans-serif"><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>
<br><font size=3><tt>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<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.<br>
</tt></font>
<br>
--=_alternative 0046A8398525748F_=--