[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">&lt;invoke</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; stepid=&quot;get login page2&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; url=&quot;login.cfm&quot; /&gt;</font>
<br><font size=2 face="sans-serif">&lt;verifytext </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; stepid=&quot;find text&quot; </font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; text='XXXAAA' /&gt;</font>
<br><font size=2 face="sans-serif">&lt;setinputfield</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; stepid=&quot;enter&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; name=&quot;JERRY&quot;</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; value=&quot;pgh&quot; /&gt;</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">&lt;HTML&gt;</font>
<br><font size=2 face="sans-serif">&lt;HEAD&gt;</font>
<br><font size=2 face="sans-serif">&lt;/HEAD&gt;</font>
<br><font size=2 face="sans-serif">&lt;BODY&gt;</font>
<br><font size=2 face="sans-serif">&lt;FORM ACTION=&quot;FORMACTION.CFM&quot; METHOD=&quot;POST&quot;&gt;</font>
<br><font size=2 face="sans-serif">&lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;JERRY&quot;&gt;XXXAAA</font>
<br><font size=2 face="sans-serif">&lt;/FORM&gt;</font>
<br><font size=2 face="sans-serif">&lt;/BODY&gt;</font>
<br><font size=2 face="sans-serif">&lt;/HTML&gt;</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: ) &nbsp;named &quot;enter&quot; failed with message &quot;No form found with text field named &quot;JERRY&quot;&quot;</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_=--