[Webtest] Fwd: ReferenceError: "validateForm" is not defined. error when executing a clickbutton event.

Hitesh Gupta Hitesh Gupta <hitesh21081@gmail.com>
Wed, 1 Jun 2011 15:29:08 +0530


--0015176f0bb85a72d704a4a39222
Content-Type: text/plain; charset=ISO-8859-1

Just to add to my mail, following is the button which I am clicking by
webtest:-

<input type="button" onclick="validateForm()" value="Continue">

validateForm Javascript function is present in the html page but it is
producing error on buttonclick event.



---------- Forwarded message ----------
From: Hitesh Gupta <hitesh21081@gmail.com>
Date: Wed, Jun 1, 2011 at 2:37 PM
Subject: ReferenceError: "validateForm" is not defined. error when executing
a clickbutton event.
To: webtest@lists.canoo.com


Hi,

I am getting a very strange Javascript issue while executing one of my test.

This error appears on clickButton event.
*Error:-*
JavaScript error loading page
http://10.208.7.175:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=JSP_MENU_RESOURCE_REQUEST_CLASSIC&apwaActionScope=user&apwaNewSearch=true:
ReferenceError: "validateForm" is not defined.

*Error Details:-*
Details
*javascript error *                ReferenceError: "validateForm" is not
defined.
*line   *                                0
*javascript source*              function () { [native code, arity=0] }
*failing line   *                     function () {
*javascript call stack*          ReferenceError: "validateForm" is not
defined. at (onclick event for HtmlButtonInput[<input type="button"
onclick="validateForm()" value="Continue">] in
http://10.208.7.175:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=JSP_MENU_RESOURCE_REQUEST_CLASSIC&apwaActionScope=user&apwaNewSearch=true
)

I checked the html page and the javscript function "validateForm" is defined
in the page itself.

When I manually opens the page in browser it opens without any error. I
tried this test with the latest webtest build.

Would appreciate if any one could suggest me a way to resolve the issue.

Thanks & Regards,
Hitesh

--0015176f0bb85a72d704a4a39222
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<font style=3D"font-family: arial,helvetica,sans-serif;" size=3D"2">Just to=
 add to my mail, following is the button which I am clicking by webtest:-<b=
r></font><pre id=3D"line822"><span style=3D"font-family: arial,helvetica,sa=
ns-serif;">&lt;input type=3D&quot;button&quot; onclick=3D&quot;validateForm=
()&quot; value=3D&quot;Continue&quot;&gt;</span><br style=3D"font-family: a=
rial,helvetica,sans-serif;">
<br style=3D"font-family: arial,helvetica,sans-serif;"><span style=3D"font-=
family: arial,helvetica,sans-serif;">validateForm Javascript function is pr=
esent in the html page but it is producing error on buttonclick event.</spa=
n><br>
</pre><br><br><div class=3D"gmail_quote">---------- Forwarded message -----=
-----<br>From: <b class=3D"gmail_sendername">Hitesh Gupta</b> <span dir=3D"=
ltr">&lt;<a href=3D"mailto:hitesh21081@gmail.com">hitesh21081@gmail.com</a>=
&gt;</span><br>
Date: Wed, Jun 1, 2011 at 2:37 PM<br>Subject: ReferenceError: &quot;validat=
eForm&quot; is not defined. error when executing a clickbutton event.<br>To=
: <a href=3D"mailto:webtest@lists.canoo.com">webtest@lists.canoo.com</a><br=
>
<br><br>Hi,<br><br>I am getting a very strange Javascript issue while execu=
ting one of my test.<br><br>This error appears on clickButton event.<br><b>=
Error:-</b><br>JavaScript error loading page <a href=3D"http://10.208.7.175=
:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=3DJSP_MENU_RESOURCE_REQU=
EST_CLASSIC&amp;apwaActionScope=3Duser&amp;apwaNewSearch=3Dtrue" target=3D"=
_blank">http://10.208.7.175:8080/IDMProv/getAFResourceList.do?apwaLeftNavIt=
em=3DJSP_MENU_RESOURCE_REQUEST_CLASSIC&amp;apwaActionScope=3Duser&amp;apwaN=
ewSearch=3Dtrue</a>: ReferenceError: &quot;validateForm&quot; is not define=
d.<br>

<br><b>Error Details:-</b><br>Details<br><b>javascript error=A0</b>=A0=A0 =
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ReferenceError: &quot;validateForm&quo=
t; is not defined.<br><b>line=A0=A0=A0</b> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 0<br><b>javasc=
ript source</b>=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0 function () { [native =
code, arity=3D0] }<br>

<b>failing line=A0=A0=A0</b> =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 function () {<br><b>javascript call stack</b>=A0=A0=A0 =A0=A0=
=A0=A0=A0 ReferenceError: &quot;validateForm&quot; is not defined. at (oncl=
ick event for HtmlButtonInput[&lt;input type=3D&quot;button&quot; onclick=
=3D&quot;validateForm()&quot; value=3D&quot;Continue&quot;&gt;] in <a href=
=3D"http://10.208.7.175:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=
=3DJSP_MENU_RESOURCE_REQUEST_CLASSIC&amp;apwaActionScope=3Duser&amp;apwaNew=
Search=3Dtrue" target=3D"_blank">http://10.208.7.175:8080/IDMProv/getAFReso=
urceList.do?apwaLeftNavItem=3DJSP_MENU_RESOURCE_REQUEST_CLASSIC&amp;apwaAct=
ionScope=3Duser&amp;apwaNewSearch=3Dtrue</a>)<br>

<br>I checked the html page and the javscript function &quot;validateForm&q=
uot; is defined in the page itself.<br><br>When I manually opens the page i=
n browser it opens without any error. I tried this test with the latest web=
test build.<br>

<br>Would appreciate if any one could suggest me a way to resolve the issue=
.<br><br>Thanks &amp; Regards,<br><font color=3D"#888888">Hitesh<br>
</font></div><br>

--0015176f0bb85a72d704a4a39222--