[Webtest] http options

Dierk Koenig webtest@lists.canoo.com
Thu, 17 Jul 2003 20:01:46 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C34C9E.40465240
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I added this as default behaviour in Setup since build 338.

thanx for the post
Mittie

BTW: with the new custom step support there is no more need to  change
existing code of steps.
You could have subclassed Setup, add your line, and make the taskdef point
to your implementation.
  -----Original Message-----
  From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]On Behalf Of Bill Milbratz
  Sent: Donnerstag, 17. Juli 2003 16: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_000_0013_01C34C9E.40465240
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:st1 =3D "urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2726.2500" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>I=20
added this as default behaviour in Setup since build =
338.</FONT></SPAN></DIV>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>thanx=20
for the post</FONT></SPAN></DIV>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2>Mittie</FONT></SPAN></DIV>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>BTW:=20
with the new custom step support there is no more need to&nbsp; change =
existing=20
code of steps.</FONT></SPAN></DIV>
<DIV><SPAN class=3D887025317-17072003><FONT face=3DArial color=3D#0000ff =
size=3D2>You=20
could have subclassed Setup, add your line, and make the taskdef point =
to your=20
implementation.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  webtest-admin@lists.canoo.com =
[mailto:webtest-admin@lists.canoo.com]<B>On=20
  Behalf Of </B>Bill Milbratz<BR><B>Sent:</B> Donnerstag, 17. Juli 2003=20
  16:44<BR><B>To:</B> 'webtest@lists.canoo.com'<BR><B>Subject:</B> RE: =
[Webtest]=20
  http options<BR><BR></FONT></DIV>
  <DIV><SPAN class=3D640054214-17072003>
  <DIV><SPAN class=3D374062610-17072003><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
  size=3D2><SPAN class=3D640054214-17072003>&gt;</SPAN>in one of the =
threads it was=20
  mentioned that HttpUnitOptions could be set without custom building=20
  canoo.</FONT></FONT></FONT></SPAN></DIV>
  <DIV><SPAN class=3D374062610-17072003><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
  size=3D2><SPAN class=3D640054214-17072003>&gt;</SPAN>I haven't found =
where=20
  HttpUnitOptions can be&nbsp;specified in the Ant=20
  tasks.</FONT></FONT></FONT></SPAN></DIV></SPAN></DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff size=3D2>You=20
  can set the HttpUnitOptions&nbsp;by modifying the&nbsp; doExecute =
method=20
  of&nbsp; </FONT></SPAN><SPAN class=3D640054214-17072003><FONT =
face=3DArial=20
  color=3D#0000ff size=3D2>Setup=20
  (com/canoo/webtest/steps/Setup.java).</FONT></SPAN></DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>e.g., I added this:</FONT></SPAN></DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
  =
HttpUnitOptions.setExceptionsThrownOnScriptError(false);</FONT></SPAN></D=
IV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff size=3D2>It=20
  would be nice if there were a properties file which ant uses to fill =
in these=20
  options, but for now you need to alter the source =
code.</FONT></SPAN></DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D640054214-17072003><FONT face=3DArial =
color=3D#0000ff size=3D2>bill=20
  m</FONT></SPAN></DIV>
  <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
    <DIV><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0013_01C34C9E.40465240--