Fri, 22 Feb 2008 15:51:48 +0200
------=_Part_425_18331793.1203688308676
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi,
I'm running following test:
<reportSite depth=3D"8" description=3D"Testing mysite.com">
<not description=3D"the phrase 'Page not ' or 'exception' should not
appear in the page">
<verifyText description=3D"search for the phrase 'Page not'=
,
case insensitive"
text=3D"(?i:Page not )"
regex=3D"true" />
<verifyText description=3D"search for the word 'exception',
case insensitive"
text=3D"(?i:exception)"
regex=3D"true" />
</not>
</reportSite>
So I want to test my whole site, that exceptions or broken links are not
found. This test works fine, except if one of these verifyText steps find
"exception" or "page not" text, the reportSite step shows in results that
all tests passed and I get green bar. I would like to get red bar if even
one page in my site contains text "exception" or "page not ". Is this
possible if so, how ? Here is my config for this test:
<config
host=3D"mysite.com"
basepath=3D"portal"
haltonfailure=3D"true"
haltonerror=3D"true"
summary=3D"true"
saveresponse=3D"true"
>
<option name=3D"JavaScriptEnabled" value=3D"false"></option>
</config>
Regards,
Tomi M=E4kinen
------=_Part_425_18331793.1203688308676
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hi,<br><br>I'm running following test:<br><br><reportSite depth=3D&q=
uot;8" description=3D"Testing <a href=3D"http://mysite.com" targe=
t=3D"_blank" onclick=3D"return top.js.OpenExtLink(window,event,this)">mysit=
e.com</a>"><br>
<not description=3D"the phrase 'Page =
not ' or 'exception' should not appear in the page"><br=
>
=
<verifyText description=3D"search for the phrase 'Page not'=
;, case insensitive"<br> &n=
bsp; text=3D"(?i:Page not =
)"<br> &=
nbsp; regex=3D"true" /><br>
&nb=
sp; <verifyText description=3D"search for the word '=
;exception', case insensitive"<br> &=
nbsp; &nbs=
p; text=3D"(?i:exception)"<br> &nbs=
p; =
regex=3D"true" /><br>
</not><br></reportSite><br><br>So I w=
ant to test my whole site, that exceptions or broken links are not found. T=
his test works fine, except if one of these verifyText steps find "exc=
eption" or "page not" text, the reportSite step shows in res=
ults that all tests passed and I get green bar. I would like to get red bar=
if even one page in my site contains text "exception" or "p=
age not ". Is this possible if so, how ? Here is my config for this te=
st:<br>
<br><config<br> =
host=3D"<a href=3D"http://mysite.com" target=3D"_blank" onclick=3D"ret=
urn top.js.OpenExtLink(window,event,this)">mysite.com</a>"<br> &n=
bsp; basepath=3D"portal&qu=
ot;<br> haltonfailu=
re=3D"true"<br>
haltonerror=3D&quo=
t;true"<br>
summary=3D"tr=
ue"<br> savere=
sponse=3D"true"<br> &n=
bsp; ><br> =
<option name=3D"JavaScriptEnabled" value=3D"false"&=
gt;</option><br> &nb=
sp; </config><br>
<br>Regards,<br>Tomi M=E4kinen<br>
------=_Part_425_18331793.1203688308676--