[Webtest] Setinputfield not working

webtest@lists.canoo.com webtest@lists.canoo.com
Thu, 6 Jan 2005 14:08:37 -0600


This is a multipart message in MIME format.
--=_alternative 006EA6DC86256F81_=
Content-Type: text/plain; charset="us-ascii"

Well, that does indeed seem to fix the problem. Thank you very much.

I am now hoping that a remedy is in the works for this attribute 
case-sensitivity issue.

I can't edit every template in our corporate website to get rid of 
uppercase attribute content.

Jerry Hurst






Koorosh Vakhshoori <Koorosh.Vakhshoori@synopsys.com>

Sent by: webtest-admin@gate2.canoo.com





01/06/2005 01:40 PM
Please respond to webtest

 
T
To:     webtest@gate2.canoo.com
cc: 

bcc: 
Subject:        Re: [Webtest] Setinputfield not working


Hi Jerry,
   I am new with Webtest, but with the latest version with support for 
HTMLUNIT, it seems the 'TYPE' attribute in 'INPUT' tag is case sensitive. 
Try changing your HTML to lower case. So change your HTML 'INPUT" tag to:

<INPUT TYPE="text" NAME="JERRY">XXXAAA

Take care,
Koorosh

At 11:23 AM 1/6/2005 -0600, HURSTG@Nationwide.com wrote:

>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

Koorosh: Change the above INPUT Tag to:

<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


_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest



--=_alternative 006EA6DC86256F81_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Well, that does indeed seem to fix the problem. Thank you very much.</font>
<br>
<br><font size=2 face="sans-serif">I am now hoping that a remedy is in the works for this attribute case-sensitivity issue.</font>
<br>
<br><font size=2 face="sans-serif">I can't edit every template in our corporate website to get rid of uppercase attribute content.<br>
<br>
Jerry Hurst</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Koorosh Vakhshoori &lt;Koorosh.Vakhshoori@synopsys.com&gt;</b></font>
<br>
<br><font size=1 color=#808080 face="sans-serif"><i>Sent by: webtest-admin@gate2.canoo.com</i></font>
<br>
<br>
<br>
<br>
<br>
<br><font size=1 face="sans-serif"><b>01/06/2005 01:40 PM</b></font>
<br><font size=1 face="sans-serif">Please respond to webtest</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="Arial">T</font>
<br><font size=1 face="sans-serif">To: &nbsp; &nbsp; &nbsp; &nbsp;webtest@gate2.canoo.com</font>
<br><font size=1 face="sans-serif">cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br>
<br><font size=1 face="sans-serif">bcc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [Webtest] Setinputfield not working</font></table>
<br>
<br>
<br><font size=2 face="Courier New">Hi Jerry,<br>
 &nbsp; I am new with Webtest, but with the latest version with support for <br>
HTMLUNIT, it seems the 'TYPE' attribute in 'INPUT' tag is case sensitive. <br>
Try changing your HTML to lower case. So change your HTML 'INPUT&quot; tag to:<br>
<br>
&lt;INPUT TYPE=&quot;text&quot; NAME=&quot;JERRY&quot;&gt;XXXAAA<br>
<br>
Take care,<br>
Koorosh<br>
<br>
At 11:23 AM 1/6/2005 -0600, HURSTG@Nationwide.com wrote:<br>
<br>
&gt;Is there some odd trick to making the setinputfield step work? I have been <br>
&gt;trying the most simple example I could think of and I can't get it to work.<br>
&gt;<br>
&gt;I have these steps in my test page:<br>
&gt;<br>
&gt;&lt;invoke<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; stepid=&quot;get login page2&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; url=&quot;login.cfm&quot; /&gt;<br>
&gt;&lt;verifytext<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; stepid=&quot;find text&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; text='XXXAAA' /&gt;<br>
&gt;&lt;setinputfield<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; stepid=&quot;enter&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;JERRY&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; value=&quot;pgh&quot; /&gt;<br>
&gt;<br>
&gt;The HTML of my form page looks like this:<br>
&gt;<br>
&gt;&lt;HTML&gt;<br>
&gt;&lt;HEAD&gt;<br>
&gt;&lt;/HEAD&gt;<br>
&gt;&lt;BODY&gt;<br>
&gt;&lt;FORM ACTION=&quot;FORMACTION.CFM&quot; METHOD=&quot;POST&quot;&gt;<br>
&gt;&lt;INPUT TYPE=&quot;TEXT&quot; NAME=&quot;JERRY&quot;&gt;XXXAAA</font>
<br><font size=2 face="Courier New"><br>
Koorosh: Change the above INPUT Tag to:<br>
<br>
&lt;INPUT TYPE=&quot;text&quot; NAME=&quot;JERRY&quot;&gt;XXXAAA<br>
<br>
&gt;&lt;/FORM&gt;<br>
&gt;&lt;/BODY&gt;<br>
&gt;&lt;/HTML&gt;<br>
&gt;<br>
&gt;I always get the error:<br>
&gt;<br>
&gt;Test step setinputfield (E:\_TESTING\urbcfd01\Modules\loginandstep.xml:10: <br>
&gt;) &nbsp;named &quot;enter&quot; failed with message &quot;No form found with text field named <br>
&gt;&quot;JERRY&quot;&quot;<br>
&gt;<br>
&gt;The verifytext step works like a charm. The setinputfield step never <br>
&gt;works. I have tried different combinations of attributes in the HTML form, <br>
&gt;different placement, different ordering, different step ids, step names, <br>
&gt;values, etc. I tried new_setinputfield too. Nada.<br>
&gt;<br>
&gt;My response from the invocation of the form page looks perfect, as does <br>
&gt;its source. Everything looks like it should work, it just doesn't.<br>
&gt;<br>
&gt;Ideas?<br>
&gt;<br>
&gt;Jerry Hurst<br>
<br>
<br>
_______________________________________________<br>
WebTest mailing list<br>
WebTest@lists.canoo.com<br>
http://lists.canoo.com/mailman/listinfo/webtest<br>
</font>
<br>
<br>
--=_alternative 006EA6DC86256F81_=--