[Webtest] http options
David Gibbs (IT)
webtest@lists.canoo.com
Thu, 17 Jul 2003 15:58:26 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C34C73.E010C010
Content-Type: text/plain;
charset="iso-8859-1"
OK thanks,
I thought it should possibly be a attributes of the testSpec. Then it could
be varied for diff. tests.
ta
Dave
-----Original Message-----
From: Bill Milbratz [mailto:Bmilbratz@participate.com]
Sent: 17 July 2003 15:44
To: 'webtest@lists.canoo.com'
Subject: RE: [Webtest] http options
>in one of the threads it was mentioned that HttpUnitOptions could be set
without custom building canoo.
>I haven't found where HttpUnitOptions can be specified in the Ant tasks.
You can set the HttpUnitOptions by modifying the doExecute method of Setup
(com/canoo/webtest/steps/Setup.java).
e.g., I added this:
HttpUnitOptions.setExceptionsThrownOnScriptError(false);
It would be nice if there were a properties file which ant uses to fill in
these options, but for now you need to alter the source code.
bill m
------_=_NextPart_001_01C34C73.E010C010
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=549255514-17072003><FONT face=Arial color=#0000ff size=2>OK
thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=549255514-17072003><FONT face=Arial color=#0000ff size=2>I
thought it should possibly be a attributes of the testSpec. Then it could
be varied for diff. tests.</FONT></SPAN></DIV>
<DIV><SPAN class=549255514-17072003><FONT face=Arial color=#0000ff
size=2>ta</FONT></SPAN></DIV>
<DIV><SPAN class=549255514-17072003><FONT face=Arial color=#0000ff
size=2>Dave</FONT></SPAN></DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Bill Milbratz
[mailto:Bmilbratz@participate.com]<BR><B>Sent:</B> 17 July 2003
15:44<BR><B>To:</B> 'webtest@lists.canoo.com'<BR><B>Subject:</B> RE: [Webtest]
http options<BR><BR></FONT></DIV>
<DIV><SPAN class=640054214-17072003>
<DIV><SPAN class=374062610-17072003><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640054214-17072003>></SPAN>in one of the threads it was
mentioned that HttpUnitOptions could be set without custom building
canoo.</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=374062610-17072003><FONT face=Arial><FONT color=#0000ff><FONT
size=2><SPAN class=640054214-17072003>></SPAN>I haven't found where
HttpUnitOptions can be specified in the Ant
tasks.</FONT></FONT></FONT></SPAN></DIV></SPAN></DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff size=2>You
can set the HttpUnitOptions by modifying the doExecute method
of </FONT></SPAN><SPAN class=640054214-17072003><FONT face=Arial
color=#0000ff size=2>Setup
(com/canoo/webtest/steps/Setup.java).</FONT></SPAN></DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff size=2>e.g.,
I added this:</FONT></SPAN></DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff
size=2>
HttpUnitOptions.setExceptionsThrownOnScriptError(false);</FONT></SPAN></DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff size=2>It
would be nice if there were a properties file which ant uses to fill in these
options, but for now you need to alter the source code.</FONT></SPAN></DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff size=2>bill
m</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial color=#0000ff
size=2></FONT> </DIV></BLOCKQUOTE></BODY></HTML>
------_=_NextPart_001_01C34C73.E010C010--