[Webtest] Setinputfield not working
webtest@lists.canoo.com
webtest@lists.canoo.com
Thu, 6 Jan 2005 11:23:12 -0600
This is a multipart message in MIME format.
--=_alternative 005F822086256F81_=
Content-Type: text/plain; charset="us-ascii"
Is there some odd trick to making the setinputfield step work? I have been
trying the most simple example I could think of and I can't get it to
work.
I have these steps in my test page:
<invoke
stepid="get login page2"
url="login.cfm" />
<verifytext
stepid="find text"
text='XXXAAA' />
<setinputfield
stepid="enter"
name="JERRY"
value="pgh" />
The HTML of my form page looks like this:
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM ACTION="FORMACTION.CFM" METHOD="POST">
<INPUT TYPE="TEXT" NAME="JERRY">XXXAAA
</FORM>
</BODY>
</HTML>
I always get the error:
Test step setinputfield (E:\_TESTING\urbcfd01\Modules\loginandstep.xml:10:
) named "enter" failed with message "No form found with text field named
"JERRY""
The verifytext step works like a charm. The setinputfield step never
works. I have tried different combinations of attributes in the HTML form,
different placement, different ordering, different step ids, step names,
values, etc. I tried new_setinputfield too. Nada.
My response from the invocation of the form page looks perfect, as does
its source. Everything looks like it should work, it just doesn't.
Ideas?
Jerry Hurst
--=_alternative 005F822086256F81_=
Content-Type: text/html; charset="us-ascii"
<br><font size=2 face="sans-serif">Is there some odd trick to making the setinputfield step work? I have been trying the most simple example I could think of and I can't get it to work.</font>
<br>
<br><font size=2 face="sans-serif">I have these steps in my test page:</font>
<br>
<br><font size=2 face="sans-serif"><invoke</font>
<br><font size=2 face="sans-serif"> stepid="get login page2"</font>
<br><font size=2 face="sans-serif"> url="login.cfm" /></font>
<br><font size=2 face="sans-serif"><verifytext </font>
<br><font size=2 face="sans-serif"> stepid="find text" </font>
<br><font size=2 face="sans-serif"> text='XXXAAA' /></font>
<br><font size=2 face="sans-serif"><setinputfield</font>
<br><font size=2 face="sans-serif"> stepid="enter"</font>
<br><font size=2 face="sans-serif"> name="JERRY"</font>
<br><font size=2 face="sans-serif"> value="pgh" /></font>
<br>
<br><font size=2 face="sans-serif">The HTML of my form page looks like this:</font>
<br>
<br><font size=2 face="sans-serif"><HTML></font>
<br><font size=2 face="sans-serif"><HEAD></font>
<br><font size=2 face="sans-serif"></HEAD></font>
<br><font size=2 face="sans-serif"><BODY></font>
<br><font size=2 face="sans-serif"><FORM ACTION="FORMACTION.CFM" METHOD="POST"></font>
<br><font size=2 face="sans-serif"><INPUT TYPE="TEXT" NAME="JERRY">XXXAAA</font>
<br><font size=2 face="sans-serif"></FORM></font>
<br><font size=2 face="sans-serif"></BODY></font>
<br><font size=2 face="sans-serif"></HTML></font>
<br>
<br><font size=2 face="sans-serif">I always get the error:</font>
<br>
<br><font size=2 face="sans-serif">Test step setinputfield (E:\_TESTING\urbcfd01\Modules\loginandstep.xml:10: ) named "enter" failed with message "No form found with text field named "JERRY""</font>
<br>
<br><font size=2 face="sans-serif">The verifytext step works like a charm. The setinputfield step never works. I have tried different combinations of attributes in the HTML form, different placement, different ordering, different step ids, step names, values, etc. I tried new_setinputfield too. Nada.</font>
<br>
<br><font size=2 face="sans-serif">My response from the invocation of the form page looks perfect, as does its source. Everything looks like it should work, it just doesn't.</font>
<br>
<br><font size=2 face="sans-serif">Ideas?<br>
<br>
Jerry Hurst<br>
<br>
</font>
--=_alternative 005F822086256F81_=--