[Webtest] Problem when using formname inside verifyinputfield

Shlomit Becker webtest@lists.canoo.com
Thu, 15 Apr 2004 11:16:27 +0300


This is a multi-part message in MIME format.

------_=_NextPart_001_01C422C1.F2FA84F4
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

My html has something like the following in it:
=20
    <form name=3D"form1" method=3D"post" action=3D"searchResults.jsp">   =
=20
        <input name=3D"phrase" type=3D"text" size=3D"36">
        <input type=3D"submit" name=3D"Submit" value=3D"Submit">
    </form>

I then want use the following in my test:   =20
=20
    <verifyinputfield
        stepid=3D"Verify that there is an input field called phrase, =
that
has no initial value"
        name=3D"phrase"
        value=3D""
        formname=3D"form1"/>=20
=20
I am getting the following in my error message when I run:
=20
    Input field not found: <phrase>
=20
When I run this test above without the line formname=3D"form1" it =
passes,
but I want to specify the form. Any idea what I can do here?
=20
Thanks,
Shlomit

------_=_NextPart_001_01C422C1.F2FA84F4
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR></HEAD>
<BODY><!-- Converted from text/plain format -->
<DIV><FONT size=3D2><FONT face=3DArial>My html has something like the =
following in=20
it:</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial>&nbsp;&nbsp;&nbsp; &lt;form =
name=3D"form1"=20
method=3D"post" action=3D"searchResults.jsp"&gt;</FONT></FONT><FONT =
size=3D2><FONT=20
face=3DArial>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
&lt;input name=3D"phrase" type=3D"text" =
size=3D"36"&gt;</FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT =
face=3DArial>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;input type=3D"submit" name=3D"Submit" =
value=3D"Submit"&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/form&gt;<BR></FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial>I then want&nbsp;use the =
following in my=20
test:&nbsp;&nbsp;&nbsp; </FONT></FONT></DIV>
<DIV><FONT size=3D2><FONT face=3DArial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2><FONT face=3DArial>&nbsp;&nbsp;&nbsp;=20
&lt;verifyinputfield<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
stepid=3D"Verify that there is an input field called phrase, that has no =
initial=20
value"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
name=3D"phrase"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
value=3D""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
formname=3D"form1"/&gt;</FONT> </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am getting the following in my error =
message when=20
I run:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; Input field not =
found:=20
&lt;phrase&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When I run this test above without the =
line=20
<STRONG>formname=3D"form1" </STRONG>it passes, but I want to specify the =
form. Any=20
idea what I can do here?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Shlomit</FONT></DIV></BODY></HTML>
=00
------_=_NextPart_001_01C422C1.F2FA84F4--