[Webtest] VerifyLinks

Conor MacMahon Conor MacMahon" <Conor.MacMahon@qsa.qld.edu.au
Wed, 23 Jul 2008 09:39:14 +1000


This is a multi-part message in MIME format.

------_=_NextPart_001_01C8EC54.268A1364
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

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.
 

------_=_NextPart_001_01C8EC54.268A1364
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<HTML xmlns:eXclaimer=3D"http://www.exclaimer.co.uk">
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3DUTF-16">

<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR></HEAD><BODY =
><DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hi David,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN=20
class=3D910433523-22072008>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;=20
<FONT face=3DArial color=3D#0000ff size=3D2>I had a similar problem late =
last week,=20
some JavaScript files where changed on&nbsp;a public website I use =
verifyLinks=20
on, but whose content I do not control. I got around the JavaScript =
error, by=20
disabling the JavaScript validation via the config setting (i.e. note =
the=20
ThrowExceptionOnScriptError option set to false):</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>&lt;config host=3D"${host}" port=3D"${port}"=20
protocol=3D"http"<BR>&nbsp;&nbsp;&nbsp; basepath=3D"${webapp.name}"=20
resultpath=3D"${resultPath}" saveresponse=3D"true"<BR>&nbsp;&nbsp;&nbsp; =

resultfile=3D"web-tests-result.xml" =
summary=3D"true"&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;header name=3D"Accept-Language"=20
value=3D"${user.language}"/&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;option=20
name=3D"ThrowExceptionOnScriptError" value=3D"false"=20
/&gt;<BR>&lt;/config&gt;</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>This may be too drastic for you, in that you =
may want to=20
see JavaScript errors. However, it's good to know this can be a solution =
to you,=20
if you don't get another from someone else.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>HTH,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D910433523-22072008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Conor</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> webtest-admin@lists.canoo.com=20
[mailto:webtest-admin@lists.canoo.com] <B>On Behalf Of=20
</B>david.cate@wachovia.com<BR><B>Sent:</B> Wednesday, 23 July 2008 8:07 =

AM<BR><B>To:</B> webtest@gate4.canoo.com<BR><B>Subject:</B> [Webtest]=20
VerifyLinks<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=3Dsans-serif size=3D2>I have a site that I am =
testing with=20
the following:</FONT> <BR><BR><FONT face=3D"Courier New" color=3D#000080 =

size=3D2>&lt;verifyLinks</FONT><FONT face=3D"Courier New" size=3D2> =
</FONT><FONT=20
face=3D"Courier New" color=3D#000080 size=3D2>depth=3D</FONT><FONT =
face=3D"Courier New"=20
color=3D#008000 size=3D2>"11"</FONT><FONT face=3D"Courier New" size=3D2> =
</FONT><FONT=20
face=3D"Courier New" color=3D#000080 size=3D2>onsiteonly=3D</FONT><FONT=20
face=3D"Courier New" color=3D#008000 size=3D2>"true"</FONT><FONT =
face=3D"Courier New"=20
size=3D2> </FONT><FONT face=3D"Courier New" color=3D#000080=20
size=3D2>excludes=3D</FONT><FONT face=3D"Courier New" color=3D#008000=20
size=3D2>".*js.*"</FONT><FONT face=3D"Courier New" color=3D#000080 =
size=3D2>/&gt;</FONT>=20
<BR><BR><FONT face=3Dsans-serif size=3D2>I want to test 11 levels deep =
and ignore=20
any javascripts files. I'm still receiving errors for the =
following:</FONT>=20
<BR><BR><FONT =
size=3D3>http://127.0.0.1:8080/js/prototype/dragdrop.js#600=20
</FONT><BR><BR><FONT face=3Dsans-serif size=3D2>I thought it would skip =
over this=20
file since i didn't want it looked after.</FONT> <BR><BR><FONT =
face=3Dsans-serif=20
size=3D2>Also, does anyone have good examples of using reportLinks and =
ReportSite?=20
Not quite sure the difference between the 2 except that reportSite =
appears to=20
work if you provide the sub element and reportLinks just seems to =
short-circuit=20
to true.</FONT></DIV>
<PRE>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended=20
recipient(s) only. If you received this email by mistake, please,=20
as a courtesy, tell the sender, then delete this email.

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

------_=_NextPart_001_01C8EC54.268A1364--