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

Hitesh Gupta Hitesh Gupta <hitesh21081@gmail.com>
Wed, 1 Jun 2011 14:37:05 +0530


--20cf303dd95a297c6d04a4a2d8a0
Content-Type: text/plain; charset=ISO-8859-1

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

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

Hi,<br><br>I am getting a very strange Javascript issue while executing 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/ID=
MProv/getAFResourceList.do?apwaLeftNavItem=3DJSP_MENU_RESOURCE_REQUEST_CLAS=
SIC&amp;apwaActionScope=3Duser&amp;apwaNewSearch=3Dtrue">http://10.208.7.17=
5:8080/IDMProv/getAFResourceList.do?apwaLeftNavItem=3DJSP_MENU_RESOURCE_REQ=
UEST_CLASSIC&amp;apwaActionScope=3Duser&amp;apwaNewSearch=3Dtrue</a>: Refer=
enceError: &quot;validateForm&quot; is not defined.<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">http://10.208.7.175:8080/IDMProv/getAFResourceList.do?apwaLe=
ftNavItem=3DJSP_MENU_RESOURCE_REQUEST_CLASSIC&amp;apwaActionScope=3Duser&am=
p;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>Hitesh<br>

--20cf303dd95a297c6d04a4a2d8a0--