[Webtest] Turning off HTML Validation

Smith, John C webtest@lists.canoo.com
Mon, 10 May 2004 13:18:29 -0500


This is a multi-part message in MIME format.

------_=_NextPart_001_01C436BB.31FA26E4
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable


Hello fellow Canooers!


When I execute my tests I get the following error:

Test step clickbutton named "Search: Click the go button" failed with
message "Illegal parameter LAPLSD00.wkCurrActionCd in form [lapcsrx1,
POST, /uinew/ui.do, , , _top, , POST request for
(http://afdev:8080/uinew/ui.do?SendDags=3Dyes&NewScreen=3Dlapcsrx1)
/uinew/ui.do] with message <Parameter 'LAPLSD00.wkCurrActionCd' must
have the value ''. Attempted to set it to: { I }> "

I attempted to turn html validation off by changing the following source
code in Setup.java:

// Enable the validate parameters option in order to
// to detect a incorrect parameter name
    HttpUnitOptions.setParameterValuesValidated(false);

I rebuilt webtest.jar and moved the jar file from the deploy directory
to the lib directory.  When I reran the test I continue to get the same
error.  This is very puzzling.  Why does Canoo continue to validate html
when I have turned it off?   How can I confirm that Canoo is pointing to
the correct webtest.jar file?

Thanks,

John



------_=_NextPart_001_01C436BB.31FA26E4
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.6487.1">
<TITLE>Turning off HTML Validation </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">Hello fellow =
Canooers!</FONT>
</P>
<BR>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">When I =
execute my tests I get the following error:</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">Test step =
clickbutton named &quot;Search: Click the go button&quot; failed with =
message &quot;Illegal parameter LAPLSD00.wkCurrActionCd in form =
[lapcsrx1, POST, /uinew/ui.do, , , _top, , POST request for (</FONT><A =
HREF=3D"http://afdev:8080/uinew/ui.do?SendDags=3Dyes&amp;NewScreen=3Dlapc=
srx1"><U></U><U><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century =
Gothic">http://afdev:8080/uinew/ui.do?SendDags=3Dyes&amp;NewScreen=3Dlapc=
srx1</FONT></U></A><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century =
Gothic">) /uinew/ui.do] with message &lt;Parameter =
'LAPLSD00.wkCurrActionCd' must have the value ''. Attempted to set it =
to: { I }&gt; &quot;</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">I attempted =
to turn html validation off by changing the following source code in =
Setup.java:</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">// Enable =
the validate parameters option in order to</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">// to =
detect a incorrect parameter name</FONT>

<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century =
Gothic">&nbsp;&nbsp;&nbsp; =
HttpUnitOptions.setParameterValuesValidated(false);</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">I rebuilt =
webtest.jar and moved the jar file from the deploy directory to the lib =
directory.&nbsp; When I reran the test I continue to get the same =
error.&nbsp; This is very puzzling.&nbsp; Why does Canoo continue to =
validate html when I have turned it off?&nbsp;&nbsp; How can I confirm =
that Canoo is pointing to the correct webtest.jar file?</FONT></P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Century Gothic">Thanks,<BR>
<BR>
John</FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C436BB.31FA26E4--