[Webtest] http options

Bill Milbratz webtest@lists.canoo.com
Thu, 17 Jul 2003 09:44:10 -0500


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.

------=_NextPartTM-000-dffc9d21-8c02-4597-94de-e1d28b9ba7a2
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C34C71.E2318F20"

------_=_NextPart_001_01C34C71.E2318F20
Content-Type: text/plain;
	charset="iso-8859-1"

>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_01C34C71.E2318F20
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.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=640054214-17072003>
<DIV><SPAN class=374062610-17072003><FONT face=Arial><FONT color=#0000ff><FONT 
size=2><SPAN class=640054214-17072003>&gt;</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>&gt;</SPAN>I haven't found where 
HttpUnitOptions can be&nbsp;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>&nbsp;</DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff size=2>You 
can set the HttpUnitOptions&nbsp;by modifying the&nbsp; doExecute method 
of&nbsp; </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>&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
HttpUnitOptions.setExceptionsThrownOnScriptError(false);</FONT></SPAN></DIV>
<DIV><SPAN class=640054214-17072003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</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>&nbsp;</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>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C34C71.E2318F20--

------=_NextPartTM-000-dffc9d21-8c02-4597-94de-e1d28b9ba7a2--